{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"AiPipeline.execute (cyclomatic 74): AiPipeline.execute has cyclomatic complexity 74 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f0a24609e8db2bf609c01f9f5e88e6a4ba6a9a0ac06b733e84ee7306390ef1"}},{"ruleId":"D1","level":"warning","message":{"text":"AiStreamingSession.stream (cyclomatic 69): AiStreamingSession.stream has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2af66d3f92a40d3a36b03c2f0adf58437a48489a3019cb09477706447c52ed"}},{"ruleId":"D1","level":"warning","message":{"text":"AiEndpointHandler.onStateChange (cyclomatic 49): AiEndpointHandler.onStateChange has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b197d02caf6c917a37495a74a59fffe7cfe29111f273062044f0c87698f2318"}},{"ruleId":"D1","level":"warning","message":{"text":"SpringAiAgentRuntime.doExecuteWithHandle (cyclomatic 43): SpringAiAgentRuntime.doExecuteWithHandle 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"80301fd2a8cfc5cb31eabf6ce75bde7fc5d85dd73e008b5b31532d0ba3c49ab3"}},{"ruleId":"D1","level":"warning","message":{"text":"JSR356Endpoint.onOpen (cyclomatic 43): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c810f30f35139887082ab9fac6188869b6b3202bf0f3c053223fbb44119807d"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultBroadcaster.deliverPush (cyclomatic 40): DefaultBroadcaster.deliverPush has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"0014ef3bd1916efb3b3a02e23230f16165d533e86a378804df6b03a8861c0f03"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAiCompatibleClient.processResponsesApiSSELine (cyclomatic 36): OpenAiCompatibleClient.processResponsesApiSSELine has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15ae009c12413b3e3e56762ecfc1adf731065fe91a357a59ad77e6a0574884b"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolExecutionHelper.executeWithApprovalLive (cyclomatic 33): ToolExecutionHelper.executeWithApprovalLive has cyclomatic complexity 33 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f56f24cb2c24c0fb4bc3e56497267fe88f1ed136a9165c6d8ee7d9dc442f66"}},{"ruleId":"D1","level":"warning","message":{"text":"SpringAiAlibabaAgentRuntime.doExecute (cyclomatic 32): SpringAiAlibabaAgentRuntime.doExecute 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfced545b92655f3785e9e38b1c00f58a63921d665e919c0e1423bc7a1d922a"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAiCompatibleClient.processSSELine (cyclomatic 32): OpenAiCompatibleClient.processSSELine 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80fb861dd78954bd09ad7eb9da7ddc72c0f26a1737f60fa355ae80a322b1acd"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceExtensions.permissionPolicies (cyclomatic 31): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3380c1f66a62f40c5c5acd81c85b10c9f1a9eb11b8eede9ee4797b03e7bea7f"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolBridgeUtils.parseJsonArgs (cyclomatic 30): ToolBridgeUtils.parseJsonArgs 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"522dc2289d255c3f61057adb1a7449705f18bd645cd47a05a3ceb636da4926f3"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereResourceImpl.suspend (cyclomatic 29): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e951de7a9338770619739da566f6492300eceedf3c967e70cee421e36b1def8a"}},{"ruleId":"D1","level":"warning","message":{"text":"CoordinatorProcessor.handle (cyclomatic 28): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4479034e12477c0f32f24af348ecd6b73e27404236bca25193a15f34426d80"}},{"ruleId":"D1","level":"warning","message":{"text":"main (cyclomatic 28): main has cyclomatic complexity 28 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/npx/index.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f84bdde4c45ddc38013d9701a81c3df636447f784cced2b5eac9d8fee861480"}},{"ruleId":"D1","level":"warning","message":{"text":"LangChain4jAgentRuntime.doExecuteWithHandle (cyclomatic 27): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f91ce0d0c1e252a0ba0909e76d1d83d568f03e6b4dd35e7e6a8588d56d4df4"}},{"ruleId":"D1","level":"warning","message":{"text":"AsynchronousProcessor.action (cyclomatic 27): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5865329e62ee1b3d2ae91e00ef6db19d3f847040e2384329e5c1ec6746ca21"}},{"ruleId":"D1","level":"warning","message":{"text":"IntrospectionUtils.invokeProperty (cyclomatic 27): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89bd0bdceacdaf188e94ae507241550dce850b5d3668f80c0d9b60c2adaacd7"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAiCompatibleClient.doStreamWithToolLoop (cyclomatic 27): OpenAiCompatibleClient.doStreamWithToolLoop 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"88aed37419f453f944f7b45f7a48ea44a00406f5f017a01af120734fcc0fc59a"}},{"ruleId":"D1","level":"warning","message":{"text":"AiEndpointProcessor.handle (cyclomatic 27): AiEndpointProcessor.handle 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5891167024a6ef75822b4cd3060cfbca679ce5f518546cd04c6f01e1b8a755"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereConfigReader.parse (cyclomatic 25): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc9d79c47d867cb675ca5d789c18ddc974ffe2f13843fbd0b26256eda0cc5dd"}},{"ruleId":"D1","level":"warning","message":{"text":"A2aHandler.restRoute (cyclomatic 25): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"037bd8e5840e21c1ad16925fe82c12b773f8a46961e3256773c299b74330e791"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultBroadcaster.checkCachedAndPush (cyclomatic 22): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8837c359eb906ba4bd15d279b610ca548becf20f3691065d80ba3184a2a456c0"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.format (cyclomatic 22): Markdown.format 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/JournalFormat.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39fe3bc31e4d5b176f390de46dc7f60f31fc147ae83f0f46e308f56fa03a583"}},{"ruleId":"D1","level":"warning","message":{"text":"CohereChatClient.stream (cyclomatic 22): CohereChatClient.stream 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b7ac43d2437158cec1dc1b28c09642186368c2ab48f28cf08087d5b351a187"}},{"ruleId":"D1","level":"warning","message":{"text":"AgUiEventMapper.toAgUi (cyclomatic 22): AgUiEventMapper.toAgUi has cyclomatic complexity 22 (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 \u2014 the same kind of value, with no behaviour of its own \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agui/src/main/java/org/atmosphere/agui/event/AgUiEventMapper.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4cc048ccdd3f0c22010b1e3d00ac39af7f647a569faf4f0706a4035adacbd1"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpSseSidecarClient.toJson (cyclomatic 21): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"de56183cd243bbc76a2a78998c706e9ca708e813daa9250e6d43654f25061271"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereFramework.doInitParams (cyclomatic 21): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43db58a1273a4aebd2eba9857238d0cdc457f364570b530ad8ede6e12f19655"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereFramework.loadAtmosphereDotXml (cyclomatic 21): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe2c97303981c496a8357a6e4d5f590ea5ad8d88e4db7de1772895c97e2ca34"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractReflectorAtmosphereHandler.onStateChange (cyclomatic 21): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/handler/AbstractReflectorAtmosphereHandler.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95c46ca1f829a626fd94f62f5ac3315a07c6d4c42722d0f03742b1f98ff2bf9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentProcessor.handle (cyclomatic 21): AgentProcessor.handle 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6637a4082162f93a3f9c6d5df420dea56ff740ea33bb294215b8664f1687fb17"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminMcpBridge.registerOptionalReadTools (cyclomatic 21): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cf309d4bca1f77663bbe5a888217d33de03c0f7cacb51bfee907b6e2339585"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultBroadcaster.addAtmosphereResource (cyclomatic 20): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b4c02d82d37067f48c62939170de5bc51c99761836c6ea54c9265874ba89de"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereFramework.configureRequestResponse (cyclomatic 19): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"680373ce5eb753aeda26aba9970dcf703a38d6a74b22aa26d75a2d77b069af1c"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerInitializer.onStartup (cyclomatic 19): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/ContainerInitializer.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"077190cf28e937a6b115807c35f3fcfad6eb4aaae171f313eaac6c2d7a6c963a"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultBroadcaster.getAsyncWriteHandler (cyclomatic 19): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5352143e646b3772371ca637aa6f1424a86396e288891aba5b7831638ca12b"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerCookieDecoder.decode (cyclomatic 19): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"3842da3941ab7935de5666bfde97dd68531a2c428c87d9b51d25a4848ba82bd4"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicMessagesClient.buildRequestBody (cyclomatic 19): AnthropicMessagesClient.buildRequestBody has cyclomatic complexity 19 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"2887d5e355dd9c0d5bedae9835611a616db9f6d0dbfbda3f7f9b6a84655fe84a"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicMessagesClient.stream (cyclomatic 19): AnthropicMessagesClient.stream 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"be070a044fcec9f59c0d4b7f55b887bc99e913ca4513f6ea8117d17116147332"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpOperationExecutor.execute (cyclomatic 19): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb45771f1c8301aa58d61191c0564417360cff8a5d11ccaf2a0b96c5f8a0c53"}},{"ruleId":"D1","level":"warning","message":{"text":"GovernanceController.check (cyclomatic 19): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1caa44de2328c871a8833d3697d65921046339a6475c304bdd40c924a42bd6"}},{"ruleId":"D1","level":"warning","message":{"text":"VerifyCli.run (cyclomatic 18): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/verifier/src/main/java/org/atmosphere/verifier/cli/VerifyCli.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b68a3cdb1b49ad35fd16f4fd7110bf1b7cfbeeab4e347f9cc3eb0ac3f9e0c9d"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cyclomatic 18): AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41ba74355e687715fe9a3abb3919c44e702147ffaeae5e50b8115f2a50ab4ed"}},{"ruleId":"D1","level":"warning","message":{"text":"McpHandler.handlePost (cyclomatic 18): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecf0045d9d40d13c93af4df07c05f4f96c27d9b565a33abc01e32c0abcef745"}},{"ruleId":"D1","level":"warning","message":{"text":"ManagedAtmosphereHandler.onStateChange (cyclomatic 18): ManagedAtmosphereHandler.onStateChange 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e0f87f6069b3bba57c5fe481328f094ad17d66d147e7146777d369b5993a2d"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereFramework.configureQueryStringAsRequest (cyclomatic 18): AtmosphereFramework.configureQueryStringAsRequest 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"020c646bb49578b4ca38d3a08b7602596e6d51e11ae29cc9cef0cc6a2fba6afe"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereResourceImpl.notifyListeners (cyclomatic 18): AtmosphereResourceImpl.notifyListeners 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d127103a06e032f09d6fd5d6d568dc186b2281b2f9f2dd85b9573f2b1261eb"}},{"ruleId":"D1","level":"warning","message":{"text":"InstallMetaServiceProcedure.apply (cyclomatic 18): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/MetaServiceAction.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0956423e8a2e7238315b1475519ce7e73bbd2527f7d2d31900a2e5487b43d2"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultAgentFleet.parallel (cyclomatic 18): DefaultAgentFleet.parallel 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentFleet.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e787c1546b6e271b3c4a33f34dcfe759c9baac0629762679b72b2d16fa68203"}},{"ruleId":"D1","level":"warning","message":{"text":"A2aAgentTransport.extractStreamingText (cyclomatic 18): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d427951380372cbf47ebfd3ffc29ffe6cba514c8cd2634ce277ad0e0460d06"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAiCompatibleClient.buildRequestBody (cyclomatic 18): OpenAiCompatibleClient.buildRequestBody 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f83754ee78bee5c94445576211496d22579eaa7c440ec642a52dec6b82ec18"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAiCompatibleClient.buildResponsesApiBody (cyclomatic 18): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f442a3ab9271aa3138e163a5a0c82c29c2032ca5f0e07636b923b0be11d528"}},{"ruleId":"D1","level":"warning","message":{"text":"CrewAiAgentRuntime.drainStream (cyclomatic 17): CrewAiAgentRuntime.drainStream 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b68e5d42bd5b925881b96030eb19d02501468041d658db8126b5f3bad3e882d"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereRequestImpl.getHeader (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"241551634a42fa760d7eda6bd77a93a431fbb893496a2a378459d6cfe14a9556"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultBroadcaster.executeAsyncWrite (cyclomatic 17): DefaultBroadcaster.executeAsyncWrite 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd59da382433798b1620e0d40ee78f7d58a0e496481328a36dea25ae3d23a4de"}},{"ruleId":"D1","level":"warning","message":{"text":"FrameworkDiagnostics.info (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d8ea08da9da1b8959bfd1e26b4b0647c0ac7b1ef23ee4c8de258ad2a163966"}},{"ruleId":"D1","level":"warning","message":{"text":"HeartbeatInterceptor.inspect (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d1c889adead5766ad0a971798e8cffe85a2926db34e57f7864c564e8a14e90"}},{"ruleId":"D1","level":"warning","message":{"text":"JavaScriptProtocol.inspect (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c043fbc0bb2c123436b5b456bec448abb3ca703ec694ec3966954b0bf82240c"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryStringDecoder.decodeParams (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a56a8de4dd42018d0eea6c3239ead692d76a9d966d7d1d6355ea90bebc3ec7b"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicMessagesClient.parseRound (cyclomatic 17): AnthropicMessagesClient.parseRound has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4eb639d6ef81723bac29be8c52a7d00035e738c9f7956822dff1b9f46bb3e1d"}},{"ruleId":"D1","level":"warning","message":{"text":"ScopeConfig.\u003Cinit\u003E (cyclomatic 17): ScopeConfig.\u003Cinit\u003E 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeConfig.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a818b180008b3c8a165427462d60e498eec3ffcb720c2e403fcedda2fd2404"}},{"ruleId":"D1","level":"warning","message":{"text":"OnSessionCloseStrategy.parseJsonArray (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1298972b9c7ce127a7c833938077bcf12deffae500a814386b63d87ccbeac9ec"}},{"ruleId":"D1","level":"warning","message":{"text":"AiEndpointHandler.appendResolvedFacts (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb94fe1e8734a596a343487d223437771a973a1dc81f605469b18b9ff408aa6"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiModalInput.decode (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/MultiModalInput.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2ee2220e5094e8aa88224b086f0371ea23225d56ac7e4636cb30b47f94ff83"}},{"ruleId":"D1","level":"warning","message":{"text":"AdkAgentRuntime.buildRequestRunner (cyclomatic 17): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87462b47ba6fae4dfe4a1886387292c294bdbe59eb3a6bc9ea98b9cdce6b6ee"}},{"ruleId":"D1","level":"warning","message":{"text":"AdkAgentRuntime.doExecuteWithHandle (cyclomatic 17): AdkAgentRuntime.doExecuteWithHandle 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee00f5f0829f78a066f3d8cc65bc2e6e5eb316ca64c6e2bb31d35c4bc1b744e1"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cyclomatic 16): AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"850156fcde23f6dc291c15a15ae4ae77bbf76ea59aeab4c9c006819b6db9e0b3"}},{"ruleId":"D1","level":"warning","message":{"text":"AtmosphereAutoConfiguration.scanAnnotations (cyclomatic 16): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6af88e85f928d1deffc1146979a756b58f1915b3d91bc1066a7c01cd98aa91"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolAwareStreamingResponseHandler.onCompleteResponse (cyclomatic 16): ToolAwareStreamingResponseHandler.onCompleteResponse 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8937be3c4bbe812b82479032900bbe26c1404fa75ad2a55861038b82a4454f9a"}},{"ruleId":"D1","level":"warning","message":{"text":"ManagedAtmosphereHandler.onRequest (cyclomatic 16): ManagedAtmosphereHandler.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c498b07d5d35830e5ab8910392e9ee054ac6e4805ad3ceb31ef71d5b838e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"AnnotationDetector.detect (cyclomatic 16): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a741de9f63f3824a648ed3b50c9f03190b0921a2ab10f60bc308d6f95b0afe6"}},{"ruleId":"D1","level":"warning","message":{"text":"YamlPolicyParser.parse (cyclomatic 16): YamlPolicyParser.parse 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"591cf60dedcca5749d471f2261dcbf20813512600018a1f94657c966215fca13"}},{"ruleId":"D1","level":"warning","message":{"text":"BuiltInAgentRuntime.buildRequest (cyclomatic 16): BuiltInAgentRuntime.buildRequest 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea0fa78c083580275402a1820be09ab505e04e101b2951c613ecddc63d3635d"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiToolImporter.fromSpec (cyclomatic 16): 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8d6d72e8be53e5ca63a54b109ee79accb3ceea1d10a970bbc09f2dc32104df"}},{"ruleId":"D2","level":"warning","message":{"text":"AiStreamingSession.stream (cognitive 90): AiStreamingSession.stream has cognitive complexity 90 (threshold 15). Drivers by points: ternaries 33, if/else 25, error handling 13, boolean chains 8, loops 7, match/switch 4 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdcc615e3c4b68262d2de0fb591f87db34beab61aede5e2f8aac7e5e857eca6"}},{"ruleId":"D2","level":"warning","message":{"text":"AiPipeline.execute (cognitive 87): AiPipeline.execute has cognitive complexity 87 (threshold 15). Drivers by points: if/else 32, boolean chains 21, ternaries 19, error handling 9, match/switch 4, loops 2 (nesting depth added 18). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ae6c0a388d49bb6e1cfd985fe733e0496743788606424bca245a2f3146e78a"}},{"ruleId":"D2","level":"warning","message":{"text":"JSR356Endpoint.onOpen (cognitive 71): JSR356Endpoint.onOpen has cognitive complexity 71 (threshold 15). Drivers by points: if/else 47, ternaries 8, loops 7, error handling 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4afe836bea6241f08e2021519d3fb64fa6b5a92f87828ac92a59704c74611d5"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBroadcaster.deliverPush (cognitive 69): DefaultBroadcaster.deliverPush has cognitive complexity 69 (threshold 15). Drivers by points: if/else 35, loops 16, error handling 6, ternaries 6, match/switch 4, boolean chains 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f59686380fe0503356305ebbe93ce67b3ab745b04f9b2711bb35365524b691f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolBridgeUtils.parseJsonArgs (cognitive 67): ToolBridgeUtils.parseJsonArgs has cognitive complexity 67 (threshold 15). Drivers by points: if/else 41, loops 11, boolean chains 9, error handling 6 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16a0eb5ea665086615538d9e589695465b58aeefd20bd74bdd61984dc580dc4"}},{"ruleId":"D2","level":"warning","message":{"text":"AiEndpointHandler.onStateChange (cognitive 66): AiEndpointHandler.onStateChange has cognitive complexity 66 (threshold 15). Drivers by points: if/else 44, ternaries 9, error handling 7, boolean chains 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2a4972201ecda0bd32a01d5ed2266570a218be86f194317b05cb796efe195d"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiCompatibleClient.processResponsesApiSSELine (cognitive 61): OpenAiCompatibleClient.processResponsesApiSSELine has cognitive complexity 61 (threshold 15). Drivers by points: if/else 41, ternaries 11, boolean chains 7, error handling 1, match/switch 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c616bf30a1ded515b606537ee5d8124e8fa8248b3748178820933333cc65b809"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractReflectorAtmosphereHandler.onStateChange (cognitive 59): AbstractReflectorAtmosphereHandler.onStateChange has cognitive complexity 59 (threshold 15). Drivers by points: if/else 41, error handling 8, loops 6, ternaries 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/handler/AbstractReflectorAtmosphereHandler.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6330dfe02f48678af71ef74000394761ad3e9424b130ab074debe54f7e0320ca"}},{"ruleId":"D2","level":"warning","message":{"text":"IntrospectionUtils.invokeProperty (cognitive 58): IntrospectionUtils.invokeProperty has cognitive complexity 58 (threshold 15). Drivers by points: if/else 29, error handling 21, boolean chains 6, loops 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e133e1f7e38360ca0098adb1c1300f05ab4cce6ce82da38dfcd64fa5af0b6b4e"}},{"ruleId":"D2","level":"warning","message":{"text":"SpringAiAgentRuntime.doExecuteWithHandle (cognitive 57): SpringAiAgentRuntime.doExecuteWithHandle has cognitive complexity 57 (threshold 15). Drivers by points: if/else 29, boolean chains 12, ternaries 12, loops 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"01472467091c868ecfbc796e4e9d9635d3dff2876476ab0b1c5c46a93ebf8507"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereFramework.loadAtmosphereDotXml (cognitive 52): AtmosphereFramework.loadAtmosphereDotXml has cognitive complexity 52 (threshold 15). Drivers by points: if/else 33, loops 11, error handling 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dabfcbfe539899ad56aba0a9d457e086699078a5aaae6fe5175fec96098a7e3"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereResourceImpl.suspend (cognitive 51): AtmosphereResourceImpl.suspend has cognitive complexity 51 (threshold 15). Drivers by points: if/else 32, boolean chains 10, ternaries 6, loops 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ee8a27ba5026d1a4a85fc32bb8246f0c23c427210ce984a0e0040627a77314"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationDetector.detect (cognitive 51): AnnotationDetector.detect has cognitive complexity 51 (threshold 15). Drivers by points: if/else 34, error handling 13, loops 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"451b2529a1f0eede4b2e08b7b4aa5b1923d2289ec9970ad9486f3eebfe9290ee"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiCompatibleClient.processSSELine (cognitive 50): OpenAiCompatibleClient.processSSELine has cognitive complexity 50 (threshold 15). Drivers by points: if/else 34, boolean chains 10, ternaries 3, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaf496aade0a14e394ca3b5a537fae4e6c39007b616184a3a14e1311aad68b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedAtmosphereHandler.onStateChange (cognitive 48): ManagedAtmosphereHandler.onStateChange has cognitive complexity 48 (threshold 15). Drivers by points: if/else 34, loops 6, ternaries 5, boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad9eaf117b8cdb1267f79df04310b1f38976cca64fc3f36ea3f3300322399cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereConfigReader.parse (cognitive 47): AtmosphereConfigReader.parse has cognitive complexity 47 (threshold 15). Drivers by points: loops 21, if/else 20, match/switch 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2e75423c534bf4ab2f7f1c2a3fcc526db01e743cb6688f7a9e9e1279441341"}},{"ruleId":"D2","level":"warning","message":{"text":"SpringAiAlibabaAgentRuntime.doExecute (cognitive 45): SpringAiAlibabaAgentRuntime.doExecute has cognitive complexity 45 (threshold 15). Drivers by points: if/else 26, boolean chains 7, ternaries 7, error handling 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaAgentRuntime.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d583ffd9100f4e6f62021191e65c3ec11764dd72413853bfa269fcc038faaea"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerCookieDecoder.decode (cognitive 45): ServerCookieDecoder.decode has cognitive complexity 45 (threshold 15). Drivers by points: if/else 30, loops 6, ternaries 6, boolean chains 3 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52d8a2507a40643f41dae206e93e018e3d71b91cee87e19e0c6f6f9725431d3"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereFramework.configureQueryStringAsRequest (cognitive 41): AtmosphereFramework.configureQueryStringAsRequest has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 20, if/else 14, boolean chains 4, loops 2, error handling 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"5862446464752651340254169cfdd6a47ad749fe2a7e2a142daff7f5fd1dfd6f"}},{"ruleId":"D2","level":"warning","message":{"text":"LangChain4jAgentRuntime.doExecuteWithHandle (cognitive 40): LangChain4jAgentRuntime.doExecuteWithHandle has cognitive complexity 40 (threshold 15). Drivers by points: if/else 28, ternaries 6, boolean chains 4, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddc9d82b2c9984533ce4478fb81d523494a2a1f294c62a2e9ecafb273a355db"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBroadcaster.checkCachedAndPush (cognitive 39): DefaultBroadcaster.checkCachedAndPush has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19, loops 7, error handling 5, ternaries 5, match/switch 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"db371dc0d25342f9ff6a160cd4276837c29d046cdc5cefd560dc4c4d9c617b29"}},{"ruleId":"D2","level":"warning","message":{"text":"JavaScriptProtocol.inspect (cognitive 39): JavaScriptProtocol.inspect has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28, loops 5, error handling 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/JavaScriptProtocol.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a48f38f644a6a04d2f55e56aec89a4478cd75c3006a73d91dc5c288bf81bfcc"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerInitializer.onStartup (cognitive 38): ContainerInitializer.onStartup has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18, error handling 10, boolean chains 6, ternaries 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/ContainerInitializer.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8cc28ac75c4c126b9491ba6fab94628ad78f32629fa6ac00adaafe164fff5b"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpSseSidecarClient.toJson (cognitive 37): HttpSseSidecarClient.toJson has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 19, loops 8, if/else 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb3a42f6e131dab0f2e7eeb370fef7c0e1c2c463de2fe24d091b22937bfa7d0"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBroadcaster.getAsyncWriteHandler (cognitive 37): DefaultBroadcaster.getAsyncWriteHandler has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20, boolean chains 6, error handling 5, ternaries 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"04afed71e2fedcc55b57871dded8769b5aa3d91c3b622d6d41ad46b3a64806a3"}},{"ruleId":"D2","level":"warning","message":{"text":"IntrospectionUtils.replaceProperties (cognitive 37): IntrospectionUtils.replaceProperties has cognitive complexity 37 (threshold 15). Drivers by points: if/else 30, loops 6, boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0074cf58286c87fea64f23784020a074d33cc5e31acf1c1e385bc51734cf1ca"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereRequestImpl.getHeader (cognitive 36): AtmosphereRequestImpl.getHeader has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22, boolean chains 5, loops 5, error handling 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9979e9187ce390964812333815c3119b41096bbfbd0fafc3b7d5414316b757a0"}},{"ruleId":"D2","level":"warning","message":{"text":"InjectableObjectFactory.injectFields (cognitive 36): InjectableObjectFactory.injectFields has cognitive complexity 36 (threshold 15). Drivers by points: if/else 27, error handling 5, loops 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f23e1a5d2ee055f66e5f56ff35a62816686b3188b899d5e16d6e6064bf62f14"}},{"ruleId":"D2","level":"warning","message":{"text":"IntrospectionUtils.processArgs (cognitive 36): IntrospectionUtils.processArgs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 28, loops 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb0a5906ffd88672336933a34cfe4f6c7005cba426b85a944e8a157a8421fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryStringDecoder.decodeParams (cognitive 36): QueryStringDecoder.decodeParams has cognitive complexity 36 (threshold 15). Drivers by points: if/else 33, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ad76730182cec91ace0982f4fb89b10b2e63c61c51519ac590e4afd477c78c"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultAgentFleet.parallel (cognitive 36): DefaultAgentFleet.parallel has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13, loops 8, ternaries 7, error handling 6, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/DefaultAgentFleet.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14ddec32d07a12f4f6a9bb28bcbc30bef0674a53e92c8b5030ab9a3f70191ac"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheKey.compute (cognitive 36): CacheKey.compute has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 16, if/else 14, loops 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/cache/CacheKey.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e694c055274533f48a3581ef7dc6c22a3552e021987a14e642ea58bf77e67456"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiCompatibleClient.doStreamWithToolLoop (cognitive 36): OpenAiCompatibleClient.doStreamWithToolLoop has cognitive complexity 36 (threshold 15). Drivers by points: if/else 24, boolean chains 5, error handling 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e10ac98623a7e0667292617f8cdd4e0157060ba150518dabb0a16ed21e4ede"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBroadcaster.addAtmosphereResource (cognitive 35): DefaultBroadcaster.addAtmosphereResource has cognitive complexity 35 (threshold 15). Drivers by points: if/else 26, boolean chains 5, error handling 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"8794e5f741b4af6b492cfc42ce9148e8d8ce24ca13b8c8a773097a43cb1023cb"}},{"ruleId":"D2","level":"warning","message":{"text":"CoordinatorProcessor.handle (cognitive 35): CoordinatorProcessor.handle has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24, ternaries 6, error handling 2, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc32ee2ba38b3f60c43d2244a26ea00211bd899dcb14b1b564e338d844067713"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassFileIterator.next (cognitive 34): ClassFileIterator.next has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23, error handling 8, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/annotation/ClassFileIterator.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8de743d025b9ba20f9e6c05ba4742e8f2c07064c2be99cbcb6c33e370ed5a79"}},{"ruleId":"D2","level":"warning","message":{"text":"AsynchronousProcessor.action (cognitive 33): AsynchronousProcessor.action has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, boolean chains 5, error handling 5, ternaries 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc2d257a19e7ee09227145f2fe3613251368684ff1dc73a27eec30d37b65dc5"}},{"ruleId":"D2","level":"warning","message":{"text":"IntrospectionUtils.findMethod (cognitive 33): IntrospectionUtils.findMethod has cognitive complexity 33 (threshold 15). Drivers by points: if/else 27, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d8acb7b472d61f283d9ecd86ba7932d95e6e38a410b8f98ced7e65f5acd332"}},{"ruleId":"D2","level":"warning","message":{"text":"AsynchronousProcessor.completeLifecycle (cognitive 32): AsynchronousProcessor.completeLifecycle has cognitive complexity 32 (threshold 15). Drivers by points: if/else 18, error handling 11, ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0f03d2ca020bdbc7a0f3290bdc005975616158725159ba3363f0f58accd22c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkConcatReader.read (cognitive 32): ChunkConcatReader.read has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, error handling 8, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/ChunkConcatReaderPool.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"831ab6c43c71cb42fa816d2a893aa9635641afd32cd44b63733507cc7fa1286a"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultWebSocketProcessor.postProcessMapping (cognitive 32): DefaultWebSocketProcessor.postProcessMapping has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20, error handling 8, boolean chains 2, ternaries 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"106902c54ed53bffffeeab330a8c5b0335bddbf41737d89e8386b30ade625180"}},{"ruleId":"D2","level":"warning","message":{"text":"HeartbeatInterceptor.inspect (cognitive 31): HeartbeatInterceptor.inspect has cognitive complexity 31 (threshold 15). Drivers by points: if/else 23, boolean chains 5, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/HeartbeatInterceptor.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba243295eaa1bfab66c77f89ddd7718de5e6f7b66d35a9419f807fa95ec25be4"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultWebSocketProcessor.close (cognitive 31): DefaultWebSocketProcessor.close has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18, ternaries 11, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96142da5fb4f4f16edd029bde15d0ca4df1edb0ac213cb553ebd4307cbe7e7f"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptMethodInvoker.bindArguments (cognitive 30): PromptMethodInvoker.bindArguments has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, loops 7 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/PromptMethodInvoker.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c51d119914d59d9914a278a7eef3ac26b0b36cc7da8f4103086273b6cf0a67"}},{"ruleId":"D2","level":"warning","message":{"text":"CedarCliAuthorizer.appendJson (cognitive 30): CedarCliAuthorizer.appendJson has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19, loops 11 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"071c7d3a33a8470c4b50d19339dc6f1c06737eed2be96b9e8b142addd1d360e5"}},{"ruleId":"D2","level":"warning","message":{"text":"main (cognitive 30): main has cognitive complexity 30 (threshold 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cli/npx/index.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1658ccebff7b015799b58a7f8ce1b74ebed974288d7292fbf3d81a890ddcaa"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereAutoConfiguration.scanAnnotations (cognitive 29): AtmosphereAutoConfiguration.scanAnnotations has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15, loops 14 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d960fa06db657b43ea5bfb3eefc64da5ad5fb3218b8c6fbeee49bf94ab9483"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereResourceImpl.notifyListeners (cognitive 29): AtmosphereResourceImpl.notifyListeners has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, ternaries 5, boolean chains 4, error handling 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ef586e38d9c86071d909af037b6b6b11b4fe601bd982a5ee0a413614e6efe7"}},{"ruleId":"D2","level":"warning","message":{"text":"IOUtils.readEntirelyAsString (cognitive 29): IOUtils.readEntirelyAsString has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13, error handling 10, loops 3, ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1614b422c8421fc6043a71523d757e088f48961caec69b50dbb0c5d20d8549"}},{"ruleId":"D2","level":"warning","message":{"text":"WhatsAppChannel.receive (cognitive 29): WhatsAppChannel.receive has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18, loops 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8916d28d3d2789ba1ebbd83b6a08812afa3437e1aa9ada42299a255eef107a8"}},{"ruleId":"D2","level":"warning","message":{"text":"AiEndpointProcessor.handle (cognitive 29): AiEndpointProcessor.handle has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, ternaries 8, loops 2, boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad77551b0893607a27fb20bf3091f8ca653b2abf6b920932b31eee673c72217b"}},{"ruleId":"D2","level":"warning","message":{"text":"AdkAgentRuntime.buildRequestRunner (cognitive 29): AdkAgentRuntime.buildRequestRunner has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18, error handling 4, ternaries 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ba4f193193e9b285a0316d30a14a5755294c3dda4f172b1a5e6d534dad07bc"}},{"ruleId":"D2","level":"warning","message":{"text":"PathParamIntrospector.injectable (cognitive 28): PathParamIntrospector.injectable has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 4, ternaries 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/inject/PathParamIntrospector.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d518d5bb2d82fd31fc5ece3425de7d89cfccfaa85aaf0b436430430e4dbb09"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleRestInterceptor.readBalancedObject (cognitive 28): SimpleRestInterceptor.readBalancedObject has cognitive complexity 28 (threshold 15). Drivers by points: if/else 26, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3677d7fd8c3ccfa2df9c76c9d187e0240e7d442e44353a490658869d9f5ecf3"}},{"ruleId":"D2","level":"warning","message":{"text":"IOUtils.forceReadEntirelyAsByte (cognitive 28): IOUtils.forceReadEntirelyAsByte has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, error handling 8, loops 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"90945dc4b84d47df2e81ede007e877e569a77c6fbcb429295a04c4c3a6d9afb0"}},{"ruleId":"D2","level":"warning","message":{"text":"A2aHandler.restRoute (cognitive 28): A2aHandler.restRoute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 8 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b6e81e0f9b515bfb10c3c946b291dd4be3c41d4898d9d0e5db6e95e8ccb0d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedAtmosphereHandler.onRequest (cognitive 27): ManagedAtmosphereHandler.onRequest has cognitive complexity 27 (threshold 15). Drivers by points: if/else 24, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac7db91a96dbdd8b60eb8712b093408712e7090cfc3d47155e1dccb910a8f7a"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedServiceInterceptor.mapAnnotatedService (cognitive 27): ManagedServiceInterceptor.mapAnnotatedService has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, error handling 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedServiceInterceptor.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4aeee36c6f9d70e9a256d44f95e7fde038f97c2159d05d65e4b8536a553578"}},{"ruleId":"D2","level":"warning","message":{"text":"CohereChatClient.stream (cognitive 27): CohereChatClient.stream has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11, ternaries 5, loops 4, boolean chains 3, error handling 2, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff692a99c3da0458341930e9a86e988cff7e3ab244f3d99d037f55b1b2bbf44d"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiCompatibleClient.buildResponsesApiBody (cognitive 27): OpenAiCompatibleClient.buildResponsesApiBody has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad13d1e08826f294c98ac5ce479e0641e348d74fa9587b2189d81c7ace2bd393"}},{"ruleId":"D2","level":"warning","message":{"text":"UUIDBroadcasterCache.invalidateExpiredEntries (cognitive 26): UUIDBroadcasterCache.invalidateExpiredEntries has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, loops 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cache/UUIDBroadcasterCache.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb77ae3fbd24a46ef6bfb486668b5694cc8506fe3c1bd45668cd70be8c5e5c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProcessor.handle (cognitive 26): AgentProcessor.handle has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, ternaries 3, error handling 2, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd17e6e657ea974de63a5a2645e7177f64348b68b6a9e7814732d893e0981656"}},{"ruleId":"D2","level":"warning","message":{"text":"GovernanceController.check (cognitive 26): GovernanceController.check has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10, loops 4, ternaries 4, error handling 3, match/switch 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f5d17bf252a8d05eeb03adfaa12cc4251826fb95c214d94a2a311ddd4ad254"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereFramework.configureRequestResponse (cognitive 25): AtmosphereFramework.configureRequestResponse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, boolean chains 5, ternaries 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"62295c83b2151009848cf1528c0db6358ca5d6ba7b116a2d08c5a7bef16aa1a9"}},{"ruleId":"D2","level":"warning","message":{"text":"FrameworkDiagnostics.info (cognitive 25): FrameworkDiagnostics.info has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, loops 5, ternaries 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/FrameworkDiagnostics.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d67ad53d49bff7b7138579ae2b49ead0f018d91dfa17d90de5e46a58006158"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultEndpointMapper.map (cognitive 25): DefaultEndpointMapper.map has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 6, loops 4, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/DefaultEndpointMapper.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37a473ea5d46576bfa770536bdc66beaa8d001d52efcf3f506f295c40febc5e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeConfig.\u003Cinit\u003E (cognitive 25): ScopeConfig.\u003Cinit\u003E has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 12, if/else 9, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopeConfig.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"95660770c5dac7bd6daebb53661d6078a6ec1a7792f5248c40dae061bfd726fe"}},{"ruleId":"D2","level":"warning","message":{"text":"RoutingLlmClient.streamChatCompletion (cognitive 25): RoutingLlmClient.streamChatCompletion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, error handling 3, match/switch 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78b49c7999627e724c032cf557739677f377104114b90de6fd5b48a124a361e"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolExecutionHelper.executeWithApprovalLive (cognitive 25): ToolExecutionHelper.executeWithApprovalLive has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 5, boolean chains 4, match/switch 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"484e6a380f409c720794b4a8a6a83c4f306cfa7e5e4d29655af380686b36e074"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillFileParser.parse (cognitive 25): SkillFileParser.parse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/skill/SkillFileParser.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f28e450a876c201d794b49b9ed5420edb6d7608ee476ea6080e13363cf96d2"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentController.listAgents (cognitive 25): AgentController.listAgents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, ternaries 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/agent/AgentController.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e780cb53a197e2d6972cbfd624af882cc5ee46d9694068be4c085686ebeacdb4"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminMcpBridge.registerOptionalReadTools (cognitive 25): AdminMcpBridge.registerOptionalReadTools has cognitive complexity 25 (threshold 15). Drivers by points: error handling 19, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f987caf5ffb37665e4fb9b8624cc512903807a3378ba939c31e886d36163ff"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaBroadcaster.consumeLoop (cognitive 24): KafkaBroadcaster.consumeLoop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11, error handling 9, loops 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/kafka/src/main/java/org/atmosphere/kafka/KafkaBroadcaster.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"68429cd0497f98159cb76077571344c6baa2954bafc148ca89f97c4c71f5ad6b"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereFramework.doInitParams (cognitive 24): AtmosphereFramework.doInitParams has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddccd899641f42df9453cc43c9531c6bf9e586c78d6e520d3806c2afab50e4bc"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.format (cognitive 24): Markdown.format has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 16, if/else 3, boolean chains 2, match/switch 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/JournalFormat.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b79169fa029793cfe2feaca388e6a039016f4bb44cd599f8b2d1adffe2a760"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicMessagesClient.buildRequestBody (cognitive 24): AnthropicMessagesClient.buildRequestBody has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 5, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf4dcc7d266f67c7a8f0ece0c6c03e8d2a3c9e161e103647417d635d43e6618"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceExtensions.permissionPolicies (cognitive 24): WorkspaceExtensions.permissionPolicies has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99848ddea561251b747b73785b1277b49808b879b1eaafbebcd89380ff52e51"}},{"ruleId":"D2","level":"warning","message":{"text":"McpHandler.handlePost (cognitive 23): McpHandler.handlePost has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, error handling 4, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9c264d0b4cfeec5a427a8431de556e6eacc64eeb54958f19e3f24ec17c378e"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolAwareStreamingResponseHandler.onCompleteResponse (cognitive 23): ToolAwareStreamingResponseHandler.onCompleteResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, ternaries 6, match/switch 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2ddbf859cef3b955b2a0fda8ac42ccf559f90d74498140c38df197294c6e2f"}},{"ruleId":"D2","level":"warning","message":{"text":"CrewAiAgentRuntime.drainStream (cognitive 23): CrewAiAgentRuntime.drainStream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, boolean chains 2, error handling 2, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"321a35d824b8245beba275f3fd5d0291b12414ac3459d5cf66e03a09aa4de8db"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultMetaBroadcaster.broadcast (cognitive 23): DefaultMetaBroadcaster.broadcast has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 4, error handling 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultMetaBroadcaster.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"278e2be9d2c0b06fdf4a40955aed3d2c6397a7cf6db77939261305cdddeec8e3"}},{"ruleId":"D2","level":"warning","message":{"text":"InjectableObjectFactory.configure (cognitive 23): InjectableObjectFactory.configure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9, error handling 7, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacb992c1649e9a8a8224884626591aadbe81394c37ca613269fa80a19b389eb"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultEndpointMapper.map (cognitive 23): DefaultEndpointMapper.map has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, ternaries 6, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/DefaultEndpointMapper.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc799d03da29b51c98c402f360444b8889cd53828acb3e996b3e10df4cc0c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"A2aAgentTransport.extractStreamingText (cognitive 23): A2aAgentTransport.extractStreamingText has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73504f536604b2018277595939968659e8a3af5bcacf20ae90b9176cc00bdb9"}},{"ruleId":"D2","level":"warning","message":{"text":"A2aAgentTransport.send (cognitive 23): A2aAgentTransport.send has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 12, if/else 8, boolean chains 2, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d113a00f5083de755eba7e50937da569fe23940fd3ce9c3b0a50ba30eff6a499"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelAiBridge.callAi (cognitive 23): ChannelAiBridge.callAi has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, error handling 3, loops 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/channels/src/main/java/org/atmosphere/channels/ChannelAiBridge.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7027dbaf85ddb8b49e04ae62b01c319ca04f91e25c1689a6e34db28a4e51bf9"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicMessagesClient.stream (cognitive 23): AnthropicMessagesClient.stream has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, ternaries 5, boolean chains 2, error handling 2, loops 2, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9dac5885b5dbb2c96ce25342a7a55d80ac9fe9adfc8fd5791d4e8723c075cf"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiCompatibleClient.continueAfterRound (cognitive 23): OpenAiCompatibleClient.continueAfterRound has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, loops 4, match/switch 4, ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e296757e873a18f54306530ee645505ee8f6ab0625e6d91ecb0525fd1179eb6"}},{"ruleId":"D2","level":"warning","message":{"text":"OnSessionCloseStrategy.parseJsonArray (cognitive 23): OnSessionCloseStrategy.parseJsonArray has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 5, loops 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"69791bb6650e71dad265ad0e1fb19137b45aa2033f0339e99a29578591632814"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiToolImporter.fromSpec (cognitive 23): OpenApiToolImporter.fromSpec has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, boolean chains 4, error handling 3, loops 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fd75bfd2b61ac4e91d9c07d98bd96d0a72921298b5eaea26a34cce40eb81d3"}},{"ruleId":"D2","level":"warning","message":{"text":"GoapPlanner.plan (cognitive 22): GoapPlanner.plan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/verifier/src/main/java/org/atmosphere/verifier/planner/GoapPlanner.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d153ea4f376059d5e027a88fc035da245398765bb00b0580eb0b850173cd1f48"}},{"ruleId":"D2","level":"warning","message":{"text":"McpRegistry.scan (cognitive 22): McpRegistry.scan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/registry/McpRegistry.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2888d4caa29a243120564d4359242ba68a0c4fe63f118cb02cfa7d39bbefe280"}},{"ruleId":"D2","level":"warning","message":{"text":"ClasspathScanner.autoConfigureService (cognitive 22): ClasspathScanner.autoConfigureService has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, loops 6, ternaries 3, boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd16f20c5484c1cc9bf65bd2b2ad1e180a92f9870a4ab93c3edb0e823109b04c"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBroadcaster.queueWriteIO (cognitive 22): DefaultBroadcaster.queueWriteIO has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78afcad16306abad50c416b68e3d3f78e7ba6bdaf87951778fdefa003201730"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleRestInterceptor.createAtmosphereRequest (cognitive 22): SimpleRestInterceptor.createAtmosphereRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b7be91dbfb3428aa0ed8be792f377b665e734259e90803f063ecc78281cc17"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiCompatibleClient.sendWithRetry (cognitive 22): OpenAiCompatibleClient.sendWithRetry has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, error handling 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb7cea1a5c17b8be5c637f7f4e7080f1fe0e94aecc29d17699161892f564669"}},{"ruleId":"D2","level":"warning","message":{"text":"AiEndpointHandler.appendResolvedFacts (cognitive 22): AiEndpointHandler.appendResolvedFacts has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9, if/else 8, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"9518ebcca8a09fd8c3e8af57566fc9b5c5cdd8a8132cc05ba6e54b8d4ccd2a07"}},{"ruleId":"D2","level":"warning","message":{"text":"SpringAtmosphereObjectFactory.injectSpringBeans (cognitive 21): SpringAtmosphereObjectFactory.injectSpringBeans has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, error handling 6, loops 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/SpringAtmosphereObjectFactory.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ecb9b9721e53732f80e7526a1d193a0e3c112c4d6d6e978f4665bbf9111d3c"}},{"ruleId":"D2","level":"warning","message":{"text":"IdleResourceInterceptor.idleResources (cognitive 21): IdleResourceInterceptor.idleResources has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 2, error handling 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/IdleResourceInterceptor.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"de899770b975172fc5b73e55f9e3c96b21d2657351a4b9b7fa23687ab7739b5a"}},{"ruleId":"D2","level":"warning","message":{"text":"IOUtils.guestRawServletPath (cognitive 21): IOUtils.guestRawServletPath has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IOUtils.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3464f062aeb8c47e2eb6bc5beec54ab169577b6a08852cb6e86d25244012e1b5"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpOperationExecutor.execute (cognitive 21): HttpOperationExecutor.execute has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8, if/else 7, boolean chains 2, loops 2, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d4a89a79eafbf356b46e3bb5e4d2bf83a5225e0239bb6877c490998e7f4d4f"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifyCli.run (cognitive 20): VerifyCli.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8, ternaries 6, error handling 2, loops 2, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/verifier/src/main/java/org/atmosphere/verifier/cli/VerifyCli.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e7a00c8fc6f742d6246969ebdb62e5389cab0795229293faae786b2dec591c"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedAtmosphereHandler.message (cognitive 20): ManagedAtmosphereHandler.message has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/config/managed/ManagedAtmosphereHandler.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d453fbc1f1f77040dc82d72340da9fa24c306e559af760ef9f9a81eeb063d1c"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereResourceImpl.resume (cognitive 20): AtmosphereResourceImpl.resume has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, error handling 3, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dffb06941c6b15dae8c75f5475f325c2852310a739f5c9f1ce29ef8db4a476"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBroadcaster.executeAsyncWrite (cognitive 20): DefaultBroadcaster.executeAsyncWrite has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, error handling 3, loops 3, ternaries 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ecd97de2fd5d3a10b581d4fb00e5d8520ca950198184e54a041ecf5772e5ab"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryStringDecoder.decodeComponent (cognitive 20): QueryStringDecoder.decodeComponent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, match/switch 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/QueryStringDecoder.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98c1bb896029f8aee5837643866b395b4d736632ac081f2c5b8e29fade74b36"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.onRequest (cognitive 20): AgentHandler.onRequest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, match/switch 3, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/processor/AgentHandler.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c672c3380018bf2341f4751cbf4574df1f72039082c7e2722e1387d2672affd4"}},{"ruleId":"D2","level":"warning","message":{"text":"A2aProtocolHandler.executeSkill (cognitive 20): A2aProtocolHandler.executeSkill has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, ternaries 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2c92a4d2b778d29ec1dc6a93bbc040aa3c11e45c317f69519b8eb5c88c95a8"}},{"ruleId":"D2","level":"warning","message":{"text":"A2aProtocolHandler.handleStreamingMessage (cognitive 20): A2aProtocolHandler.handleStreamingMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db4df6e2d5e0f31deac8b54fd913dd925cafaf72f8e35ca8a31e4ef6a7e86ad"}},{"ruleId":"D2","level":"warning","message":{"text":"LongPollingTransport.poll (cognitive 19): LongPollingTransport.poll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 4, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e398fc85e314294e4bacd2677ba809bac6c9d485a28e340f2b538b3e4cf81a"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar (cognitive 19): AtmosphereAiAutoConfiguration.atmosphereAiEndpointRegistrar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 3, error handling 2, ternaries 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bb05fff2a42b85a3c6035ad55cb4e1b054b0c42787b53cfeddfafc2167583f"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller (cognitive 19): AtmosphereAiAutoConfiguration.atmosphereRoutingClientInstaller has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, boolean chains 6, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"c394baa0cdccd34f53227574745bcf7f3b0058786f9da1b5e008be951246e9fc"}},{"ruleId":"D2","level":"warning","message":{"text":"McpProtocolHandler.handleInitialize (cognitive 19): McpProtocolHandler.handleInitialize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, ternaries 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"7721dfe5af29baf7d45fafbfc51d94245895248a15ed510214074e3b28356671"}},{"ruleId":"D2","level":"warning","message":{"text":"EventIterator.readNext (cognitive 19): EventIterator.readNext has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, ternaries 4, boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a062de76c27edb9b37415a5d702aadaa3e42406f545f1f0abb4951207ee2a58"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereFrameworkInitializer.configureFramework (cognitive 19): AtmosphereFrameworkInitializer.configureFramework has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFrameworkInitializer.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d9417f5b0058395089c3794eaa5eb8d35719937b5e0e42b3c6cca5ceec6a81"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereRequestImpl.getHeaders (cognitive 19): AtmosphereRequestImpl.getHeaders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c0f903c6dce80cb0664c00f95571757e078413d860a104b43294b461254968"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultAsyncSupportResolver.detectWebSocketPresent (cognitive 19): DefaultAsyncSupportResolver.detectWebSocketPresent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9355708bf4ad3656e355da55b66d200197d0ac1f30432bc6ec762c22a8ba8e"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBroadcaster.getBroadcastHandler (cognitive 19): DefaultBroadcaster.getBroadcastHandler has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08c7e5326e8675ed0ad43236436d9de8725342bfb741ae7eb28052cc2c402f7"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleRestInterceptor.inspect (cognitive 19): SimpleRestInterceptor.inspect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/SimpleRestInterceptor.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c950e818da421f7704b5419a0ff57b3019905e96469e4c2154e87ab07a8a6b"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultWebSocketProcessor.invokeInterceptors (cognitive 19): DefaultWebSocketProcessor.invokeInterceptors has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, error handling 2, ternaries 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c1b2ee48814fb3a5dd9859a17fd8ed6de4da24350737e273288365e4c661ea"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalAgentTransport.send (cognitive 19): LocalAgentTransport.send has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 7, boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd95ef27b1e7780c1b37a36614d31bd19d42e57dba8986ff606bd2a81acdbd83"}},{"ruleId":"D2","level":"warning","message":{"text":"FanOutStreamingSession.fanOut (cognitive 19): FanOutStreamingSession.fanOut has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/fanout/FanOutStreamingSession.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3da46f9387c7295e63751577305dcc383ef11f9a387f984d6f9503aa10bc808"}},{"ruleId":"D2","level":"warning","message":{"text":"GovernancePolicies.installed (cognitive 19): GovernancePolicies.installed has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/GovernancePolicies.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bf3cb9c3ac268879c588127045f8a86cf2788d2d409f79f8a6b5c8e7f263f3"}},{"ruleId":"D2","level":"warning","message":{"text":"YamlPolicyParser.parse (cognitive 19): YamlPolicyParser.parse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 4, error handling 3, boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bd714bd64ab6baf01f00874bdcd45c39604f8be021cc427ccd510ea6cf53a7"}},{"ruleId":"D2","level":"warning","message":{"text":"BuiltInAgentRuntime.buildRequest (cognitive 19): BuiltInAgentRuntime.buildRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c101cda4cece0a028d5ea1114e583f2758733d8a4dd8eaf8efea86351ff25a"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiCompatibleClient.buildRequestBody (cognitive 19): OpenAiCompatibleClient.buildRequestBody has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"807b7094d129cbfb92f489c5f3f40c9006407f181417598b7cbb82e28fce1148"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableRunResumer.reconstruct (cognitive 19): DurableRunResumer.reconstruct has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 8, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/resume/DurableRunResumer.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b07dc3d8de0f18ac255faf37bfc8051acf17baa233be7099ccdda7b6a17c3d5"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceExtensions.mcpServerUris (cognitive 19): WorkspaceExtensions.mcpServerUris has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 4, error handling 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab692352874c57ba55b5061adf94c005d7497333bc3ae5b5ae14279e94a9c2bd"}},{"ruleId":"D2","level":"warning","message":{"text":"OpaSubprocessEvaluator.appendValue (cognitive 19): OpaSubprocessEvaluator.appendValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"921bb9bf759a82f32fdc92ebe9a602cbe7aaeff769a166a58c796c16cea4ef7d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgUiHandler.handlePost (cognitive 19): AgUiHandler.handlePost has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, error handling 4, ternaries 4, boolean chains 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb64a57ef7f839aa0cf4daf20fc0ba86f5494c03d2c8901dd4a2cff78df86611"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowController.buildGraph (cognitive 19): FlowController.buildGraph has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, ternaries 6, loops 3, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1222e8a70f6b62e5ee6d63f3c2122011f042a66b7ae7d35547c9247cd8a2999"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonCanonicalizer.write (cognitive 19): JsonCanonicalizer.write has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, ternaries 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/security/JsonCanonicalizer.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"946f7154d7b57a9bf0d7bbe73fea150f6ef645d82d968ed62b239e5eae9c17a2"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeResolver.resolveGenericType (cognitive 18): TypeResolver.resolveGenericType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/config/managed/TypeResolver.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8025eab690a4b859fb9b5cd768180ecf70df4a5bf4fb937b209a73ddc2099b7e"}},{"ruleId":"D2","level":"warning","message":{"text":"AsynchronousProcessor.invokeAtmosphereHandler (cognitive 18): AsynchronousProcessor.invokeAtmosphereHandler has cognitive complexity 18 (threshold 15). Drivers by points: error handling 9, if/else 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"960b9e3ccfebfdb14baabd5a0b93eb9d540ce78b5b21e901103f104cdfa105bc"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereResourceImpl.cancel (cognitive 18): AtmosphereResourceImpl.cancel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c417384f27d6ad95ca5230ab714bcc5098c01351847f11270984b25521be6f"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallMetaServiceProcedure.apply (cognitive 18): 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 \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/MetaServiceAction.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfd79f30449eee95ba2d3806b1c0ed2aa4cd782196433dc444817b5e6f66885"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultWebSocketProcessor.open (cognitive 18): DefaultWebSocketProcessor.open has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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 \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"094752e2e9a51deec5dbbd1d339301f510d59584932144e5a95aa645aa54a7d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelWebhookController.handleWebhook (cognitive 18): ChannelWebhookController.handleWebhook has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 4, error handling 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/channels/src/main/java/org/atmosphere/channels/ChannelWebhookController.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"49554611ed5a7b1cac1aaffcc5f0a30e58c0c341493d7080c271e8737d239dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingLoadTest.runLoadTest (cognitive 18): StreamingLoadTest.runLoadTest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, loops 6, error handling 4 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/benchmarks/src/main/java/org/atmosphere/benchmarks/load/StreamingLoadTest.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d533b846c4fe3406f1710b08f59a0aa37c9bda1268f75a8c37a403ddc3987036"}},{"ruleId":"D2","level":"warning","message":{"text":"TapeTrainingExtractor.inputMessages (cognitive 18): TapeTrainingExtractor.inputMessages has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6, if/else 4, boolean chains 3, loops 3, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tape/TapeTrainingExtractor.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d4dd95c5429b69ce186871b374fe16f8bb1581172ba54a4a7205339866bf80"}},{"ruleId":"D2","level":"warning","message":{"text":"PersistentConversationMemory.findMatchingBrace (cognitive 18): PersistentConversationMemory.findMatchingBrace has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f806e9d2907e2e28cbfca3588955e969f491f46033f7d92932ef8428c5a6738"}},{"ruleId":"D2","level":"warning","message":{"text":"StructuredOutputRetry.runLoop (cognitive 18): StructuredOutputRetry.runLoop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, error handling 4, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/StructuredOutputRetry.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3526e70e7a4f2e094ad309b6ac8716133ce50301247c3998c3e2bbf4a6b7bbb3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.\u003Cinit\u003E (cognitive 18): AgentHandler.\u003Cinit\u003E has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6, loops 6, if/else 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/processor/AgentHandler.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4e2a91618798c33906c9c34d4818341dbd21a1981d56e9453df8e4cba429a6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProcessor.handleHeadless (cognitive 18): AgentProcessor.handleHeadless has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, ternaries 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"355f9697e1e7ba5721e9a158a940292e124c143228a1107fa9845ae0598e781e"}},{"ruleId":"D2","level":"warning","message":{"text":"LangChain4jAgentRuntime.dispatchAiService (cognitive 17): LangChain4jAgentRuntime.dispatchAiService has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd016c541d37f76414f272ac4ec6f7fe2b2de883f450d609412ad1005edb691"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenEmittingRuntime.execute (cognitive 17): TokenEmittingRuntime.execute has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 2, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45696401369e79c13ecc17dc0226b4f173b6f69817cf368c22ac5a22fd685ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Interceptor.transformPayload (cognitive 17): Interceptor.transformPayload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b80add542b7afe1497a7d78e93cd9dcd44b611598a81d80c2b03df3e024ed05"}},{"ruleId":"D2","level":"warning","message":{"text":"AtmosphereRequestImpl.getSession (cognitive 17): AtmosphereRequestImpl.getSession has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 7, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96d3911f9aac0812105d5ca9b3132e0c8299026ad6c4bcf2974dc922b6f47a2"}},{"ruleId":"D2","level":"warning","message":{"text":"InterceptorRegistry.configure (cognitive 17): InterceptorRegistry.configure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 4, error handling 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/InterceptorRegistry.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"139a25aef648c1912ba60a035e5634b7a4cf53d7c4d9a764ccde7970027570c6"}},{"ruleId":"D2","level":"warning","message":{"text":"SSEAtmosphereInterceptor.encodeMultilineData (cognitive 17): SSEAtmosphereInterceptor.encodeMultilineData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 1, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/interceptor/SSEAtmosphereInterceptor.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44267658d463dad639869bf80a1c9970e61d7bf6fc97d3d85bc2f607cd9bfcd"}},{"ruleId":"D2","level":"warning","message":{"text":"AgUiCoordinatorBridge.onAction (cognitive 17): AgUiCoordinatorBridge.onAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, error handling 4, ternaries 3, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea19b445a4425d0c8a0fd45b6270831bb81eaecef9548e43258660f52c6b7dae"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonRpcUtils.firstPartText (cognitive 17): JsonRpcUtils.firstPartText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"199bf26116c7247f86d768c4d88fc509cfeebca5ac353c0a454ad2ace36f8a92"}},{"ruleId":"D2","level":"warning","message":{"text":"AiStreamMessage.extractValue (cognitive 17): AiStreamMessage.extractValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 8, boolean chains 1 (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/filter/AiStreamMessage.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"458e3ca02b3bafe8d8be2f8bec7360e047fba7eca48c393b0a50ef16f180ac40"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticIntentScopeGuardrail.evaluate (cognitive 17): SemanticIntentScopeGuardrail.evaluate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa76fc660ce4e1e9a572e4fb9bcda17bfc4fe3363206b08f51788f4a3ae4be5"}},{"ruleId":"D2","level":"warning","message":{"text":"AiEndpointProcessor.instantiateGuardrails (cognitive 17): AiEndpointProcessor.instantiateGuardrails has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 5, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e69484397871e8fab49586b6377c3e80d224acbbf10defcd9b95fb93719940"}},{"ruleId":"D2","level":"warning","message":{"text":"TapeRecordingSession.recordInput (cognitive 17): TapeRecordingSession.recordInput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, ternaries 6, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tape/TapeRecordingSession.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d02cca1cc626ff5ab8ba0e80bc7659cf5ac6967fa8c11a3d495f9d7f4cef1fe"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractAgentRuntime.executeWithOuterRetry (cognitive 17): AbstractAgentRuntime.executeWithOuterRetry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, error handling 6, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29721792a62baf2bd0d2c1f265ddef13c09d3246cb2813bb3a0a062872016d1"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillFileParser.parseFrontmatter (cognitive 17): SkillFileParser.parseFrontmatter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/skill/SkillFileParser.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"318fef03eb7ffb769714d715016eee710b873c01e7d3fac2336e5f88fac0e14c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentController.findAgentAnnotation (cognitive 17): AgentController.findAgentAnnotation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 5, boolean chains 2, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/agent/AgentController.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02ec4441b653725f0d1e1ab49e1d94f9d7e6865b8983b818b7c0d3427ac53bd"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminMcpBridge.registerTapeReadTool (cognitive 17): AdminMcpBridge.registerTapeReadTool has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9, if/else 3, loops 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"661d9d7f639666eb901836e05992cec50672db28a6b649bbc25fde3fbaaf6124"}},{"ruleId":"D2","level":"warning","message":{"text":"AdkAgentRuntime.doExecuteWithHandle (cognitive 17): AdkAgentRuntime.doExecuteWithHandle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, ternaries 6, boolean chains 4, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"88db5cd0e1ddbcd971ad70b6a31ed454ef7f9a8a35269816b5351d97c37e6310"}},{"ruleId":"D2","level":"warning","message":{"text":"AdkEventAdapter.onEvent (cognitive 17): AdkEventAdapter.onEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/adk/src/main/java/org/atmosphere/ai/adk/AdkEventAdapter.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cc9698fa049e861d4335778f7f6f1c7c860062fe53b35c4bdd047ea30c73c1"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedJettyWebSocketChat.run (cognitive 16): EmbeddedJettyWebSocketChat.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/embedded-jetty-websocket-chat/src/main/java/org/atmosphere/samples/chat/EmbeddedJettyWebSocketChat.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"618c6af21d2d1fbb0d9ab755b8251f0dc4e9bd2e418a01e89af69b3c7b18faea"}},{"ruleId":"D2","level":"warning","message":{"text":"McpProtocolHandler.handleSingleMessage (cognitive 16): McpProtocolHandler.handleSingleMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29204c7669722344a61e3a6230bc33d0ba93cb5e7e2e0b5b0d1c0bf6bf9b2c3"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeResolver.buildTypeVariableMap (cognitive 16): TypeResolver.buildTypeVariableMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/config/managed/TypeResolver.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa968d1b80d66934f745890d459b6c1df1b381c087baaa9e34676528798a75a"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBroadcaster.cacheAndSuspend (cognitive 16): DefaultBroadcaster.cacheAndSuspend has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90e95b908504050d2bca4dccde0897632cabf355617c3361f6aeeef8b37d8db"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseWriter.writeWithBuffering (cognitive 16): ResponseWriter.writeWithBuffering has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, error handling 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"529ea9a03c360fbe2dbd3058b010c6af199ef3da5566bc1352d8e80e0c6d57b8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnnotationDetector.print (cognitive 16): AnnotationDetector.print has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/annotation/AnnotationDetector.java"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f949c1f2dc11091107b4ceec76689ae7bcc83addcda84cda82c7ad474894b0e"}},{"ruleId":"D2","level":"warning","message":{"text":"CookieUtil.toString (cognitive 16): CookieUtil.toString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/CookieUtil.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e234cc18341489f7b52cdbef586f50f7bda8f160b0b4e1ccf66c97ab41223911"}},{"ruleId":"D2","level":"warning","message":{"text":"IntrospectionUtils.convert (cognitive 16): IntrospectionUtils.convert has cognitive complexity 16 (threshold 15). Drivers by points: error handling 8, if/else 6, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb31d49b4511c17faea30ed94b9bbc2cc79511fcc7da824a1f099494d4371240"}},{"ruleId":"D2","level":"warning","message":{"text":"PathTemplate.\u003Cinit\u003E (cognitive 16): PathTemplate.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/PathTemplate.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"57154bff3b9c5f3a2e632849c4f1134e968df0e2763585126dd1cbc7ac5e71d3"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSocket.write (cognitive 16): WebSocket.write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85bd7b24615ac96cd3458beda1cb85a260cce6e516cf0538bfb28a02440822b"}},{"ruleId":"D2","level":"warning","message":{"text":"WebTransportSession.write (cognitive 16): WebTransportSession.write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23ff900cc7683146154aa4dcb5effc773272ee71038356c72f7e7b639792b00"}},{"ruleId":"D2","level":"warning","message":{"text":"AiResponseCacheListener.onAddCache (cognitive 16): AiResponseCacheListener.onAddCache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/cache/AiResponseCacheListener.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a212210b6b6bae7b60ba000f54cd0fa38b09ec82d8a104e6cd205fcbddd205"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthorizationPolicy.defaultRoleResolver (cognitive 16): AuthorizationPolicy.defaultRoleResolver has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"880502674ff2e0a4d9907b8ffa1c3ab69c63a41e97883a5aa257326e547f6045"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiToolImporter.collectRequestBody (cognitive 16): OpenApiToolImporter.collectRequestBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 3, ternaries 3, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/openapi/OpenApiToolImporter.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"375bfa8c7c69c4067511087d49ae4335d19e4157012d87f4c034ca7e026f59d5"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiModalInput.decode (cognitive 16): 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 \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/MultiModalInput.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"73561e3f9c31ede8760ed871280b6bfa750471504249d65267fb74647d4641af"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AtmosphereFramework: TooManyMethods \u2014 195 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f101c6be129820efd77a26afb4000f63308aa887eae602c961fd3aa371acbef"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AtmosphereRequestImpl: TooManyMethods \u2014 108 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8618a4dd8742353c36374f3d3ded99b016e3f66c53efc0ac7e3aed75f6d9c504"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultBroadcaster: TooManyMethods \u2014 92 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"905ebfcf239fba2fc844f0b1114f966222d9b3d9a19d45511f8bbb0c50f55d8f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AtmosphereResourceImpl: TooManyMethods \u2014 85 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9215c4117a4ea39322cac5461273523be4adb19ac4c3e9e82feb2d5a7509e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cpr/DefaultBroadcaster.java: FileTooLong \u2014 1207 significant lines (blank, comment-only and punctuation-only lines excluded). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6184578f3218f552eccfc16afd46fe1cc03b34a8736c7b58f0b697e559dab3d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NoOpsRequest: TooManyMethods \u2014 72 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/NoOpsRequest.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5c4ce60d260889de568d0c6e2f51c09cf3d22ba2e4829ea12ca1289f8d7777"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AtmosphereResponseImpl: TooManyMethods \u2014 71 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResponseImpl.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"84866b2e74547f1114df8d83f1d040c7d488e4f8011a8fef32dd01c8efec55d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cpr/AtmosphereRequestImpl.java: FileTooLong \u2014 1106 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereRequestImpl (78-1751). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b02c4429ff17b8df31968f87fdab4c9c014ef2a0b8eb71b0eb7a3777d947d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cpr/AtmosphereFramework.java: FileTooLong \u2014 946 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AtmosphereFramework (104-2135). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60a13b1b0539cf2e3635685d53463d30c17b09fd80155c4063d6bf7b0ac4c59"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpProtocolHandler: TooManyMethods \u2014 53 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"075093bf692bd72439dcb3d261c9dd41b1e045cbb9ca0bad00c68ae127f9d831"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: llm/OpenAiCompatibleClient.java: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: OpenAiCompatibleClient (64-1597). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec5c87f759e7bcd9ebdaf8420a526f69be94a21a581b772b1e8f0079eb4e133"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: processor/CoordinatorProcessor.java: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: CoordinatorProcessor (121-1487). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b23cfadb203905c1b23522b7c53902454f01f18e4ef3643b2f086f6b44537aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: boot/AtmosphereAiAutoConfiguration.java: FileTooLong \u2014 833 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereAiAutoConfiguration (57-1522). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4691aec2dc3c57f72c4d944f92f0b1e97afb51894f28df3dfab97c589a41c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiEndpointHandler: TooManyMethods \u2014 48 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a949a0b01ec2c285fa76dee67f6bb2c6e0317806ddee47b1e29033bcf3e4df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: boot/AtmosphereAiAutoConfiguration.java: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AtmosphereAiAutoConfiguration (69-1323). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9709e889ebc6037228ace240381ec3cf82ede268e8a3d9c8ca71dd09d153e4f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: processor/AgentProcessor.java: FileTooLong \u2014 767 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AgentProcessor (76-1418). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc61950cb0f7be3a8581f9be6cc6e2ac23046043ba38f612f468a7fff1bcf011"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiStreamingSession: TooManyMethods \u2014 46 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a720e44aea67cc144a764da53785f5bd850338c50e4ff87aa57cf71c45e798"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdminResource: TooManyMethods \u2014 46 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5645e34576cb9c7188fcfc7a6d0c21ee6f5c91f64788fd426f4a09e70b637529"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/McpProtocolHandler.java: FileTooLong \u2014 752 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: McpProtocolHandler (48-1290). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e772134dbcf873fe2f267a8b7457defdb3fcc3447a8249941aaf36afd799269"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultWebSocketProcessor: TooManyMethods \u2014 43 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9147f4d7275dbb911903b8e8fd8b146fbc56c63e7ec45dfc9d6600bc8965a30a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenAiCompatibleClient: TooManyMethods \u2014 42 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be6c39cb6bfbd1c8b86b1280ed8a8a2eedbdc0043488137d3181a02c65a424f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: TooManyMethods \u2014 41 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereRequestImpl.java"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8ed6f211036c70558f416af66d0fac140d1b16295be9b9cbecd4e583ff84fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: boot/AtmosphereProperties.java: FileTooLong \u2014 664 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AtmosphereProperties (33-1610). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96c736b450a4422295de04deeb455e0b807f008ffb0fb2927364922265b85e5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BroadcasterConfig: TooManyMethods \u2014 39 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a1c2ce508aa0bf0cc081579d1c2c4d5c73f0c770891f270f376a5230df429f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BroadcasterSetup: TooManyMethods \u2014 39 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterSetup.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a67ff74b3d5ca447a9ec875ba12404e4b43a1aa9434383b4a4533f972688218"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cpr/AtmosphereResourceImpl.java: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AtmosphereResourceImpl (52-1100). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereResourceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5a43847fbc5948fd3467bed5072e0960b7ef0f7e5464a60b10c998af5bd64e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentProcessor: TooManyMethods \u2014 38 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4139ad84b1b702c64cafb5c684a70eb0a188c907b8c70e7de1e35c8708cbc314"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: websocket/DefaultWebSocketProcessor.java: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6389ab145d9d8e7a8cbdb8adbd2dec2743a1011f2ebab615397f41e95bc471ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: processor/AiEndpointHandler.java: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AiEndpointHandler (64-1232). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5df22f528c85af9762861d015bfd67d251814358604b4bbd700f2663700145a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: A2aProtocolHandler: TooManyMethods \u2014 37 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20eaa138e990c2e4e9fbc6982bc446013fe0b70aa53fff6d07395d54f5fa8da"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoordinatorProcessor: TooManyMethods \u2014 36 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c966adbe9226bf30d339e3efe3f92e7e9bb5198346222b74ab8cc67659b4326"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UUIDBroadcasterCache: TooManyMethods \u2014 35 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cache/UUIDBroadcasterCache.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"363d6a07e8ad7e8e64972944c4977b3a5007e425893b4763594e79fb0f0aec57"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AiProperties: TooManyMethods \u2014 35 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e399fc29393d422d79b12122fc5c9488437d5519017bab7363a6376fff0a74"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResponseWriter: TooManyMethods \u2014 34 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"859cd489dfcbe43516f7425aa76c9ed9e7d02ea295e43f6d30affa25de0d6b11"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ai/AiStreamingSession.java: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: AiStreamingSession (55-1190). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8043b8996f66498477b965d678924f483e70202485e8bd4bbd1ef9adc3ee83"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TapeRecordingSession: TooManyMethods \u2014 33 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tape/TapeRecordingSession.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3f8db235eb3d59ef960fa11ade6b32f7475ed66cefc95d625a215900fba403"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IntrospectionUtils: TooManyMethods \u2014 33 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6de4ed9f03509757645bd2298ea9923472bcaada113bcd41220db3063786d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: boot/AtmosphereProperties.java: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AtmosphereProperties (33-1298). 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 \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"735a7be8533d398c6ec77d32715110f9f9b03beb5e1e6524e43967df2a5e523f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebSocket: TooManyMethods \u2014 32 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7199df4fd9937dafa5a2dab4052ff286e5e5b0efb95658a3e09fbe3ad56f15c6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpRegistry: TooManyMethods \u2014 32 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/registry/McpRegistry.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b6b41b1d9dab71691b3ebf03ddca500a760f694ec1e65ab700d04608f62aff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AtmosphereAdminEndpoint: TooManyMethods \u2014 32 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8a1ab6441aec0677414ecb3c48e99d4d5a95fdc71ec49adc146513476cc165"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractAgentRuntime: TooManyMethods \u2014 31 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e13552b08a14f6125a016f1fcefc4693e04c231f0aa4700ecfbd03c46abd99"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AtmosphereProperties: TooManyMethods \u2014 31 methods. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereProperties.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"672c122f7c716b8ca1435afe0a534eae3e6209a68399cb9ff3f971f5b8d41324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:402-472 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:580-646 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:402\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a6f892f7348c4328e7ca597755e7ab767e1f8a1ec394cdeded69207f10159a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/StartupVerifierConfig.java:152-168 | samples/spring-boot-guarded-email-agent/src/main/java/org/atmosphere/samples/springboot/guardedemail/GuardedEmailAgentApplication.java:200-216 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/StartupVerifierConfig.java:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/StartupVerifierConfig.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3743c6692db54d5267ffe7c473b8eebefc58b57072796c2197dbe2f493c98a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:379-395 | modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:210-226 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:379\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0758918b74b8b6cf5b7fdf8eefd4bf1ca6541d31d2658321b99e9e4d2d6d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1354-1370 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1314-1331 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1354\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"76544994514384998ae404f97e69c39c64c952077e80cd9e2e21daf7086b1ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:156-172 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:180-195 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a477d70d31cbaa96e48f7258790841419ad193055ee5d687c190600a0d0599e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/DemoResponseProducer.java:50-64 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/DemoResponseProducer.java:50-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/DemoResponseProducer.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca46fafc299a9756ac0315d46ec0646934182f3b351ddeb66cfbbf5978bdedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:224-238 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:240-254 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:224\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb2f7aee706bf7f1bd7936a706b583588d2161c43951ced355362c1806d0959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:330-343 | modules/cpr/src/main/java/org/atmosphere/websocket/DefaultWebSocketProcessor.java:272-285 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java:330\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/AsynchronousProcessor.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0317cacbbf662db67f5ccb3a23ebcce220b9b2dbadd11950ca2cfb068df8c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:89-102 | modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:134-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/ExecutorsFactory.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f064b98d65941ee1bed433c4d953a31da56a7058a4e9f627fbdff5ce7f0638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:179-192 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:213-226 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccb681a3b6c9d1600dc556ecc8f8dec7b10bc84bff9b2e6d30097c74f8ce46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:119-135 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/MultiModalAgent.java:91-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/MultiModalAgent.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ff07ca856d965451103a99705dd0c052618048c2ed148e4c853f6569923f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:166-179 | modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:110-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15e37ff90fb98fafc3e0a428c35f2a0a35a79563a49076b08159d29fc4ffe7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:139-151 | modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisClusterBroadcastFilter.java:119-131 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f109d580adda7a3c9e50831959b85fdd0bedc01f9a1bdb8f348519f5d3c427f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:70-82 | modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:118-130 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0ec8a0b353b1b1852ed90531c00b492cfe93ea7f0d1b18016e5c9690fd21d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:285-297 | modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:314-326 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:285\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"627f66a54afa1670533a3b6876f7950c23ddd5d8d431f9d297353dec4eb631b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:133-145 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:159-172 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc985dc6f6a681fae4ab54a108cc93e8dda38ce9f6f19377f98c8020345e02bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java:91-103 | modules/ai/src/main/java/org/atmosphere/ai/plan/PlanningPreset.java:90-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/fs/FilesystemPreset.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf150cff3fc53317622c7882e2e3c14de41d28ac193d11a2a36ed3a992b04cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:513-525 | modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:242-254 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:513\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6ca0ce7708400c0d719fa9bd0158532d67881ed732aded0346c1204b7daa4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/ConsoleEndpointAlias.java:39-50 | samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/ConsoleEndpointAlias.java:39-50 | samples/spring-boot-channels-chat/src/main/java/org/atmosphere/samples/channels/ConsoleEndpointAlias.java:40-51 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/ConsoleEndpointAlias.java:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-orchestration-demo/src/main/java/org/atmosphere/samples/springboot/orchestration/ConsoleEndpointAlias.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"43202c34cb06e1f20680821a848820c6d83a9f3a43e27c7d17fbbed33375d5a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:205-216 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:243-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ce4fada5de31aa8b9e39398fad6d46c997f2ce8a8a82614c9103f0f185da7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:190-201 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereTapeProducer.java:192-203 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereDurableRunsProducer.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a16c67b1532c2f02d90a26f2a4a505286b09966fb46caf3d3b7dd442e7ffff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:178-189 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:232-243 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc197487a348a63fc9fd389987c55c3659498bf2e29821d8e0d11f0c31e65c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java:61-72 | modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java:64-75 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32ebdc8c3be7a1a05c958f2a229eeca3c2b83004492bb32a214343474fabc78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/WorkspaceMcpToolWiring.java:73-84 | modules/agent/src/main/java/org/atmosphere/agent/processor/WorkspaceMcpToolWiring.java:95-106 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/WorkspaceMcpToolWiring.java:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/WorkspaceMcpToolWiring.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3f109de993a593c4b6400487f25ab7f93e93688609607893342ac2989fc0cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:230-243 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:263-274 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:230\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d68c679d06942882f9d6e886e0795d9b937298357735aa07a8365ccd5fb74d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:68-79 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:65-76 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"78462ce9b2abe6e8e98ee407d6f39bcf3614e32609b3e8b9804139598f96af21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DemoResponseProducer.java:29-39 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/DemoResponseProducer.java:33-43 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/DemoResponseProducer.java:33-43 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DemoResponseProducer.java:29\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DemoResponseProducer.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c93fee56bb3bfc9bbf2396584148a82ec4bb4dea373c549d1604f48a2e3c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:77-87 | modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:94-104 | modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java:111-122 \u2014 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 \u2014 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. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/SimpleBroadcaster.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3dc0fa860f8825dd8f01859833d7c8511bec4ed0d523def3524c61dfa56baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/RetryDemoChat.java:92-102 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/RetryDemoChat.java:75-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/RetryDemoChat.java:92\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/RetryDemoChat.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fbe04ab3f64f8b6fbccf64f5fe8bda77ff3bfe386db2dabe4e6151c1628ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:279-289 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:342-352 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0daa525e932ed8fc2eee9ffac0b3516d2bb3f91d348b92f83e34ff70517171b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:76-86 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:80-90 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"27712641a3045746c86efe7d0200a0f79438cfec8b1c9b4978adc35bf6dccdc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:101-111 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:113-123 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ff9d494264c1821cbabab986b42116cbbd12411cec8303773b8e8128f91e25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:189-199 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1261-1271 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java:189\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminAutoConfiguration.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a88721f3d3c10f585fb113380499ae01c0cef069a6d5127e9d36f979eecdfe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1247-1259 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:239-249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1247\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f9e595ba8ac2942c7d2aa65359154a68f1c2b59de91e81e644d6d35d1bf13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java:95-105 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditPostgresAutoConfiguration.java:81-91 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereGovernanceAuditKafkaAutoConfiguration.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5666359cb9e550960928f1b8b3905c727770aa06eb4a57b0e05842014c501c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:83-93 | modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/AtmosphereSpringAiAlibabaEnvironmentPostProcessor.java:87-97 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/AtmosphereSpringAiEnvironmentPostProcessor.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6375cb9d327d58bf0ff6a6b2697a9850091b63d3838da9f806b7899adb1f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:166-176 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:178-188 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"590e0deb76bc5f3a6400cfd540c5eb795f96ec985b310ff4c75883efc656fd69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:78-88 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1145-1155 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea483fb6344ec57b04ab7142ae33eac13c18219554d4308e3113a67dceccdb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:113-123 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:134-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:113\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6288e1d0fee885e2fdaaba26eda1255f44153df04f8e753f6ea615ccadd7a029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:452-462 | modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:486-496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java:452\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/BroadcasterConfig.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3a21e7d55e3048230a25d77ff4c165354a796db6382104569b642f906b0b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:417-427 | modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:435-445 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java:417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/ResponseWriter.java"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5057314d9bd167e273461833c95bb1ba4488522a5eef678f1879fd7bab87d1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:130-140 | modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:162-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/ExcludeSessionBroadcaster.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2861e79dbb655497232f67970f57f06607ca35f9f62066e0ef07601d05aaa719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:233-243 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:160-171 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4f8a3c0bea7e6bc468f13e96f797ec714a4afafff6c74d1e52b76a8f11cd08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:363-374 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:261-271 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:363\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaaf76b1679eb276986d73f24d4a7cb9dda69e4531c0da38fdf7ef1a715cff7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:110-120 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicAgentRuntime.java:121-138 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereAgentRuntime.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"033464b86f76a9abfed736f807bd610e6633d20e271ffd82aa6464b78edc311d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:565-575 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:660-670 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:565\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c7ee763bd0d9095cb0a2151088550ab06c7d695845b868b2f13b3bbca13029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:480-490 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:608-624 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"4303d4b700da9ccbb0d0320a8963f993afc446f13a066dfc1c2b03880203a15b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:135-145 | modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:174-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f562bccacba1a0cdba770f608edb4a7bb74da4004557f1847b37aa7fc92d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:219-229 | modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:166-176 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:219\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b140a0f57a6a743bada6394f72f0cdae5d46db86ae2a3f0d1c582f4e814136d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:754-764 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1296-1306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:754\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b78ae5fbc3636e1d12fbd9571f029297bf302ff8cbc74c78784ccb0b73a8a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeResolver.java:122-132 | modules/ai/src/main/java/org/atmosphere/ai/EmbeddingRuntimeResolver.java:89-99 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeResolver.java:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AgentRuntimeResolver.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e03e0eae66999ba55777095aff52a0e6edd3130da545bca8624bd9e79f564fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:149-159 | modules/ai/src/main/java/org/atmosphere/ai/TracingCapturingSession.java:136-146 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8792d844cabf85604da01a0a5941b3fb5831f1ef5afcc015a5fe375deb3cd75e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:320-330 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:382-392 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:320\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d7003951524b211a1d2afcc1b423bc75d0c00881084b6c07e4409813751a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): samples/spring-boot-rag-chat/src/main/java/org/atmosphere/samples/springboot/ragchat/VectorStoreConfig.java:118-127 | modules/rag/src/main/java/org/atmosphere/ai/rag/InMemoryContextProvider.java:189-198 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1136-1145 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-rag-chat/src/main/java/org/atmosphere/samples/springboot/ragchat/VectorStoreConfig.java:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-rag-chat/src/main/java/org/atmosphere/samples/springboot/ragchat/VectorStoreConfig.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e2733e76da2004a3680133ebac2bc42eb6d622597d139db7ccc7b08b758282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:161-170 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:215-224 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:186-195 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"087411e8837a549d373f11f0f106e031213d0e1cdc3411c6b20ed9f34eae88af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:62-71 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:65-74 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:56-65 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:62\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e923d0b35e1ff211556cd244ce2763bb704f343b3cb830ba8c00dfeb98b6b0de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:545-554 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:565-574 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:579-588 \u2014 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 \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b2ccc1f5f424b25bcf3d26517c12701768d7518ad0b42dc283f59fe5adda74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): samples/spring-boot-ai-tools/src/main/java/org/atmosphere/samples/springboot/aitools/AssistantTools.java:101-110 | samples/spring-boot-agui-chat/src/main/java/org/atmosphere/samples/springboot/agui/AssistantAgent.java:96-105 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-ai-tools/src/main/java/org/atmosphere/samples/springboot/aitools/AssistantTools.java:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-ai-tools/src/main/java/org/atmosphere/samples/springboot/aitools/AssistantTools.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1d30970a45dff43c1f0072c4b74771a726144d86f8e0292121efd98bd42de9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:72-81 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:143-152 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e128d6ea02c0712318c3b3d4ca46d7476eead1abc367ba1604d9155e32540e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:198-207 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:294-305 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3f04bc723df0616bead17fb31727e7dd719b5fe04bb73e1ddb9c15158228fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:304-313 | modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelAgentRuntime.java:187-198 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3faedb0a4f2e4a030339e0b15c3f15b3ebf44b397a73a3f8cdfea5c98e214c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:101-110 | modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisClusterBroadcastFilter.java:85-94 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/redis/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccb73e3cb62d430af449ed1c824c074bf152760e29dcbdcf127d61569c82624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:425-434 | modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java:436-447 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-extension/deployment/src/main/java/org/atmosphere/quarkus/deployment/AtmosphereProcessor.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d767b75781c979996dd898e3cc2e2240f1052c5449b00fd0bd74b9547ba52e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:78-87 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:97-106 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a658aef6bf69ab08bc44e2f93c99e8b2420a131cf9cccbaafb48b2e045ffc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:279-288 | modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:319-329 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java:279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/ClasspathScanner.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1ccbf76de0ac6a2d76b350025f5d3100bdd0ed643f657290c444f6d580f05e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1443-1452 | modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java:1493-1502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae206f32e3b36364f5a8802692c969ba9d685601d57176ddac400420425d85c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:145-155 | modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:167-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6f1c48d789b6cb87f56cc865aeb10d2e2c3b7446a68824af38afb9db2ca4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): 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 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/protocol/StreamingHttpProtocol.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f3d5edd28a28fd6e4d5fe31aeef245a3b103aa022f996f66e870733b1ecb73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:250-260 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:207-216 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:250\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8cdd19c1256736d767bac85397ec1ccc4a1c97215572bb97a7fe374d4def58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java:85-94 | modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/SpawnSubagentTool.java:208-217 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/GovernanceFleetInterceptor.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"747f843befafdd5eb54e60652b61c2f49424df5de897895635ffdf81058fc295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:119-129 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java:165-174 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a804356ff210f658240c6b5cebb1fb63894a6764892292bf7896739d323c74ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:103-112 | modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:106-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ef4e3e5f5dec3998aef13f8349b7469b00dbe53990c2b614c2651b7bf33630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:83-92 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:73-82 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b6dadb03f48ddddb98997f42d5295378afd90a8695ef06308d04e5abecb1c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:75-84 | modules/ai/src/main/java/org/atmosphere/ai/governance/MessageLengthPolicy.java:56-65 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:75\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa0bef38624c30a6bd661dddf780a9498df26b10d6f87b9a8d9c7cee8ccb316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:137-146 | modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:519-530 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e210d4983dd2d0bac222bec532b6b55c810e1eb363cbceaee78e81a6fe501f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:773-782 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:959-968 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:773\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89579ae5ab7b8519b9a3df387079e94e1c85ff955afb18d9f1fb5009fec58a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:598-607 | modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:825-834 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:598\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa0a0e6e0918de1f86c75c643cc09ae5ecf7a040833b17f4bd9e2037b54aa84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:138-147 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:169-178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aHandler.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"70055d9078e614869287ac633ca22ebf86623dd0d316c024d00c5a20432ad066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/FaqKnowledgeBase.java:60-68 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicy.java:80-88 | modules/ai/src/main/java/org/atmosphere/ai/governance/AuthorizationPolicy.java:70-78 | modules/ai/src/main/java/org/atmosphere/ai/governance/ConcurrencyLimitPolicy.java:72-80 | modules/ai/src/main/java/org/atmosphere/ai/governance/MessageLengthPolicy.java:53-61 | modules/ai/src/main/java/org/atmosphere/ai/governance/MetadataPresencePolicy.java:54-62 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:99-107 | modules/ai/src/main/java/org/atmosphere/ai/governance/RateLimitPolicy.java:72-80 | modules/ai/src/main/java/org/atmosphere/ai/governance/SwappablePolicy.java:59-67 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:62-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/FaqKnowledgeBase.java:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-ms-governance-chat/src/main/java/org/atmosphere/samples/springboot/msgovernance/FaqKnowledgeBase.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e777e8897ff5a11fb7a6671bb42501d502e46ca522ddb76f83f198c0e4bdd4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:81-89 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteConversationPersistence.java:98-106 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteLongTermMemory.java:117-125 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:72-80 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:114-122 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:123-131 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:132-140 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4b6f482431bff53e4e6792e0c5b8039cd805350d0d139eb0286513804e39bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:68-77 | modules/ai/src/main/java/org/atmosphere/ai/code/EvalTool.java:62-70 | modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:256-264 | modules/ai/src/main/java/org/atmosphere/ai/plan/PlanningTools.java:88-96 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/code/CodeExecTool.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea5fcae0860e817db83be15a5ce44e479e2a5054a2bb1580fbbb03f64fd7430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): 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 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"91913fffd36b8379756dbb9254aab1da82d52e7d67ad8953918a5995a5a1d2c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): 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 \u2014 there are 3 copies across 2 file(s) \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/durable-sessions-redis/src/main/java/org/atmosphere/session/redis/RedisConversationPersistence.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35557ccbe05549e399ef3741a706e74698483d8e35cac038df01a8016a64ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:366-374 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:589-597 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:629-637 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"823f687abbdb5df28fcdfbfab02d9eeddbaa2965d3b44daca5c29ad7805df0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:91-99 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:69-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:91\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce946278c6703d23d319f19b0f746aaccf93afa650ca096581e440680179a0d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:137-145 | samples/quarkus-ai-chat/src/main/java/org/atmosphere/samples/quarkus/aichat/PromptCacheDemoChat.java:108-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java:137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/PromptCacheDemoChat.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6665c360b62e8208e68909238264f4e2d97e64fe9f6d6e2f0c7267435db9fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:138-146 | modules/grpc/src/main/java/org/atmosphere/grpc/AtmosphereGrpcService.java:83-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java:138\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/grpc-chat/src/main/java/org/atmosphere/samples/grpc/ConnectProtocolServlet.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8f1f0d0eaa0738b316c0a789b0c114afd7282a014671726f1502540b47a662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:143-151 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:170-178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java:143\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"11245f0917b613c9744fec43145276e8e63a445f5bd8f8ca504296193fbda9f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:161-169 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:199-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:161\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0aaba282d9c21762ce336c1787e9814147398b02e514ff23b720bb922c8133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:82-90 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:103-111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7794e6104f7e6b54c315ac6fc25cfde4a34ff8433504214c2dbb54335bb581d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:97-105 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:96-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"732841577be5b96f4f3453ef53577e41af955cb2a1cf09a95f97a44fac9c9305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:245-254 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:324-332 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20287ba110bb6de22f6952df48dcc48898aa9be56d31b7f930c5292b4e362be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:62-70 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1128-1137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f83ecc8396231a7ad96c23c8e0e4580aae65f8655807a7d2169663c39f80b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:99-107 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1229-1238 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7996e6b728c2368da966fac5f9dda2a74cb99e6b2a6c43e251bddf83ebf53c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:956-964 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1074-1082 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:956\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"98194a79daec1e55afe7e53b01c3cd132ed04fa4d38506f6d2c56689142c5d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:660-668 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:689-697 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:660\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"25feef37aeb51e02fe216c4f20d3259c73b74e433c38e9e1c98a7e3550e3dc6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:355-363 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:389-397 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:355\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bf6a300fab8c1555cdb7b965552f7f66b5214d0065ec292b91cdf1e0754bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:74-82 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:102-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b31274e88273d9cd25514655235e5c6e336e71eabad55a2d8d14ff67726ab5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:84-92 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:112-120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b44f0b31bb9486af7f26e5ca37ca9b0fe841957227cb8a13796e7b766033237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:166-174 | modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:229-237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/durable-sessions-sqlite/src/main/java/org/atmosphere/session/sqlite/SqliteSessionStore.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"3518244207ed04d8a8de31a066bf5517e32fd37b3cf004e87285115c353d9d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:110-120 | modules/cpr/src/main/java/org/atmosphere/interceptor/TrackMessageSizeB64Interceptor.java:77-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java:110\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/client/TrackMessageSizeInterceptor.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"43411796fb0675e3bc76c6570638968cf77e086e2bfbc702f4481b8176678953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:86-94 | modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:96-104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/cpr/DefaultAsyncSupportResolver.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"533ce1d3ba3c74b4d5bf97a54f7f6e3f2de171eb8fa33fd8a7046b75b92ae336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:341-349 | modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:369-377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java:341\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/inject/InjectableObjectFactory.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"34494b81109f0462a9b27176c8110429eaac87991a25da4649b6348b28d52a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): 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 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/protocol/SimpleHttpProtocol.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acb3a10b045c7fbac4d0f170cf22c6357a0043ca20d8cdbfc1de228b6439329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:196-205 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:156-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4457b74533f3dc6ea25ffa52ac41a91b1817e335a0237c0a059c735079b2acb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:291-300 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:230-238 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:291\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1e0a64ee2d3a10685b72a0e4ef28a7f5c774d9ea5d75232fe5d96cd67c4022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/AgentStateIntegrity.java:79-87 | modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/Ed25519CommitmentSigner.java:77-85 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/commitment/AgentStateIntegrity.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e513e7b374e703e22c7089ae951b5472908da51b503e9113189600321f3fe56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:346-354 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:233-244 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e09b3a49081ef99a6e21edd73e56e197ed75757fd66460d6d70e453960073c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1421-1429 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:786-797 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1421\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a11afd3c7345f5038f29ee90b249f21f7b64fcbde50ff928c51ca931c1bbc89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:78-86 | modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:82-90 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa26e4fcfab4299720a99228d087fd5363eef24e938e2a51151fe7af4cf2bd1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:252-260 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:236-244 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4182f3b06c5a4140668ddd849198b1b7451f907630a907ad8c157ee1f7fe9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:431-439 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:410-418 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:431\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27c9048afa34f73aa2262f209550270b6006d422be3cf3c4ca65228fb7d90bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:103-111 | modules/ai/src/main/java/org/atmosphere/ai/resume/InMemoryEffectJournal.java:84-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d7ddc581054665223ac32f4dd6a10fe42284ca09f8734247b3d463e63f2b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:82-90 | modules/channels/src/main/java/org/atmosphere/channels/whatsapp/WhatsAppChannel.java:85-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/channels/src/main/java/org/atmosphere/channels/messenger/MessengerChannel.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c51c5f0cbee0ae0d80f5abe4def6afaec627d1e3e308b166931dffa9bc7bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:126-134 | modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:105-114 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da4a14e74f2daabf6e91586e938423fc0656de1e3df51c7957d8876b9f3537c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java:102-111 | modules/ai/src/main/java/org/atmosphere/ai/governance/owasp/OwaspAgenticMatrix.java:90-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java:102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a929ea66158add5f51345d6a575faca02c10c554bdd55ec44683c0aa9b8772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/memory/MemorySafetyConfig.java:177-185 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/RagSafetyConfig.java:171-179 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/memory/MemorySafetyConfig.java:177\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/memory/MemorySafetyConfig.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71f0058ef2d7bee108c5f834d8590412add8822b6362b1522bfee1cfe4aefa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:94-103 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java:104-112 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d2de5f69c408a3bc2682365540bd933da7e701e5646eb745701c59861ad10e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:132-141 | modules/ai/src/main/java/org/atmosphere/ai/guardrails/LlmModerationDetector.java:136-144 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1246945418474a9e84c7e453e96b389b277fe281a9c9befd052699ce055287ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/GuardrailAsPolicy.java:70-78 | modules/ai/src/main/java/org/atmosphere/ai/governance/KillSwitchPolicy.java:71-79 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/GuardrailAsPolicy.java:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/GuardrailAsPolicy.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2f181d94f3ecbacf8560e89bf389c1dfc127e88985436c716eb44440e14cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:82-95 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:130-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bddbd249bbab71ab8586e0b584ba7cced43ccb0022cd62a9a461081dcd16d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:835-844 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1378-1386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:835\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb65ebc73fe3df6d48fc9ee9b5c2b5c7255b50c6fba39065b5ee74d467b0bdd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:119-127 | modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:86-94 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"027e340e66ed629366600a4a638617d3a20210ec62571c100aec68aa60f9a2c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:68-76 | modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:88-96 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/ToolBridgeUtils.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c291558ee8ba5734f92da3fbb7e33ae88dfce950438af17149eba983454d2d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:482-490 | modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:604-612 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:482\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"22719bc3b1850a3e384407abd2f40d1f8d48fcda42b2e009410e39ab26776c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:268-276 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:288-296 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"089455dc6f024ffbda4f3e357bc7ff3870178b8a6c07e74ef9801af0f5f98ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:153-161 | modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java:207-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/adk/src/main/java/org/atmosphere/ai/adk/AdkAgentRuntime.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd647498958af42f4f809cd57cb74dd11ffca186ec794b8c08aab9a19eece2b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:114-121 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:77-84 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheTestHandler.java:63-70 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ClassroomTestHandler.java:69-76 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:148-155 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:131-138 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ErrorRecoveryTestHandler.java:57-64 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FanOutTestHandler.java:73-80 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FilterTestHandler.java:64-71 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RoutingTestHandler.java:76-83 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetTestHandler.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e317ee6f0e39ad1febad2c76289261f0c70e60cfc877985023847d05aa25314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaRunnableConfig.java:103-110 | modules/semantic-kernel/src/main/java/org/atmosphere/ai/sk/SemanticKernelInvocation.java:103-110 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAiServices.java:170-177 | modules/ai/src/main/java/org/atmosphere/ai/llm/ToolLoopPolicies.java:118-125 | modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgent.java:96-103 | modules/adk/src/main/java/org/atmosphere/ai/adk/AdkRootAgent.java:152-159 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai-alibaba/src/main/java/org/atmosphere/ai/spring/alibaba/SpringAiAlibabaRunnableConfig.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c4608308e2069bffff2da7ab3202fba101512258c0f75244a8c2fd4abbb62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:122-129 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:136-143 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:151-158 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:170-177 \u2014 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 \u2014 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 \u0060modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"20076e1239efd1a6d232b0981da97548e85ce142541d9dcf8e14c4b9e5b0fe56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DentistAgent.java:62-69 | samples/spring-boot-ai-chat/src/main/java/org/atmosphere/samples/springboot/aichat/AiChat.java:78-86 | samples/spring-boot-agui-chat/src/main/java/org/atmosphere/samples/springboot/agui/AssistantAgent.java:74-82 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-dentist-agent/src/main/java/org/atmosphere/samples/springboot/dentist/DentistAgent.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f16a3c15acb67f3793165a950f7ca204f0980148428c0abcf96c81470bfc1e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/SandboxSnapshot.java:33-40 | modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:72-79 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:55-62 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/SandboxSnapshot.java:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/SandboxSnapshot.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"258551507dd7ae9adcea585f93f48d75fc653547993a778f8e65d3dfcf15c19a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java:44-51 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:492-499 | modules/ai/src/main/java/org/atmosphere/ai/PersistentConversationMemory.java:272-279 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/HtmlEncoder.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5af9108fd142808231de19d21481b59db8e5cd8be1cd21516d8c45a591e508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/InMemoryCheckpointStore.java:106-113 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:250-257 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:234-241 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/InMemoryCheckpointStore.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"17827aa09c6a670e043694700db71d5617cfebbf157fa9b9a045cac532f09f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:179-186 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:166-173 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:179-186 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d1b69de546b5d9331d51e12d92856d3cdc14a807d8e21f0d0d768f3d310a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:63-70 | modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:594-601 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiEndpointRegistrar.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d0e9c5f2270b3895d899f6652ef8d8c22e5e6bdb84581cb7ab489929be868d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java:236-243 | modules/ai/src/main/java/org/atmosphere/ai/fs/WorkspaceAgentFileSystem.java:131-139 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAgentWorkspaceEndpoint.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0950deaf7d63fef7ee333f636edbb06d922f64618d32873f02b2a40c02b09ff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/DockerSandboxProvider.java:167-174 | modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/InProcessSandboxProvider.java:174-181 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/DockerSandboxProvider.java:167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/sandbox/src/main/java/org/atmosphere/ai/sandbox/DockerSandboxProvider.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cac19fbdb5614670f7033ef1d5a760045eedc76ddc621f9ed8ed83def80cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java:179-186 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:264-271 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminReadAuthFilter.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"070352837949b1c640ed9d6d262d58f8b7618f7afb1e842cf093ddfb37d64641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:662-669 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:693-700 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:662\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"4838818c13f45e0703d209103b442a988e1be2f0573e64134f423b2c0901541a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:147-154 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:463-470 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:147\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"728466314d83454094b933582e1bc29ad2306c6cebc5efcdb40e50feeaeb5c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:282-289 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:512-519 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:282\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fff75282e93c2c4ced9d214a3c5d035d6bfc64e24abf17616552216005a9ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:236-243 | modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:107-114 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:236\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b231f17aaa4d3a09d8da34a4f4401f8ab91448a1948f371fcd4aae2162c55d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:405-412 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:935-942 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:405\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e5f99c25f1c284ec815e95f9f7bc7e44fcb4dd5cdccb0d4a754a823e6baf20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:422-429 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1070-1077 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"31230d84630f09692965e29f6e6a31d5900aa0592e7252568f07bfae381daa5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:245-252 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:266-273 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"4949023659cb9f26e3ac5119dafe4e6aaacd95c889fa9cf41282f52422f00896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:320-327 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:349-356 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:320\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49115ab9c1326a3290cdcaf6b1373d6f75e6210144d03a995fc4921f297aa4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:148-158 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:310-317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5497d62121a180abc121930994ed23608f0d6ed4c94e811a738f83ab28fc32fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:200-209 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:310-317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:200\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a4fae8287081a41925244788de51a41174341c04f5960bb9926ead025c2cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:78-90 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlCrossSessionTestHandler.java:65-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa8484346e9cbc86821d8164c1628ab54291ce1c0c14005049692735bb8e785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:96-103 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:167-174 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheCoalescingTestHandler.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c202b76f3035110d1485da7c09f222551b1daaada2e41bc5a6aedc6f0f910ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:81-88 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlApprovalTestHandler.java:104-112 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ca98eaa01ac1468a22205a8661d25d4ab49aa54cfa303d97cf35df885d968f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:610-617 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:631-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:610\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fb7f271b30730c2ebbceeab88093d331f886066a1b9245d93d518293deb85f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java:311-321 | modules/cpr/src/main/java/org/atmosphere/webtransport/WebTransportSession.java:248-255 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/websocket/WebSocket.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe5f36493883a91a1774ebbb31f353f43780b4c302a20a0cfb0e27681bb965f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1309-1316 | modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1377-1384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1309\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ca3c6262e7b989c42ba5a8eed295db1ec0f20fb77dfdd7d43b9ee2ae23a2fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1317-1324 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1242-1249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"66288006ad2f1a1330f1c6c1d8be0c19fdf58c7347a32f5c16e11ce962511c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1435-1444 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:802-809 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1435\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2f77883c0dddc0cd1a970beabd3af520de38257e5e92629686024066e1c9c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:125-132 | modules/agent/src/main/java/org/atmosphere/agent/processor/McpAgentRegistration.java:135-142 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/McpCoordinatorRegistration.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3804a974532eba9f8f5bf3f7ad31c482d8dda64bbb591dbcd2d60e83c9afe1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:235-242 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java:71-80 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:235\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"db07df250cabd8c61c59b44588ce38a8dde090a8a95fc021b0a81d84d37691ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:273-280 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:256-263 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:273\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20362509de0b889df67f13905b5cdcb43246e34efa736a1484197e47f93669e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:299-306 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:285-292 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:299\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67e8013163a4ebd21df9636a365788f1ffd77b27da21052b2d9749a5dafef3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:336-343 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:318-325 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:336\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"877fba728a6a2c6b954d40358427ae76a218d2f5dbf52622368f0e6ff865a6df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:382-389 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:362-369 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e0fb5e0c71214addde854998d8c07568289f3fd333a3754677e13d62bbf950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:387-394 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:520-527 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java:387\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteEffectJournal.java"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f269a5d68ae9e959126a8d7b296574cd6cb92e52fdcc42493bca0358b6b8402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java:115-122 | modules/channels/src/main/java/org/atmosphere/channels/slack/SlackChannel.java:228-235 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/channels/src/main/java/org/atmosphere/channels/discord/DiscordChannel.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2805b9cf9927c811cc78283fab18fab324e23295a0ac76fc9fa6f8910f80edd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/fs/CompositeAgentFileSystem.java:356-363 | modules/ai/src/main/java/org/atmosphere/ai/fs/WorkspaceAgentFileSystem.java:570-577 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/fs/CompositeAgentFileSystem.java:356\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/fs/CompositeAgentFileSystem.java"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"f389f3836b45b28b77f65c8e4b320a0285a5fc48cc0932ab729fd118394b6335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java:76-83 | modules/ai/src/main/java/org/atmosphere/ai/governance/owasp/OwaspAgenticMatrix.java:60-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/compliance/ComplianceMatrix.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd0b0864db8348c1d4a8fa17eee7b1453a48580ba6b76e08f56cd4ceea42948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java:149-156 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/ScopePolicyInstaller.java:141-148 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de4b89813b6f9a2f58e1af38fdafa2dfe0f04417d51dee4cddebbf0d8da0465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:124-131 | modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:504-511 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAdmissionGate.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d11cae37b7a42e8a3b15044e42f31395fe7056911c2b79740a083975999832d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:67-74 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:110-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java:67\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyAsGuardrail.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"673c94ff501368b3a31f8c082705e4f57ccfa1eb9980de69082d3e2f7cdf115e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:690-697 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:699-706 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"526a07cc308500a795fe36e044eab758cffa763b57c82683e9b96b07a9f562d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:861-868 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1407-1414 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6f1d088e426d1f09ea66a5ec47effd6769e779aeeca5540a1646d5550558e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:789-798 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1008-1015 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:789\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45f810e1752a0abb656420705fae108f4739f6b40342fea1ad4f62e995b1360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:71-78 | modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:137-144 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fc56b778c7e24cfd76dc4879a62cb72bc6d3be7ace3f1d80ceed5a40563256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:141-148 | modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:235-242 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"089a48a6bd3237c573630ba5ebcb80adbcc7b148f96669a13c0669e90af58ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:192-199 | modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:290-297 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a211549475304a758f0ef462797ff4a72195f4677994f14e206a67422e1712ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/InMemoryConversationMemory.java:86-93 | modules/ai/src/main/java/org/atmosphere/ai/SlidingWindowCompaction.java:37-44 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/InMemoryConversationMemory.java:86\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/InMemoryConversationMemory.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c773ddbe973c462ba62354327a27d08491a2b9da4f4fa7e990bc0f95109107a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:135-142 | modules/ai/src/main/java/org/atmosphere/ai/TracingCapturingSession.java:121-128 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/MetricsCapturingSession.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"62890e7a0fa670f8d0a6051b7c2d29c1c36e1036c1fcebc4c3dd4de1aa13bb83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:46-53 | modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java:66-73 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f62a788069eac9eb78bab69f3d2a5ead10a09be54469d5d551af4ef686a4103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 20): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:125-131 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:114-120 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:148-154 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:86-92 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheSkipTestHandler.java:173-179 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CancelTestHandler.java:253-259 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:174-180 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:83-89 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EpisodicMemoryTestHandler.java:212-218 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlApprovalTestHandler.java:240-246 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/HitlCrossSessionTestHandler.java:114-120 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IdentityTestHandler.java:62-68 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/JfrObservabilityTestHandler.java:148-154 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:172-178 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:76-82 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:89-95 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:110-116 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:83-89 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolCallDeltaTestHandler.java:74-80 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolPermissionTestHandler.java:145-151 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/real/RealLlmChatTestHandler.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8752c4ff759b5996b2642163bc988c2fd42415e49259373acd791517ccf676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:173-179 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:192-198 | modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java:211-217 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/PolicyRegistry.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f85727b7e288ab281146519d55433090a2ffcdb1c0beae4b4224097e1eb6518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java:251-257 | samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java:281-288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/CeoCoordinator.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9c2b5877ce662e41dfa41d391f2018b2261b76c9f2743cd1e6368cfd2e7ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/GovernanceConfig.java:147-153 | samples/spring-boot-mcp-server/src/main/java/org/atmosphere/samples/mcp/McpGovernanceConfig.java:110-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"samples/spring-boot-multi-agent-startup-team/src/main/java/org/atmosphere/samples/springboot/a2astartup/GovernanceConfig.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb2246e7205f45c4cc89579c5902b2dbfd2612ac1f8cb8d094fadb582d31e03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): 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 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java:190\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/verifier/src/main/java/org/atmosphere/verifier/policy/Condition.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ea806a209e3a56abb93b0c2e5d062ae9c5ef6f7eb0736e79dac0006a2b4d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:250-256 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:441-453 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java:250\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAdminEndpoint.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"986b96e57fe907b28b7ae9543aad9be1b74628bfa465318449f48856fe342e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:731-737 | modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:860-866 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:731\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"f494b6e48a19012a436c1d6adb4b28ad216040518464b9853d54f0984c66683e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:395-401 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:707-713 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java:395\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/webtransport/ReactorNettyTransportServer.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a03b2fa959934c0ca406f703c16e59df2276e828099ba09b17afe78f6a593d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionStreamHandler.java:118-124 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionsEndpoint.java:237-243 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionStreamHandler.java:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/InteractionStreamHandler.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3c92ed2fda2f151d57e1c2fa3b52a3124fb0c44b94233692d09f0ddbe4bed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:126-132 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:126-132 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b278ac556486de7701c37338a377689f8343385ab274ba80e6d07f755b9b8823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:140-146 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:155-161 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eca4f15c1124e08411585f23a68cd53075b3a473102b4138208875d3fe63705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:336-342 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:489-495 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:336\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c220595371bee38d11491bdf9396d034d1a463022eda1a8423d3eccd975d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:110-116 | modules/agui/src/main/java/org/atmosphere/agui/runtime/AgUiHandler.java:108-114 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:110\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2387f8ccfe69c1c3b64cf0c67d3b494acb9bff9c2a64f6230434e6642cdd5b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:216-222 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:424-430 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java:216\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/AbstractProtocolHandler.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3791a2a905e4eaddd23c3a836c94810193a854dd34ce0c295d13762aa435e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:82-88 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpTaskManager.java:64-72 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java:82\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpHandler.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8896f2fc0016a61be733e6143b58b7e2eb2f163e890db7a3b1ab792777d61e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:438-444 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:532-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:438\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c61754f60bf8436752b5934a0871588d1f09f34b20e7d1c562a60d6f86a200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:64-70 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:49-55 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"872d425aef3a368140eae80d8a55e4c718c71cd2f99373b4bb2e2ffdeb264b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:76-82 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:63-69 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7003e8420392eecb0f7589542724c00c9c3f7a9bf5450cd1280daa01d57477ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:60-66 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:60-67 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d457e87c67ed6f9a080d2271dbc83a5320211010e35ed39c1b436331e4bf22d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:359-365 | modules/ai/src/main/java/org/atmosphere/ai/AbstractAgentRuntime.java:198-204 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java:359\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/crewai/src/main/java/org/atmosphere/ai/crewai/CrewAiAgentRuntime.java"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ef113a0b380627926be28dcf516f8cedc46610f37ec9ffe6ca28181fb2f375"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:238-244 | modules/ai/src/main/java/org/atmosphere/ai/llm/AbstractSseLlmClient.java:247-253 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java:238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/crewai/src/main/java/org/atmosphere/ai/crewai/HttpSseSidecarClient.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"30bc744980b6e6274b8c6d917f6e618e0227f3159fadad981cd58fad2e6baed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:314-320 | modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:347-353 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java:314\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/crewai/src/main/java/org/atmosphere/ai/crewai/ToolCallbackServer.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c0a4ce244fcf79cbc4d9fa231ab49657ecc37a84bb54d3fd585947ab4a1ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:91-97 | modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:150-156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/annotation/ProtocolBridge.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8900afc33bf5ceedc0a8abc44ac2942d72cca77ccf7d87d5e880e193a13e7232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:59-65 | modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:72-78 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java:59\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/AtmosphereConfigReader.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5aeacaf2194e7510a6d9dbc793501570fe765987f315728a347cb4d2f17dbd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1243-1249 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1176-1182 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d47de1a85a598057e43d684f76b47ad653ce58573fd41cb34350fdf5d1e085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:592-598 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1103-1110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:592\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47685b736b40d2fd20210b445c07ecd2fc9fa7b79ba52c6f4d75ab262e3d2bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:227-233 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:214-220 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteCheckpointStore.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ab88c55a0bb48f72f6ee7841b462ac5e14d60e559c677e7deae0fba1fba6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:87-96 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:100-106 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a953f46a8dbcc9c87c6d69dacead31fa62a13d15caf595b4301bf3840ba122"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:214-220 | modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:116-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:214\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1249a89ffd80620fd40c811922df0476cc905ed79fb7f89b70b7f3b8759d1fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/plan/FileSystemAgentPlanStore.java:209-216 | modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:266-272 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/plan/FileSystemAgentPlanStore.java:209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/plan/FileSystemAgentPlanStore.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a238f5fe5ae6022336f3a3ed2cadb51e6d5a4305ef52cbc0f64f3ea4bce25620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java:225-231 | modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:225-231 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b051c9d418de5e0c2b62f314cc096b725ab92c56cf46e369dea8eefb031f3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java:356-362 | modules/ai/src/main/java/org/atmosphere/ai/workspace/OpenClawWorkspaceAdapter.java:160-166 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/state/FileSystemAgentState.java"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"c342e60bff321af9888152d7ec1715069c886ab41df4f3019a23bbdd041be6fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:413-419 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:423-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:413\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ab89ab37571b57a6df52a5e5352fb276be6488eb9dbef0cba6be4a5a82edf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:474-480 | modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java:596-602 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java:474\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"621faae48d4884fa032e1aeea655a8750480c19c081d8484a33132589ee2c5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:97-103 | modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java:105-111 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a5abe54d4da4ec6df82b173754a1a67945dfa09ae9aea92af662f4abd0a8ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:91-99 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:84-90 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/RegoPolicy.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da7ab61b40b77c40ddd6df2a0e8d276e276dd16a7373b378e8edc9f63d916db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:306-312 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:470-476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7b05cd8ec3f818b41a24c6867c2a781aed2c8b11d8d2c86252b89dfb331fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:376-382 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:399-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:376\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc831f1a96cb00796be0f7acd6be139812e3b8e7328287ceeabbf0b35d43809b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:125-131 | modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:137-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/flow/FlowController.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"59dd28b11382d85f32e4340fc2b1930107618496f6023ccb5511ba3f3f4dfbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java:210-216 | modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java:235-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java:210\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/framework/FrameworkController.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f33754df49544699ea2bffae393fa699051fd0661264090ff72b37ec111c94a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:371-377 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:389-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb30b8a41825cc7e799321e7a5ad266537b77b67f4610e38d33f6def6ee4e673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 19): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:42-48 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/BudgetCircuitBreakerTestHandler.java:64-69 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CacheHintTestHandler.java:43-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ClassroomTestHandler.java:50-56 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConfidenceElicitationTestHandler.java:65-70 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ConversationMemoryTestHandler.java:53-59 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:44-50 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EmbeddingTestHandler.java:43-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ErrorRecoveryTestHandler.java:40-46 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/FanOutTestHandler.java:52-58 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/IdentityTestHandler.java:39-45 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/LifecycleListenerTestHandler.java:62-68 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MemoryStrategyTestHandler.java:53-59 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ModelsTestHandler.java:48-54 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/MultiModalTestHandler.java:60-66 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/PassivationTestHandler.java:72-77 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RetryPolicyTestHandler.java:43-49 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/RoutingTestHandler.java:60-66 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/StructuredOutputTestHandler.java:67-72 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiEventTestHandler.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c04719e2308d6b2cc5806dfe60311447b7014c7c385a3a6a7aab167a7100b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:115-120 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:129-134 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:143-149 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:158-164 | modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java:177-182 \u2014 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 \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/AdminMcpBridge.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"237edc752398490d9f9e05c4df778494f17271bda2cf2e1e36f49754a4d3ff15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java:497-502 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:668-673 | modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java:697-702 \u2014 there are 3 copies across 2 file(s) \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c89ddaf0bfa78781d6b409c270ccbb80dab08410dfa603c7ada7795ea39142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java:97-102 | modules/rag/src/main/java/org/atmosphere/ai/rag/pinecone/PineconeContextProvider.java:96-101 | modules/rag/src/main/java/org/atmosphere/ai/rag/qdrant/QdrantContextProvider.java:95-100 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java:97\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/rag/src/main/java/org/atmosphere/ai/rag/pgvector/PgVectorContextProvider.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b6f8ca1618eee8d6ef61a07c080687fa3187063a4b0466f8f67f9bc2cde5e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:780-785 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:793-798 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:830-835 \u2014 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 \u2014 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 \u0060modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:780\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"356e4c25ac49af901ffa5d350e2c79984a0fd55e426153d9a19197459adbed4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java:68-74 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/EpisodicMemoryTestHandler.java:57-63 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolPermissionTestHandler.java:64-69 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CoordinatorFirstRunTestHandler.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae793d676b746d694eae275073e1eccb5612a96d286e5a47bbb59248b5638e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:113-118 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:144-149 | modules/ai/src/main/java/org/atmosphere/ai/governance/PreferencePolicy.java:141-146 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:113\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"841e102e3f2154f4fe065ba86e7d52522c8485ec7d3f27359bd32f3a4119c205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:311-316 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:368-373 | modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:386-391 \u2014 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 \u2014 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 \u0060modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java:311\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/a2a/src/main/java/org/atmosphere/a2a/runtime/A2aProtocolHandler.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3d1cb9fb89fde9ddb2f92e05e03617ed7ae81ef9a85e9cf1c23c60d5ae0ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1284-1289 | modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAutoConfiguration.java:383-388 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java:1284\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21716830bea6a3390e94bdd7ab1901275f8dbc07a1b27e5c53ff8287bccd22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:89-94 | modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereGovernanceMetricsProducer.java:161-166 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/MicrometerGovernanceMetrics.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3319ae724481e42bba60e5076c518f823db64541ba061e1a96df503e08d0689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:148-153 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1259-1264 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"232b125a7b464bd4b5eb98e2e414080678f700c049e7a7bcae028b08d8f1f4cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/bridge/McpProtocolBridge.java:69-74 | modules/agui/src/main/java/org/atmosphere/agui/bridge/AgUiProtocolBridge.java:64-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/mcp/src/main/java/org/atmosphere/mcp/bridge/McpProtocolBridge.java:69\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/bridge/McpProtocolBridge.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abf36ff73398d84411aa311d439c898a40d1ffbfb8e71345facaf7620d12992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:969-974 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1087-1092 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:969\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c9a87b4845519f18d1146b9325b4813b63b5edf00addf98c366079825d5404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java:219-224 | modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java:308-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/StatelessDialect.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd65d34e073d951c86d8dac2b045c59705e15014565d3f8ceb46c812d960ca6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:56-61 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/ToolCallDeltaTestHandler.java:38-43 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiGapCoverageTestHandler.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7291f1557dfd966125175fb4e5db662eaa37ba34360d2be7e6e3e78ae119e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java:88-93 | modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CostLatencyRoutingTestHandler.java:94-99 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/CombinedCostCacheTestHandler.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d04f2c96b4c514d7e924f67f19b5891531b50ad8c45aab2657a36c71fc601e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:135-140 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:251-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c7286fbb74ce394603ef46ef22d5c76c174680633b70c4d94354968276f564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:602-607 | modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:621-626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java:602\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cpr/src/main/java/org/atmosphere/util/IntrospectionUtils.java"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acb43750e6a28ad263748954d3338abeb80aa6382ba77a536c1fbdcfb2ad2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationProjection.java:149-154 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/coordinator/CheckpointingCoordinationJournal.java:172-177 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationProjection.java:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationProjection.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab1236200040afdd69ff2d419f7132be49e946423444eb41ca5b2feab3941d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1385-1390 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1338-1343 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1385\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"b494e01ec1507488505da479d19c28768d0e9d20e34b10c866d36330fe2432a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java:1474-1479 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:1381-1387 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29837a04864ef52a1167a08dc5c39f4ffc97941fc18a6e2acec307e779af987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:259-264 | modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/JsonRpcUtils.java:118-123 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java:259\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d173f11bbbb4616bc67496606f4903b9faa339c546cfa2ed5a5b14b271fcf13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:400-405 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:406-411 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a5d0b738de6816621cf93483defc19cc1e6cc86320f4b65aff8b75bc5ee41c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:427-432 | modules/anthropic/src/main/java/org/atmosphere/ai/anthropic/AnthropicMessagesClient.java:460-465 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java:427\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/cohere/src/main/java/org/atmosphere/ai/cohere/CohereChatClient.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"659566f8e220bfdd39e30e3342b7db86f27968efc42a2bcc806da8750e91bfa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:56-61 | modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/JsonFileEpisodicMemoryStore.java:108-113 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/episodicmemory/InMemoryEpisodicMemoryStore.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"33aba3eb2eb18e1397c8433533ef27a9ba4bee891b264f85a9dfcba78c410257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:162-167 | modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:192-197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:162\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7f9ab9a0a5e4d465d23e634f08c2900819a1b08be8e693b46a07d4f14825fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:122-127 | modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:142-148 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/fs/FileSystemTools.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca7195f9b23c3b469e15ecfeb84eea7d0120c9e25b1c7d0322e09ab900b9d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java:150-155 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/LlmClassifierScopeGuardrail.java:171-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/rag/LlmClassifierInjectionClassifier.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a911058f04ca798f2b64c8de2c355454989d714270e2b03d1161d87ff62abd54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:87-92 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:84-89 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8bff5eaf809ec0930b0700faabf7b56d96130317c7d8c4c55dcf46c3fa6632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java:141-146 | modules/ai/src/main/java/org/atmosphere/ai/governance/DenyListPolicy.java:152-157 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/AllowListPolicy.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3357e576a6d1bd1bd9046eccf0efcc63d35065063604ab65ccc46f52bd719ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:174-179 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarPolicy.java:114-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/MsAgentOsPolicy.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"940086aaf1b1c0b026fadc2a2dab1756531aa066219df08592841316568c9f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1340-1346 | modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1356-1361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java:1340\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"c863e41d6f2318ac138c1385eeaeb2381e1a0275d193986626373370ec0859d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:102-107 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:107-112 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:102\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9956ecd8e2c5ada4be6bfac543705d9fd858fa79489ec3422018244893bcbe51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:76-81 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:114-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:76\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9355666b00a49bea9894df8bf3e5ee1fcf0e49022adea7adcfde50f6b4361f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:278-283 | modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java:194-205 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java:278\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8268936fe104a98d950ce2a30da24e0ad845607de9d67d46c0eb8787bebc47b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:552-558 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:588-593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:552\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"4903f1d8996dde8a6c6b8277a92ff4ebacd7586e8be8ef9529e804c0a85d0945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java:182-187 | modules/ai/src/main/java/org/atmosphere/ai/DefaultStreamingSession.java:280-285 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/BroadcasterStreamingSession.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4b0f1df8fe00eaff1fe354f3cc52208cbc97df20070168ca7aa6714a4b0594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:302-308 | modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:344-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java:302\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/PromptLoader.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9f598e451ef78d0bacfae2da80256ea2a8f8a2713d7c5b4ec6576a5866ddf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:75-80 | modules/ai/src/main/java/org/atmosphere/ai/SummarizingStrategy.java:82-89 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java:75\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/SummarizingCompaction.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"02924919a2759565954dd77d8fcb84becb3d4d7c7b1c48917de05034e81c4cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:88-93 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:119-125 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java:88\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai-policy-rego/src/main/java/org/atmosphere/ai/policy/rego/OpaSubprocessEvaluator.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd5b7ccf7dc4a0e97388dfdda5008320328ad786089628fef4c0e067e6cc87c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): 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 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e663b230d9ddf24dadde9c566f869f06d380fe2d9b4e3de0b45e7edded1262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:185-189 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/EmbeddingInjectionClassifier.java:185-189 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/EmbeddingScopeGuardrail.java:172-176 | modules/ai/src/main/java/org/atmosphere/ai/governance/scope/SemanticIntentScopeGuardrail.java:185-189 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/cache/SemanticResponseCache.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c671255885591f92087511ccde4e97b2089a74961cecb8b1ce59f856619352a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:112-116 | modules/ai/src/main/java/org/atmosphere/ai/memory/OnSessionCloseStrategy.java:81-85 | modules/ai/src/main/java/org/atmosphere/ai/LlmSummarizingCompaction.java:119-123 \u2014 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 \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java:112\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/memory/LlmMemoryConsolidator.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"589b0d535fe9d8db903b5d9987b8ff46a1c06ccc71f453040be38b93a516b23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java:124-128 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:129-133 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/wasync/src/main/java/org/atmosphere/wasync/transport/LongPollingTransport.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adc3b14a07cf1bae70d883ae9151c856ae9d0987246c9a56d2d189670947431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java:54-58 | modules/wasync/src/main/java/org/atmosphere/wasync/transport/StreamTransport.java:63-67 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/wasync/src/main/java/org/atmosphere/wasync/transport/SSETransport.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4ab5493fdba44949a42640e361d2bfafdea14c92bc9a4bff8bdf9fc585506d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java:116-120 | modules/verifier/src/main/java/org/atmosphere/verifier/checks/WellFormednessVerifier.java:86-90 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/verifier/src/main/java/org/atmosphere/verifier/checks/AutomatonVerifier.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec500875efd30d4a0435051529bafaee7e8b530527dbb6d809e953b60db0135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:313-317 | modules/ai-policy-cedar/src/main/java/org/atmosphere/ai/policy/cedar/CedarCliAuthorizer.java:256-260 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java:313\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-extension/runtime/src/main/java/org/atmosphere/quarkus/runtime/AtmosphereConsoleInfoServlet.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d7e3c6c57d7911b30b09e744e2ddbd529c10c2be33ec92c1d0b1a6ece3c931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:679-683 | modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:707-711 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java:679\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/quarkus-admin-extension/runtime/src/main/java/org/atmosphere/quarkus/admin/runtime/AdminResource.java"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"810daa035609f62aea45f7a55103c0726989ac9f82f25bc68b65da0743081664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:163-167 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:168-172 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14bc52e91900794a36b68a500b5adb3676b57301103a071ee1bbe8055825236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java:198-202 | modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:218-222 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions/src/main/java/org/atmosphere/interactions/SqliteInteractionStore.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb13d937ad93a305ef16b4d12b86beb5353198448ce65a670005fe346a0adbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:280-284 | modules/checkpoint-postgres/src/main/java/org/atmosphere/checkpoint/postgres/PostgresCheckpointStore.java:277-281 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java:280\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/interactions-postgres/src/main/java/org/atmosphere/interactions/postgres/PostgresInteractionStore.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9afc25b54cde9b1703757b3343024e8265fbef069d695adeddd026fe843dcce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:192-196 | modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java:442-446 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/checkpoint/src/main/java/org/atmosphere/checkpoint/SqliteTapeStore.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c100b7351ab332c86bc8eb2760a3a0cfd04d4d5a573f072d9aebe5544bc93ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:138-142 | modules/ai/src/main/java/org/atmosphere/ai/filter/PiiRedactionFilter.java:118-123 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java:138\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/filter/ContentSafetyFilter.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8586230e34c4b5eb15f368fc694ad4f06cf13d0317bfc1c6068981b0345328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java:206-210 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:248-252 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java:206\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/memory/ScreenedLongTermMemory.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e1a24294dd58cf9811098b48527b47347d6b3f250e010fa32bacce2a59a76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:217-221 | modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java:226-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/rag/SafetyContextProvider.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"83819ed34b07d026b04e290ca5aada1fb9d2b54b406739da04e3caa51220acef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:258-262 | modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:295-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java:258\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/GovernanceDecisionLog.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae31552ba200abe5e08bb9cc71430dbb7a746b8595bfc7993e1d9da67899c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:161-165 | modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:196-200 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java:161\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/governance/YamlPolicyParser.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae09e9a6f708a7897a44ccc608121ce1dd7b80eb48ecdfe1095eedacaf9d944f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:202-206 | modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:219-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java:202\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/routing/RoutingLlmClient.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c1a79df07a254b7288648d19159ae475c1ce2d5b845b17ca4895eb8fc41552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:399-403 | modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:404-408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 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 \u0060modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java:399\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/workspace/WorkspaceExtensions.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b14c656448adf7a3b7ebfc1f4fa61709e17a47ac46ea20f230cc625da88ae8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java:407-411 | modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java:413-417 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agentscope/src/main/java/org/atmosphere/ai/agentscope/AgentScopeAgentRuntime.java"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b603d4a6e9d3fb4fdc90e36fb8294e9fe29a42cc2d0b68a1270babb79e2cab1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:77-81 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:541-545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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 \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba429f85cfe4ecbb2308350bfdef0ce5c07d2d437aabdd7039b2955f0b66f692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:296-300 | modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java:460-464 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/admin/src/main/java/org/atmosphere/admin/ai/GovernanceController.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c9d02a3ed84dfada07b0ffbccef85e67cb2461edac2b5af478173e39b55d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java:1245-1255 | modules/protocol-common/src/main/java/org/atmosphere/protocol/ParameterBinder.java:125-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/mcp/src/main/java/org/atmosphere/mcp/runtime/McpProtocolHandler.java"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d406b7e60d6919b87d6e0cbd45cce1cbf41804291e459c485da84ce73de89c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java: modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java changed 18 times in last 90 days, max complexity 74. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiPipeline.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f2fc615d60dfba38af0187a1362ca24e2eefc4e20b38c23cb4c60665233fe7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java: modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java changed 18 times in last 90 days, max complexity 69. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/AiStreamingSession.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd8cd5d993beaf333e779e05ae10db857f859c1006e5c2144824d2cfcdc2b6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java: modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java changed 14 times in last 90 days, max complexity 43. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec93a8f59fa5d344637ad4b7f19392b006dd974be890d714cbe613fa82ea2c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java: modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java changed 11 times in last 90 days, max complexity 49. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70219709296ab278df8ba8d9cfb14a49ed33163c63fdfd6406376537ec3a52ac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java: modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java changed 18 times in last 90 days, max complexity 27. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f1a15556c8a526f1d691aea54cb8f2be1ec0c77d99045160a5b20e326388ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java: modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java changed 13 times in last 90 days, max complexity 27. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/LangChain4jAgentRuntime.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29993d7785cf320a450c978fc040a637864cab446a9687a2c69569981beab2eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java: modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java changed 16 times in last 90 days, max complexity 21. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5c376c42d90ec02a705f08c84ad34cb621615b32353dacefc53b584c629a06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java: modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java changed 11 times in last 90 days, max complexity 28. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73b365de1958425d564c73985b58637ff499f28585f31ef353cd03ddfcf2462"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java: modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java changed 9 times in last 90 days, max complexity 33. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/tool/ToolExecutionHelper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"779ceb525948da25826c71c9dfc446b409d8314dc5578626edfd18fbf765f22a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java: modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java changed 8 times in last 90 days, max complexity 36. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4874aae590493a3c41aeb619d6f1118308fc77f4a69ccac2dd4c18de7ade16f0"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 542 significant file(s) lose their only recent owner: modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java, modules/cpr/src/main/java/org/atmosphere/cpr/DefaultBroadcaster.java, modules/ai/src/main/java/org/atmosphere/ai/llm/OpenAiCompatibleClient.java, modules/agent/src/main/java/org/atmosphere/agent/processor/AgentProcessor.java, modules/coordinator/src/main/java/org/atmosphere/coordinator/processor/CoordinatorProcessor.java, modules/spring-boot3-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereAiAutoConfiguration.java, modules/ai/src/main/java/org/atmosphere/ai/processor/AiEndpointHandler.java (\u002B534 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cddbd5df3a95eb456758c6b5051ab4ef6c56bfe208c654ce375299d12d96147c"}},{"ruleId":"D19","level":"note","message":{"text":"The Compose generator\u0027s Prerequisites list omits Docker installation (docker/dockerd) required to run the generated project locally.: Add Docker prerequisite \u0022Docker installed\u0022 so users can build/run the multi-module Atmosphere starter from scratch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d69a37d815897179c307ebb9d7f2a03c0eab35858983d0ea2dc06c5d11805d2"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c55bb952887b5fdd0ae90feb5bc8ca3228de903c016bdf0fb3f58a1350ca2546"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b76b2a7cd46ac15eee151838a6d20b5a39181f4d7dda6d5eea5444876646356d"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9a22eb4f8e158264b078504a22ec749ae7d44e57ea2b3e7b95e20043ab603aab"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"18a5dde531ec028d771b43e6409aa1f741efeb8456195787681e5bbad0d1fb97"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e7c79ff96cb861715ca8b8cd4900baf497c45c976c64526c1703431c5359c56"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5c519eefc5bc3fa51f3c482d7062a1ecc533f52c64af164db1b902a1d3a83efd"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"40a3e117a13347df2d0071f752aa005216400d2628755c80923159412d5b8e76"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f004856b45188b5b66c281d1a0db99e9f1be0ab48d5f454bead6443e89178e78"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"43fa8f33f023b161f81f923cd5f2fd54f4a3b2a83b758e090204d93a9e80a388"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59d44355e094f84cd7f65e9082dc40e7ce26b88e936a6bebb581ee13d219edf5"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4e507953768ed4d26290fc8d35f7c6a89bac875685368e3e7eadd6ae4ed83636"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c12fdfe9b3d5d03e6d3d4b13aef2d66dcca3b94cbab28c0ab12170965f015e1"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24776d97c45d8d6680ca9911a4eb8d463bc9ef8e8c044f21ac65dce64000c521"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b660682c3a5b3123335240ddbd26710cc989d2638cad40dddc70a60dbccf06b2"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"92a9250249b7bc2ed52e01c57ada028b6f08dd6f30a1f767442b6a595ee74e2e"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"047c339aac8ed54b483f04c9e2ccf1507d1c79deffdec1b6c7648357059b93d8"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ee144130034700d47b43843d869d803552a7e8d2c49fc5525182e92782ef7c00"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa153ddefc9f81c9ba32ad46eb51fbb0982e7eb0a086c5262b7a7487aec5fcd1"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"489e951ddcaf588b01834667a8da868578ed9774f0c759a842fed4c7e0142692"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a10fa76539f75beb8022de18bfd356fe54e0ef3ff78e6594f0538f8b1db6753"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d9231fa8102765cbc7c42e92b651c944a63d4cceddef756c8dc48bf70b27c81f"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"117dc435b96329246d8265757364e7e9620e89a22249b42e6fc8f8d5f6e389b8"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e84a995a69218e7838784fa536331cce807dc0d28623f8a5f9a5ad552350a099"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a3377d90ed0c7ec4533f60776533ab45ca7391301a49a8e380aaa7f2e7ae10d"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"26ac3613e0b5358c652a85e02f8a459954c66aca6a240bb457146f2715678ec8"}},{"ruleId":"D32","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"af169916372bb1889bdfedcb4754fc0f7de00e81a3960158f5459d962661a1ed"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: KoogAgentRuntime.kt \u2194 ToolAwareStreamingResponseHandler.java: \u0060modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt\u0060 (context koog) and \u0060modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java\u0060 (context langchain4j) sit in DIFFERENT parts of the tree yet change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/koog/src/main/kotlin/org/atmosphere/ai/koog/KoogAgentRuntime.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c484d9d4b009f5233eb152ee573e42388316c90216d9fab81c505c70d437e00"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: BuiltInAgentRuntime.java \u2194 ToolAwareStreamingResponseHandler.java: \u0060modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java\u0060 (context ai) and \u0060modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java\u0060 (context langchain4j) sit in DIFFERENT parts of the tree yet change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/ai/src/main/java/org/atmosphere/ai/llm/BuiltInAgentRuntime.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dc91a2a6346d1c8425aa13311a3928ecca61fc974bfd81d276bcdafd3daf73"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ToolAwareStreamingResponseHandler.java \u2194 SpringAiAgentRuntime.java: \u0060modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java\u0060 (context langchain4j) and \u0060modules/spring-ai/src/main/java/org/atmosphere/ai/spring/SpringAiAgentRuntime.java\u0060 (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) \u2014 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\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/langchain4j/src/main/java/org/atmosphere/ai/langchain4j/ToolAwareStreamingResponseHandler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe08acee3719d4814cdb70a58599051427db2be128954b3bd4974b71abcfc5e7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: playwright.config.ts \u2194 AiFeatureTestServer.java: \u0060modules/integration-tests/playwright.config.ts\u0060 and \u0060modules/integration-tests/src/main/java/org/atmosphere/integrationtests/ai/AiFeatureTestServer.java\u0060 change together 80% of the time (12 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 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\u0027s 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/integration-tests/playwright.config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7429b25e3b0c81b099df4b64459b6b95848f50fbef25d726c1301eb2326bf4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: A2aAgentTransport.java \u2194 LocalAgentTransport.java: \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java\u0060 and \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/LocalAgentTransport.java\u0060 change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/transport/A2aAgentTransport.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ca219e709e1f8b79c1b34be8f8da898d1218d10380277ed2f3740ae2d22a99"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: App.vue \u2194 AtmosphereConsoleInfoEndpoint.java: \u0060modules/spring-boot-starter/frontend/src/App.vue\u0060 and \u0060modules/spring-boot-starter/src/main/java/org/atmosphere/spring/boot/AtmosphereConsoleInfoEndpoint.java\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) and are written in DIFFERENT LANGUAGES, so no import can join them and they cannot be co-located into one unit \u2014 they compile and ship as separate artifacts. What binds them is a CONTRACT across that boundary \u2014 an event or message name, a route, a serialised shape \u2014 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\u0027s 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/spring-boot-starter/frontend/src/App.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd59e0fb0255dcfe5ab76cc0935f3b3dc2c685a02969ee1824b192de0c462f74"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AgentFleet.java \u2194 CoordinationEvent.java: \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/AgentFleet.java\u0060 and \u0060modules/coordinator/src/main/java/org/atmosphere/coordinator/journal/CoordinationEvent.java\u0060 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) with no explicit dependency \u2014 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 \u2014 the registration is the link, and it is meant not to be an import \u2014 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"modules/coordinator/src/main/java/org/atmosphere/coordinator/fleet/AgentFleet.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"407070c19a95621a27eccc8abab43ca30e80a1354ef4682d375f9945106f1b94"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6548505a5b9873c8694f7a3fb682d51896179d2b78e213ad9a48596816001846"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d0ff5c9d78ddb75b80a2a9419deb04443a16a6efc1afcf23f5ac1d610e64cb67"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bbea17956c06aee3390c83e4f3a9b3c3e0ce6cc39e5729f0f7d50344cecb8ae3"}},{"ruleId":"D38","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"714bf6a8fe978e6ff601151404009e3c8bfe628f88ff0aec42c7e9ec3a07a8d2"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":33,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}