{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X31","name":"Test-only surface in a production module","shortDescription":{"text":"Test-only surface in a production module"},"helpUri":"https://codehealth.canine.dev/dimensions/X31"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"beamai_tool_index_keyword.run_class (cyclomatic 28): beamai_tool_index_keyword.run_class has cyclomatic complexity 28 (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":"apps/beamai_core/src/core/beamai_tool_index_keyword.erl"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bed2ed52ca80dc1e5e60bb996993b5e7128817ec9156a869d36c7f6dd40b238"}},{"ruleId":"D1","level":"warning","message":{"text":"beamai_subagent_manager.handle_call (cyclomatic 22): beamai_subagent_manager.handle_call 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":"apps/beamai_agent/src/beamai_subagent_manager.erl"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8695d1334546f84c587d8331932fbcc01a8f6d211be0f5ff4dd0cfd65f3d3c"}},{"ruleId":"D1","level":"warning","message":{"text":"beamai_llm_provider_common.rebuild_responses_item (cyclomatic 19): beamai_llm_provider_common.rebuild_responses_item has cyclomatic complexity 19 (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":"apps/beamai_llm/src/providers/beamai_llm_provider_common.erl"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e22a5c32af4d2819449ae477a40095d5017a1086319b309a7425f933796e67"}},{"ruleId":"D2","level":"warning","message":{"text":"beamai_llm_response_parser.from_openai_responses (cognitive 21): beamai_llm_response_parser.from_openai_responses has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (9 pts), if/else 3 (8 pts), match/switch 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cd160af573d71cfc463064639f6fb6fd34fa5de2c03022f29d18b71756075b"}},{"ruleId":"D2","level":"warning","message":{"text":"beamai_llm_message_adapter.to_anthropic_message (cognitive 16): beamai_llm_message_adapter.to_anthropic_message has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 7 (9 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a0fe45913a410607f5ce5c8bcf2b0de270f553d58f39b000ae3e1319394614"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_llm_message_adapter: TooManyFunctions \u2014 59 functions. The bar is 30 functions; this is 29 over it, 1.97\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1d4a8f5c9d8487aa4f51c66f12d0ea79e629d3b75b4dad8aff8533c2c22573"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_agent: TooManyFunctions \u2014 57 functions. The bar is 30 functions; this is 27 over it, 1.90\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_agent.erl"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c929787a7afd918aec779e8ac204ac8dc8eb6b3ec4308578721a2516c2b053d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_tool: TooManyFunctions \u2014 51 functions. The bar is 30 functions; this is 21 over it, 1.70\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_tool.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cba9df808afb0cedc251e329ad4b8086f36e624115f2c9b03b94a016a10873a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_agent_tool_loop: TooManyFunctions \u2014 49 functions. The bar is 30 functions; this is 19 over it, 1.63\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_agent_tool_loop.erl"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9532add079747bd7cf7cbd067033dc7d7b91dadc68a73dbbab6bd432f6d0ed96"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_llm_provider_common: TooManyFunctions \u2014 48 functions. The bar is 30 functions; this is 18 over it, 1.60\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_common.erl"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31033a87f9a25d4ba593db0ffa6a356691c4fccf247ff5c3bdf53772dd1941b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_benchmark: TooManyFunctions \u2014 45 functions. The bar is 30 functions; this is 15 over it, 1.50\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_benchmark.erl"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a9a0c59a8f4edf5a138c52f8c39ad187ac286cff77b34ff1560b418652635c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_json_schema: TooManyFunctions \u2014 43 functions. The bar is 30 functions; this is 13 over it, 1.43\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_json_schema.erl"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9592fbffa17da033ae89830e4fcf8dd549b65a1b84828de02eae0b0ca45a1e7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adapters/beamai_llm_response_parser.erl: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 59 functions. The bar is 500 significant lines; this is 145 over it, 1.29\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7fc7bfa5f2a1758e656b9432fa2f01feb21152df51da692c62601ee479e3a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_http_pool: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/http/beamai_http_pool.erl"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"844400f0c4157221ef6dbb5f072c53170efbba15ac341a5b4ba72368d47eae07"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_llm_provider_dashscope: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_dashscope.erl"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d928ae827f80ccb7bf9ba098d6ed4312a37ef6c6a9054e6e351b6092bc4482"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_llm_content: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_content.erl"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"02786411a7e5d493d5b0eed6c67c705144df8e4351656abb146c6db29271ae9e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_llm_provider_anthropic: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7dadb35fb4d05c1a061939c643e20463f8655ea78d1380cbee421b1d218c91d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: beamai_context: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_context.erl"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"18779fc45f2ae99b4d398e94d05b937beef9375e2addac4d9ed7b92c01472521"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): apps/beamai_core/src/http/beamai_http_gun.erl:184-220 | apps/beamai_core/src/http/beamai_http_gun.erl:226-256 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/http/beamai_http_gun.erl"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"71786d6505df1a0d8a3b975026f9bf119e6d0127667cc42348f016a6d5263685"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:128-150 | apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:235-263 | apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:269-292 | apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:375-397 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b11704c15a229c5e65245b2247db0d17485f6f6385084885e7710eb6a5fb42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): apps/beamai_core/src/http/beamai_http.erl:276-301 | apps/beamai_core/src/http/beamai_http.erl:306-336 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/http/beamai_http.erl"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"701418045f13df29bc54ba55af53760945fa5b9ed9bb904e90a19246b978fdaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): apps/beamai_llm/src/embedding/beamai_embedding_common.erl:85-102 | apps/beamai_llm/src/embedding/beamai_embedding_common.erl:132-148 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/embedding/beamai_embedding_common.erl"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be9cddf2f40f53c4bec29049e9594d7e296d57d971d7e3e0e34cf1da80fea15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/beamai_agent/src/beamai_pause_store_ets.erl:76-89 | apps/beamai_core/src/core/beamai_chat_memory_ets.erl:82-99 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_pause_store_ets.erl"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b47e2b9e7e1e54cb953426501b6f4c2a6cf2a2db156e2e3a2d98e0b08bbb117"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl:175-187 | apps/beamai_llm/src/providers/beamai_llm_provider_common.erl:238-252 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e2286776d37e93de817fbc59b1bd99c7e844211e58e73f777fd915dd70732c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/beamai_llm/src/embedding/beamai_embedding_provider_dashscope.erl:76-90 | apps/beamai_llm/src/rerank/beamai_rerank_provider_dashscope.erl:57-74 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/embedding/beamai_embedding_provider_dashscope.erl"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"db051f9cc6de915fe61fa5a3a5ec52c9f60ec88d154db799e94894b4bf1d55eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): apps/beamai_llm/src/providers/beamai_llm_provider_common.erl:394-411 | apps/beamai_llm/src/providers/beamai_llm_provider_common.erl:474-491 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_common.erl"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b0c52290e9d0d68df231690fa7bbf08a788f49448f2470d507c4fe3318573b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/beamai_llm/src/embedding/beamai_embedding_common.erl:39-54 | apps/beamai_llm/src/rerank/beamai_rerank_common.erl:43-60 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/embedding/beamai_embedding_common.erl"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1a124e5de692c8ac9a06e5978d0003ae210cd46c61b8cd43c8d151942b7fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/beamai_core/src/http/beamai_http_gun.erl:263-273 | apps/beamai_core/src/http/beamai_http_gun.erl:278-288 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/http/beamai_http_gun.erl"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f842b1961e5a52b4020f67d69e1e048a4abd25cf795f71cf503c06cbdca0b0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/beamai_core/src/core/beamai_tool_index_keyword.erl:109-126 | apps/beamai_core/src/core/beamai_tool_index_regex.erl:55-66 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_tool_index_keyword.erl"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68613fa3305afa881df662d8468581ada18450fcc945d3e8fc45ac33abd67ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/beamai_core/src/core/beamai_chat_client.erl:173-188 | apps/beamai_core/src/core/beamai_chat_client.erl:218-229 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_chat_client.erl"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c056007ebea2ce77f6c51018d799cad080a2fedde25c56aba9439ccb2078b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): apps/beamai_llm/src/decision/beamai_decision_common.erl:235-243 | apps/beamai_llm/src/embedding/beamai_embedding_common.erl:156-164 | apps/beamai_llm/src/rerank/beamai_rerank_common.erl:124-132 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/decision/beamai_decision_common.erl"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75256973daa290d132b14a0bc4034bd502d197383684edd17fa2af6e66fb836"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/beamai_agent/src/beamai_concurrent_tool_calling_manager.erl:57-65 | apps/beamai_agent/src/beamai_sequential_tool_calling_manager.erl:54-62 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_concurrent_tool_calling_manager.erl"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6f3b6644e3b0089cc9fe9416318bae70e86d7fd2b4bca4b8f76a7830834c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl:134-151 | apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl:618-623 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"292c26c41e85f22012048e9a0a9660cd0dc581ff3e378f75d7bd6d514741bc86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/beamai_core/src/core/beamai_json_schema.erl:228-234 | apps/beamai_core/src/core/beamai_json_schema.erl:258-265 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_json_schema.erl"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e748d683da638e62b016afee4bcc9569c0cf9deb9e9715fcbe88ebff368806"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): apps/beamai_core/src/http/beamai_http_gun.erl:49-62 | apps/beamai_core/src/http/beamai_http_gun.erl:69-81 | apps/beamai_core/src/http/beamai_http_gun.erl:86-103 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/http/beamai_http_gun.erl"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5924181a99d770a625a616a64aab6175ac83023a983a54dcfb811a52306d1ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:601-614 | apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:741-754 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"f501f324ba287cdebfde53668fa0507b8a2ffc0d991e33de13777528dc53a152"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:714-723 | apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:729-738 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92338ae4d9ecb3a895e77b10e6cb66edfdc66715b86e29223dc26acbe77f884"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/beamai_llm/src/parser/beamai_parser_json.erl:186-198 | apps/beamai_llm/src/parser/beamai_parser_json.erl:201-213 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/parser/beamai_parser_json.erl"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecedfaa78a866eeac4044e9c914eea7241dc36c3f9f0e056699832ec3e24ddb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/beamai_core/src/core/beamai_json_schema.erl:175-189 | apps/beamai_core/src/core/beamai_json_schema.erl:192-206 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_json_schema.erl"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"113f68b0efa08427765f9db7f8899ef4b7cbfbbe47aabd31b1ee9f5fec1908d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl:97-105 | apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl:637-645 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"373f8560bd8e227ef53a740e550da859493d12ccfdc95bb7fddff3bf76a128a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 8\u002B corresponding lines): apps/beamai_llm/src/embedding/beamai_embedding_provider_openai.erl:45-52 | apps/beamai_llm/src/embedding/beamai_embedding_provider_zhipu.erl:43-50 | apps/beamai_llm/src/rerank/beamai_rerank_provider_cohere.erl:43-50 | apps/beamai_llm/src/rerank/beamai_rerank_provider_dashscope.erl:47-54 | apps/beamai_llm/src/rerank/beamai_rerank_provider_jina.erl:39-46 | apps/beamai_llm/src/rerank/beamai_rerank_provider_siliconflow.erl:43-51 | apps/beamai_llm/src/rerank/beamai_rerank_provider_voyage.erl:42-49 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/embedding/beamai_embedding_provider_openai.erl"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"de63a505565d3025b04e88c1c3933e602dec58e2cdb49203e07ff98301e0c6ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/beamai_core/src/core/beamai_json_schema.erl:330-340 | apps/beamai_core/src/core/beamai_json_schema.erl:406-412 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_json_schema.erl"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"10eb1c26433297170ffd5676a6ab00eac7693c11b906ce96f9c1f5c9af1ff5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): apps/beamai_llm/src/providers/beamai_llm_provider_common.erl:334-338 | apps/beamai_llm/src/providers/beamai_llm_provider_common.erl:565-569 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_common.erl"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a2aa2bc4de26fa72182b238bdafd4123eb525581a556aea84fffdcf30b2f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/beamai_llm/src/rerank/beamai_rerank_common.erl:90-95 | apps/beamai_llm/src/rerank/beamai_rerank_common.erl:99-104 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/rerank/beamai_rerank_common.erl"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8390437bd2e97a5ce0d3a6dc83235071a4aae5c8515c5144086159303a623aa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/beamai_agent/src/beamai_agent_event.erl:178-190 | apps/beamai_core/src/core/beamai_telemetry.erl:146-157 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_agent_event.erl"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8b7b2f22edce8be9949d7cf039d64a8a82d71e2dc632eca1f60abf007f70fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): apps/beamai_llm/src/decision/beamai_decision_common.erl:62-68 | apps/beamai_llm/src/embedding/beamai_embedding_provider_ollama.erl:45-52 | apps/beamai_llm/src/providers/beamai_llm_provider_deepseek.erl:181-189 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/decision/beamai_decision_common.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf8826d01408e91d753af01f440da28bf4b8a08f0256ed64d3c5b92203ce297"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/beamai_llm/src/beamai_embedding.erl:189-199 | apps/beamai_llm/src/beamai_rerank.erl:167-174 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/beamai_embedding.erl"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"668a1c72b4f387ec2c5a2e1b2b41b32e8d84c20b9af773b1cc5391bd41a46d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/beamai_llm/src/adapters/beamai_llm_content.erl:277-283 | apps/beamai_llm/src/providers/beamai_llm_provider_common.erl:271-277 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_content.erl"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1489fc418d36b72fac8d352362fc1f611bf4ea5c831a9229a866bcd9d1fcf754"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): apps/beamai_llm/src/decision/beamai_decision_common.erl:86-89 | apps/beamai_llm/src/embedding/beamai_embedding_common.erl:58-61 | apps/beamai_llm/src/rerank/beamai_rerank_common.erl:64-67 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/decision/beamai_decision_common.erl"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48fa7fd2dd915931453714328109f7d5ede8a41a3db21bab7911c61cf363dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): apps/beamai_llm/src/adapters/beamai_llm_media.erl:121-126 | apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl:228-231 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_media.erl"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7633a3fcdcb0653b509c0771f7fc6d7d0434d19c8aff2e97a231c8737e7dead7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): apps/beamai_llm/src/beamai_decision.erl:96-99 | apps/beamai_llm/src/beamai_embedding.erl:79-82 | apps/beamai_llm/src/beamai_rerank.erl:66-69 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/beamai_decision.erl"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"586618decaf0adc874997162a93bdcef75baf38cdae09fc8cb0a8fd0653bf069"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): apps/beamai_llm/src/beamai_embedding.erl:129-133 | apps/beamai_llm/src/beamai_rerank.erl:103-107 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/beamai_embedding.erl"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e1211b1d33ee22ebf28ea5daa5015338502fe94db21f0b47694208cc4e6a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): apps/beamai_llm/src/decision/beamai_decision_common.erl:252-254 | apps/beamai_llm/src/providers/beamai_llm_provider_openai_responses.erl:253-255 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/decision/beamai_decision_common.erl"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0481026545b609168f6fed60ee86206eadbf79f4b2c991a95537dfcb77b7fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): apps/beamai_core/src/core/beamai_tool.erl:411-413 | apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl:209-211 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_tool.erl"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0426b3b06aef626ad163d989ca6843997e87f2865d679767cc17d518778d201"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): apps/beamai_agent/src/beamai_pause_store_dets.erl:63-64 | apps/beamai_core/src/core/beamai_chat_memory_dets.erl:47-48 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_pause_store_dets.erl"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0572a702afc24d923c9ce6f280d63d6965ca83b6f2cb07ebca5fed84a04761"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): apps/beamai_agent/src/beamai_branch_store_ets.erl:69-71 | apps/beamai_agent/src/beamai_pause_store_ets.erl:72-74 | apps/beamai_core/src/core/beamai_chat_memory_ets.erl:78-80 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_branch_store_ets.erl"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"325be2f13ce2bd99ac19a40797ee776f253b440387f1ffb9a6e3f8133e6247b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl:108-113 | apps/beamai_llm/src/providers/beamai_llm_provider_zhipu.erl:267-272 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"20120d10882e2460b29f71b4112f335ab129d893ed011a185d1574183c3f6338"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl:210-213 | apps/beamai_llm/src/providers/beamai_llm_provider_common.erl:221-224 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"628898fed3144b438fa21b72f0333fc43bcff1b9f11fd0eb7bf6f3de5231f9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): apps/beamai_agent/src/beamai_agent.erl:875-877 | apps/beamai_agent/src/beamai_agent_tool_loop.erl:675-677 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_agent.erl"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e9f669af9ced879034b09e6b05ad278176a7d6dc1b525fa58a62d96efe8801"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): apps/beamai_core/src/core/beamai_context.erl:271-272 | apps/beamai_llm/src/decision/beamai_decision_common.erl:249-250 | apps/beamai_llm/src/providers/beamai_llm_provider_openai_responses.erl:250-251 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_context.erl"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f5a2dc563f0596b906e3442bf2dd38769d8cd2ccab02ba1d7b97bd72b9d102"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/beamai_agent/src/beamai_agent_sup.erl:71-78 | apps/beamai_core/src/beamai_core_sup.erl:70-79 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_agent_sup.erl"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2877b2a23126bd26d4dca53d79f2193247a6dd15a6cebae32a4cccf8e747cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl:237-238 | apps/beamai_llm/src/providers/beamai_llm_provider_common.erl:194-195 | apps/beamai_llm/src/providers/beamai_llm_provider_zhipu.erl:322-323 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_anthropic.erl"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40903a5bdc49b53d2b626ed66d9906480fe25c49be9c85af1d0ef600207b6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/beamai_agent/src/beamai_agent_tool_loop.erl:436-447 | apps/beamai_agent/src/beamai_agent_tool_loop.erl:477-488 \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 \u0060apps/beamai_agent/src/beamai_agent_tool_loop.erl:436\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":"apps/beamai_agent/src/beamai_agent_tool_loop.erl"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fb9ad9800ab540d6623bbc3a934f4141d14219627977160f49f21eb22f5ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): apps/beamai_core/src/core/beamai_chat_client.erl:174-184 | apps/beamai_core/src/core/beamai_chat_client.erl:219-225 \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 \u0060apps/beamai_core/src/core/beamai_chat_client.erl:174\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":"apps/beamai_core/src/core/beamai_chat_client.erl"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc7208d9febb4aff868a7f1bc07ca986f8e69c0e442de4f975d472cf76726c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/beamai_core/src/http/beamai_http.erl:277-286 | apps/beamai_core/src/http/beamai_http.erl:307-316 \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":"apps/beamai_core/src/http/beamai_http.erl"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df26fe2b15b2ada5b56c00760c88c2102b44fe8b3005f58cb4d7b172d939b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): apps/beamai_llm/src/providers/beamai_llm_provider_openai.erl:151-157 | apps/beamai_llm/src/providers/beamai_llm_provider_siliconflow.erl:153-159 | apps/beamai_llm/src/providers/beamai_llm_provider_xai.erl:181-187 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_openai.erl"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"112b5fbed73bb6f9dbdac8436e1b33fbb2c375e200af060f917eac9514063dbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/beamai_llm/src/embedding/beamai_embedding_common.erl:48-54 | apps/beamai_llm/src/rerank/beamai_rerank_common.erl:54-60 \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 \u0060apps/beamai_llm/src/embedding/beamai_embedding_common.erl:48\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":"apps/beamai_llm/src/embedding/beamai_embedding_common.erl"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b718c1445dd9eccfe02aef8d66d2c46755484d29e457e9dd6f3ba678202f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:136-142 | apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:250-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e2f7dee73509fad58c0b48eb17f51f99b0499ba50051a70f358f64627e0a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/beamai_llm/src/embedding/beamai_embedding_provider_dashscope.erl:80-85 | apps/beamai_llm/src/rerank/beamai_rerank_provider_dashscope.erl: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/embedding/beamai_embedding_provider_dashscope.erl"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b8c408bbe48ef19eecfbc9e6f709cef5696e58bdb8f7528eeeea35ade4d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/beamai_agent/src/beamai_branch_store_ets.erl:77-81 | apps/beamai_agent/src/beamai_pause_store_ets.erl:80-84 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_branch_store_ets.erl"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc50b606805b630b5f04a3a264d9e6b36b7a2238df8df0ed5c6b9a3752d82ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/beamai_llm/src/embedding/beamai_embedding_provider_openai.erl:45-49 | apps/beamai_llm/src/embedding/beamai_embedding_provider_zhipu.erl:43-47 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/beamai_llm/src/embedding/beamai_embedding_provider_openai.erl:45\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":"apps/beamai_llm/src/embedding/beamai_embedding_provider_openai.erl"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3e2d4939198e9fb984c9264339a7f2fd1a47090537e718b02f8293c6c209ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/beamai_llm/src/rerank/beamai_rerank_provider_cohere.erl:43-47 | apps/beamai_llm/src/rerank/beamai_rerank_provider_jina.erl:39-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/beamai_llm/src/rerank/beamai_rerank_provider_jina.erl: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":"apps/beamai_llm/src/rerank/beamai_rerank_provider_cohere.erl"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc3c2852ef310fd8c07515c2fd22b64191b18f8a4e8b5fb8070f8b5f5b024c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/beamai_llm/src/parser/beamai_parser_json.erl:188-193 | apps/beamai_llm/src/parser/beamai_parser_json.erl:203-208 \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":"apps/beamai_llm/src/parser/beamai_parser_json.erl"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84489c72319c1eb8ad989d23eb3a8aac88023e5ede157205bed26260805ae5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/beamai_llm/src/embedding/beamai_embedding_common.erl:88-92 | apps/beamai_llm/src/embedding/beamai_embedding_common.erl:136-140 \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 \u0060apps/beamai_llm/src/embedding/beamai_embedding_common.erl: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/embedding/beamai_embedding_common.erl"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9021e00b7610052d0012219429a50476dc54a5ecca3d7d9cb78143ca37d9541e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/beamai_agent/src/beamai_pause_store_dets.erl:110-114 | apps/beamai_core/src/core/beamai_chat_memory_dets.erl:80-84 \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 \u0060apps/beamai_agent/src/beamai_pause_store_dets.erl: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":"apps/beamai_agent/src/beamai_pause_store_dets.erl"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2cd111ffa8be2e52dc8e0a88d62c52b57b5cbec781bd9a9710ed06cd337706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:280-284 | apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl:310-314 \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":"apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7044973dce34670f746932b5c8bc5d24c4d5d343a384bf236811b79442aed658"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): examples/src/example_anthropic_provider_test.erl:261-286 | examples/src/example_openai_provider_test.erl:215-239 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c576e62080321e61a884af05c2f2e93f5b9d90e67e6f19295c56c80f25f35e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): examples/src/example_anthropic_provider_test.erl:166-196 | examples/src/example_openai_provider_test.erl:150-182 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c8464753c09923d90d4f2950be744e9f991d5a53bde07623b52dda033a4ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/src/example_anthropic_provider_test.erl:26-53 | examples/src/example_openai_provider_test.erl:28-56 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c3dd4cc4440d17889abd30a010a2b0c486f9a20497ee65b67cc9c07ed76278"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): examples/src/example_anthropic_provider_test.erl:95-114 | examples/src/example_openai_provider_test.erl:99-119 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf06dc6a0bce175a87bb0ea3c7cad2ec1a895b065b16e8e82add0c0ab1d3cebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): examples/src/example_anthropic_provider_test.erl:76-89 | examples/src/example_anthropic_provider_test.erl:147-160 | examples/src/example_openai_provider_test.erl:62-74 | examples/src/example_openai_provider_test.erl:80-93 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"492d4c5044dfe967c8b3f47d37681f32ab3eb01dce8ca92a7cd8706995d21a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:120-141 | examples/src/example_openai_provider_test.erl:125-144 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d999e87a0edab326f111f4dcd1cc8136dc06d7f22e6214e421cf162aa431556"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:236-255 | examples/src/example_openai_provider_test.erl:190-209 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef55e00f8036ebfd6569d739504f278ea64ea9e137c281f8c03e46615b4545e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:168-186 | examples/src/example_openai_provider_test.erl:152-170 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/src/example_anthropic_provider_test.erl:168\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/src/example_openai_provider_test.erl:171\u0060 calls \u0060content\u0060 and \u0060examples/src/example_anthropic_provider_test.erl:187\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe947eca8e0c18c992a0394de4c7b8da95499c50077f0685348559e9b306bc35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:104-114 | examples/src/example_openai_provider_test.erl:109-119 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda45e68f510f1681c479aa1374b6dcde2b316698308816eabd7ad8e95df97d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:80-89 | examples/src/example_openai_provider_test.erl:84-93 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/src/example_anthropic_provider_test.erl:80\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":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f680b0386755b02cb7877b823a008db38e490b7db9d82d48982008df09f6c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:189-196 | examples/src/example_openai_provider_test.erl:175-182 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a556fbd711df78f3c2e59d037c5a5a52851454ba6dce32c732742c7cb140a2bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:272-286 | examples/src/example_openai_provider_test.erl:225-239 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/src/example_anthropic_provider_test.erl:271\u0060 calls \u0060format\u0060, \u0060thinking\u0060 and \u0060examples/src/example_openai_provider_test.erl:224\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e3ec5c11c10f10be93e4d8dabc2af33315561f02658ea73ccbee42321ea0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:152-158 | examples/src/example_openai_provider_test.erl:66-72 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10eee252a0a47aa61aa81527f6f841fde8fe4ece547200a373dc9ad55794802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): examples/src/example_anthropic_provider_test.erl:261-270 | examples/src/example_openai_provider_test.erl:215-224 \u2014 before extracting anything, compare \u0060examples/src/example_anthropic_provider_test.erl\u0060 and \u0060examples/src/example_openai_provider_test.erl\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/src/example_anthropic_provider_test.erl:271\u0060 calls \u0060format\u0060, \u0060thinking\u0060 and \u0060examples/src/example_openai_provider_test.erl:225\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/src/example_anthropic_provider_test.erl"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae262dbba804580c17d5ffadc3018d6c9433494d4353d9e11be935ad4c06a699"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: beamai_core: beamai_core: abstractness 0.15, instability 0.00, distance 0.85 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce2c08af2a274d4c50e7028212a093ae0bdfb2bfb9eef002ea1a1709519d264c"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency not covered by the lockfile: beamai_core: \u0060beamai_core\u0060 is declared in apps/beamai_llm/rebar.config but has no entry in the committed \u0060rebar.lock\u0060, so its version is resolved rather than pinned. Run \u0060rebar3 compile\u0060 and commit the updated lockfile."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cfe4423fe69c615d9b1313c30c958dc7baedd04376a40a20f3d0ac725642fcb2"}},{"ruleId":"D12","level":"warning","message":{"text":"Unbounded dependency requirement: beamai_core: Runtime dependency \u0060beamai_core\u0060 is declared \u0060\u0022../beamai_core\u0022\u0060 in apps/beamai_llm/rebar.config, which has no upper bound \u2014 every future MAJOR release of \u0060beamai_core\u0060 satisfies it, so the next unlocked resolve can pull a breaking change. Use \u0060~\u003E\u0060 (e.g. \u0060\u0022~\u003E 1.0\u0022\u0060) to bound the requirement to a compatible range."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"05b6bbcadc1523357bb3065b1ab4a0f9a3f7c39e1f84955c15e6a802b943df7b"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060rebar.config\u0060 makes this repository a deployable product (line 34)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rebar.config"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b016f0e8c2fc811d40df24f2d57a5b518b61eb8e3fa700b4b7aff08b91675f"}},{"ruleId":"D29","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":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"7070679db20129dbe75f385966a738be46ea377b4b9ec31e1c136200d056cc27"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"34d991f3a7b8480911904f3a9de2cdf1bb563ab42e29fe2c1ac53ae9a840c3ff"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"0adaa39c3d7fa67a2be6bf544aa130933ac4a86e20371d6eea98e68e5bf3e9d5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"41da3b38eadc98cd44bcd2ebfdc27a259674d81c298f216dd072742222ca634b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","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":"81f4351dba1fe7ac92701e351ee9e017c32b2138717905b6d8d92f1488c17e81"},"properties":{"dependency":{"package":"cowlib","version":"2.21.0","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"90ef8645d5d250a2cdd6c4ddecf434c2439a3eaf0b71b0b76b3e93b4d1bb9e49"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"cf8bb884b81aa57e291ea2a913453007727b0dd26c0305f46ee49b21da0ac28b"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060gun:open(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/http/beamai_http_pool.erl"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"f353209ca81ede44073c5714ed6f0b6a139fcd5e269ac3f81918d70aa1ad763a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/beamai_chat_model.erl"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd664d8ba5c995290f76edd2eef602e52827cf77511b816388b058a61d925398"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/beamai_chat_model.erl"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd21fa891c771863660845da1262a066e776f1cc364fff3c0c400025b55af6fe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/beamai_llm_http_client.erl"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa04a2723e5ed1daebd571580b14af422ebb0d4fa16f6fca83c8b2eae02831c3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/beamai_llm_http_client.erl"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb93b2a10689b7f1c0483def3ad5a28ce74bc78e8887dde9262cccbfb596abc8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/beamai_llm_retry.erl"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1eea4828a2579fd6106a540147f23e0fcb8069771248a39b92a9f69f026f568"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/providers/beamai_llm_provider_common.erl"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"172a0abba4c2352df4b1ef012d606d66bf2e3b9cd250c33ff1130df56d714d8b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/parser/beamai_parser_retry.erl"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e0c33a40af536e0b380716939d33d8008a6e32d0f8491b74dc798a64884bd3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/embedding/beamai_embedding_common.erl"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e45aa35b88e623df59cc4955d0e464ff4dbe308e81789eea07f4326975bfe9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_media.erl"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"814210aecd1c990df2efe214c94070be22056f82f1e5aec0ae88b91dff82abda"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_message_adapter.erl"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacd0f70b5e3cbd80aab81aab75cdd408040b75068b6b018668536fb3be293e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_llm/src/adapters/beamai_llm_response_parser.erl"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f69aeab965d9d8645cf255f1a70fedb7d6463532be3d8a595fd79f3b565853"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/utils/beamai_id.erl"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"137f1bc3aa0916680e1b1518a00cd5459d642af9a00efbcef6dbd3b6d07d4b4c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/utils/beamai_jsonrpc.erl"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a3b25bc8c49d6804360a86c62117174bba401ebf201c83054ab22e151cd381"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/utils/beamai_utils.erl"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d4fdb34da595e7ba162e09d2c42829cd8028104a757eea7f64b68e19e1a3ee"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/utils/beamai_utils.erl"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd15b33025056fb21ebce6a9304d038c504614468ca866139dd8474c25135978"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/http/beamai_http_pool.erl"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"f449e2a1360b3f9bb5976a466cb604c4c27a94603e4fb491073397804705d77a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_filters.erl"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"482aec5c0032905b44d5067e70fe74be8c8ce96c75982e40d2be74b45c7fb992"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_tool.erl"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"231ca8463ff7c71f359f3bc7555cd893dec94c2070ea78bb61f97abf34eb87a3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_tool_index_regex.erl"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c78cc4feb65c169c49930ccd1408b5384a0dec6b0803cf79fbe63525e055c4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_tool_index_regex.erl"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d595faf4ff54692b7ec097434e42b0c5484fa201363ef9ce6e93421b27af9a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_tool_index_regex.erl"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9801f1c95c680388d91f3ea88cb59e9e612969d379f60c4c8734d1994b440f87"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_core/src/core/beamai_tool_search.erl"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48d5d8cb47f12587b067c0573c6dc52487aadaa5029b9f41739a1f2ef067092"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/beamai_agent/src/beamai_agent_pause.erl"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f916754dad3579cf9478223ec2e207c9556f67d9c26b205c4e1496c588a3cd33"}}],"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-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-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"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":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"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":9,"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."]}]}