{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"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":"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":"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"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":"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":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"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":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"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":"ChatResponseMethods.stream_result_chunk_attributes (cyclomatic 59): ChatResponseMethods.stream_result_chunk_attributes has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a36ba39bb202c27835a98dfe14521608fd3b3ca0ab45838cb7b0ccbd14a19c3"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cyclomatic 45): ChatRequestMethods.chat_request_body has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9ddb98235aed44d2baaa679f8faa088a807a3ca167dd2991dc15191ea53da7"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cyclomatic 44): ChatResponseMethods.stream_result_chunk_attributes has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60f9c35eb2bc77a26695ba044e1c80d1e7f38c8faf7b4de79d084d0cdec6df1"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cyclomatic 42): ChatRequestMethods.chat_request_body has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_request_methods.rb"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d546e8d4459e74e2af465a802d283255dd971b93584a399476d8f6ed1e0aceeb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cyclomatic 39): ChatRequestMethods.chat_request_body has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_request_methods.rb"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"786e3f23c6415aa977d9d6eb97acdb1cd6a7e4a9cc36e33355f82670d7f790f6"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cyclomatic 35): ChatResponseMethods.stream_result_chunk_attributes has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1096da7ae2ebec66b36a234384ee0d9dab571d0562733ae833d936e7f4127cca"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cyclomatic 29): ChatResponseMethods.stream_result_chunk_attributes has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a7654b8b88c8861b1838ce830d466b8fb764959272f9cbbdc826f347e623a3"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cyclomatic 27): ChatResponseMethods.stream_result_chunk_attributes has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe30aa8d68727c2cd9ae2cb87a08154956acfb05eb31606ddf5417a1533251f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatResponseMethods.chat_result_attributes (cyclomatic 21): ChatResponseMethods.chat_result_attributes has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc2065ebe44ee6553013871146fe5495dd456e7cf469b0cbacb88b210d3a11f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cyclomatic 20): ChatRequestMethods.chat_request_body has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_request_methods.rb"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f79a4a6f5479f54a61357446699edb9c4a168acad789b9e6e29f7b87d1f40b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatResponseMethods.chat_result_attributes (cyclomatic 18): ChatResponseMethods.chat_result_attributes has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc7d4ea34d286b2a422083705c4adeccb4eadaadcdf39d0c677662fd8e417a5"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cyclomatic 17): ChatRequestMethods.chat_request_body has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6745ef5147c87a4cd17a80367d8ba4a532ea65d1d1b7c03ea64724d360a95f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatResponseMethods.chat_result_attributes (cyclomatic 17): ChatResponseMethods.chat_result_attributes has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc440bb1842b06db8376e1a26be2bc029eccf2cd5eaad48f90f422aa3d209c4c"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolCall.tool_parameters (cyclomatic 16): ToolCall.tool_parameters has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/message_content/tool_call.rb"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"037dd1d911ecef873f99c91495d95a527ca3b6d362ed75cb2e4671f4594ed8ef"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cognitive 114): ChatResponseMethods.stream_result_chunk_attributes has cognitive complexity 114 (threshold 15). Drivers by points: if/else 20 (75 pts), boolean chains 24, match/switch 3 (11 pts), error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 64). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9652c0167aa434c80186fabbb09d4cfb02568ab7893761eba26844a7803f866d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cognitive 100): ChatRequestMethods.chat_request_body has cognitive complexity 100 (threshold 15). Drivers by points: if/else 22 (69 pts), boolean chains 12, ternaries 2 (12 pts), loops 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 61). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e158f7201d28c7697ad581feca52211a1972e44d36b59105a8ee3ed1b83843"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cognitive 79): ChatResponseMethods.stream_result_chunk_attributes has cognitive complexity 79 (threshold 15). Drivers by points: if/else 19 (58 pts), boolean chains 9, ternaries 3 (9 pts), error handling 1 (2 pts), loops 1 (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2989d162b06a4d4e096e1fe5f4488e7e8d6774060f965dfba0a9d779a7bed20"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cognitive 62): ChatResponseMethods.stream_result_chunk_attributes has cognitive complexity 62 (threshold 15). Drivers by points: if/else 15 (47 pts), boolean chains 8, ternaries 1 (4 pts), error handling 1 (2 pts), loops 1 (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20e684d1bb1c1ea5441488f3e8ca5749d3921c594a21e535da13b796afb9b3a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cognitive 55): ChatRequestMethods.chat_request_body has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (35 pts), ternaries 3 (10 pts), boolean chains 9, match/switch 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_request_methods.rb"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f903903eeabe430890d69460f3786bd7e3c74e08ebbbd67f48dd5a481235ef"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cognitive 54): ChatResponseMethods.stream_result_chunk_attributes has cognitive complexity 54 (threshold 15). Drivers by points: if/else 12 (38 pts), boolean chains 10, ternaries 1 (5 pts), loops 1 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c692a5f96ecbb5bd00d2684837b0669b46d79aa567dcc823f2145c81dfe2023"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.stream_result_chunk_attributes (cognitive 47): ChatResponseMethods.stream_result_chunk_attributes has cognitive complexity 47 (threshold 15). Drivers by points: if/else 7 (22 pts), boolean chains 14, match/switch 3 (10 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59b5cc6b57f22b7ea5d5f83b704c0bcba5b220a137b2860faaf4082f39cd91f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cognitive 44): ChatRequestMethods.chat_request_body has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (34 pts), boolean chains 8, match/switch 1, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_request_methods.rb"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad188f0e5eb478f42dc15d439551ca81a5ea81a67f3f35512430509bd8fae38"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.chat_result_attributes (cognitive 22): ChatResponseMethods.chat_result_attributes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 2 (5 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b3d204a610fa1aa90f3cea0951eb179efb0ef6513a1b675b7c730e6387b45d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.chat_result_attributes (cognitive 22): ChatResponseMethods.chat_result_attributes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4766b610679f807841334799eb09ef85b10141376069efdcaf70209e4f9e000a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.chat_result_attributes (cognitive 21): ChatResponseMethods.chat_result_attributes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 3 (5 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"8317aab72373c21e30ea7c655efa8ec58e8b5a961352c930dd3336ea26c8aa81"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatResponseMethods.chat_result_attributes (cognitive 20): ChatResponseMethods.chat_result_attributes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14059867a4ec775e59e0a07bf32b0b1f8c0204334bdc18ff9eafb6a6b16ced4"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCall.tool_parameters (cognitive 18): ToolCall.tool_parameters has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 6, if/else 5, ternaries 3 (4 pts), error handling 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/message_content/tool_call.rb"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73d30d8199e2e579378debb0088c70418efbb6dc8cd0ad4da57db060f20917c"}},{"ruleId":"D2","level":"warning","message":{"text":"InstanceMethods.merge_choices! (cognitive 17): InstanceMethods.merge_choices! has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapter/instance_methods.rb"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"808a1cca01f9848a40a75c97f169aaafd76b6adc1a82572b651c889112a619c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatRequestMethods.chat_request_message_content_attributes (cognitive 17): ChatRequestMethods.chat_request_message_content_attributes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe52509de2d27403c114a11b86b5ab35bf5155ed7c0cd1efa9c4c4d91cae802"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatRequestMethods.chat_request_body (cognitive 17): ChatRequestMethods.chat_request_body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_request_methods.rb"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d3e80564eed88e48ca7f4f6a23216890e82c318f69a3c8369e95d749259e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (76 shared lines): lib/intelligence/adapters/generic/chat_response_methods.rb:73-161 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:73-183 \u2014 These two members are variants of one another: 76 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"386a9a358fcd91482d8e690509d8bd2e3ea065b6ecaa532922a82147105fc06e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/intelligence/adapters/anthropic/chat_request_methods.rb:192-229 | lib/intelligence/adapters/generic/chat_request_methods.rb:188-229 | lib/intelligence/adapters/google/chat_request_methods.rb:232-265 | lib/intelligence/adapters/open_ai/chat_request_methods.rb:187-223 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"1878fff2ada00ce8aa91ad3582f7067d68ed4e9bcf55f06ecc7994e89be7dbfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): lib/intelligence/adapters/generic/chat_request_methods.rb:46-120 | lib/intelligence/adapters/x_ai/chat_request_methods.rb:6-86 \u2014 These two members are one piece of code written twice and then edited apart: 75 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":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c80a0c28cfdedf21150b09e6a83c45c789395213bb47e32edc0013a71ba0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): lib/intelligence/adapters/generic/chat_response_methods.rb:6-50 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:6-68 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dd15dfb6059e6f7cfa89f66aed67fc43dbd48aefe66a7af0784b2c82a530a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): lib/intelligence/chat_request.rb:84-115 | lib/intelligence/chat_request.rb:121-159 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"lib/intelligence/chat_request.rb"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea623651d8e4fb8060f1623adc1433957152106d30ad5d29be0563155215850"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/intelligence/adapters/anthropic/chat_response_methods.rb:228-256 | lib/intelligence/adapters/google/chat_response_methods.rb:227-255 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85b87ac6ffd4bbc91cfd4683789b1896bddd416eeb650a873517a90c20e5959"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/intelligence/adapters/open_ai/chat_response_methods.rb:330-342 | lib/intelligence/adapter/instance_methods.rb:25-37 \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":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bff52258aeead0dae70ef61465a3f20f5d9b98681c790ce9ddf3409d0f59de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/intelligence/adapters/generic/chat_request_methods.rb:22-32 | lib/intelligence/adapters/open_ai/chat_request_methods.rb:9-17 \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":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f247d1e41521ab43f61d6e869bcf92fe2f774aca4feb7d8bbdc2d32feea8f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): lib/intelligence/adapters/generic/chat_request_methods.rb:48-106 | lib/intelligence/adapters/x_ai/chat_request_methods.rb:9-67 \u2014 \u0060lib/intelligence/adapters/generic/chat_request_methods.rb\u0060 and \u0060lib/intelligence/adapters/x_ai/chat_request_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 59 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/intelligence/adapters/generic/chat_request_methods.rb:48\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":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f0553a3938034903e089045892c2521eae26162994961aef14fc319c26029b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201336 lines \u00D7 2): lib/intelligence/adapters/generic/chat_response_methods.rb:18-50 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:33-68 \u2014 \u0060lib/intelligence/adapters/generic/chat_response_methods.rb\u0060 and \u0060lib/intelligence/adapters/x_ai/chat_response_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"601fd37d0436ddfcb422a26bc67914b5be6d5eea53396bc97154edb790c79dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): lib/intelligence/adapters/generic/chat_response_methods.rb:102-132 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:115-145 \u2014 \u0060lib/intelligence/adapters/generic/chat_response_methods.rb\u0060 and \u0060lib/intelligence/adapters/x_ai/chat_response_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec0416a8c10ba4e2c915363e38c7b0852532d6fc4bd3d75a5f7aa2fb961efb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/intelligence/adapters/generic/chat_response_methods.rb:187-215 | lib/intelligence/adapters/open_ai/chat_response_methods.rb:366-394 \u2014 \u0060lib/intelligence/adapters/generic/chat_response_methods.rb\u0060 and \u0060lib/intelligence/adapters/open_ai/chat_response_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 63 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/intelligence/adapters/generic/chat_response_methods.rb:187\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":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"efeda4cb910f384ec97f971a2756f3cd46914ec9f8bcd8cc4a176dfd23dd44b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): lib/intelligence/adapters/generic/chat_response_methods.rb:193-218 | lib/intelligence/adapters/google/chat_response_methods.rb:230-255 | lib/intelligence/adapters/open_ai/chat_response_methods.rb:372-397 \u2014 \u0060lib/intelligence/adapters/generic/chat_response_methods.rb\u0060 and \u0060lib/intelligence/adapters/open_ai/chat_response_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 63 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/intelligence/adapters/generic/chat_response_methods.rb:193\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":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba8b7962f46e8ccc3d54b520c4dc7ab02509f722195885af3dac856ffdfa996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/intelligence/adapters/generic/chat_response_methods.rb:138-159 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:160-181 \u2014 \u0060lib/intelligence/adapters/generic/chat_response_methods.rb\u0060 and \u0060lib/intelligence/adapters/x_ai/chat_response_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcf5a7e71448fba36a091ea8d2cac85f179ee2200877056b0da32834624f45a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): lib/intelligence/chat_request.rb:84-99 | lib/intelligence/chat_request.rb:121-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/chat_request.rb"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6dd24b2ba5869a12ce8f0e4b30c3bb0ff9c56eb68687e21d798810dd287e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lib/intelligence/adapters/generic/chat_response_methods.rb:80-95 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:80-96 \u2014 \u0060lib/intelligence/adapters/generic/chat_response_methods.rb\u0060 and \u0060lib/intelligence/adapters/x_ai/chat_response_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b3e7fd2a7f917a3df17d9583574624e8d9733056fb0820e1a151762af20493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): lib/intelligence/adapters/generic/chat_response_methods.rb:73-87 | lib/intelligence/adapters/google/chat_response_methods.rb:105-120 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:73-87 \u2014 \u0060lib/intelligence/adapters/generic/chat_response_methods.rb\u0060 and \u0060lib/intelligence/adapters/x_ai/chat_response_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95807ce1907a251fa0617c38a126cdf8f3bf4699ec14fce787741b4e740fe34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/intelligence/adapters/generic/chat_request_methods.rb:195-208 | lib/intelligence/adapters/open_ai/chat_request_methods.rb:194-207 \u2014 \u0060lib/intelligence/adapters/generic/chat_request_methods.rb\u0060 and \u0060lib/intelligence/adapters/open_ai/chat_request_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/intelligence/adapters/open_ai/chat_request_methods.rb:194\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":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b63c46782f2feee266ec336d8c3173b7c9fc58b43c07f61673375ac3b7d9cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/intelligence/adapters/generic/chat_request_methods.rb:188-200 | lib/intelligence/adapters/google/chat_request_methods.rb:232-244 | lib/intelligence/adapters/open_ai/chat_request_methods.rb:187-199 \u2014 \u0060lib/intelligence/adapters/generic/chat_request_methods.rb\u0060 and \u0060lib/intelligence/adapters/open_ai/chat_request_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdb0518198ebdd0043667493979c201d2006288c0ee6c7bd09220d5b1a54795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): lib/intelligence/adapters/anthropic/chat_request_methods.rb:198-209 | lib/intelligence/adapters/generic/chat_request_methods.rb:193-204 | lib/intelligence/adapters/google/chat_request_methods.rb:237-248 | lib/intelligence/adapters/open_ai/chat_request_methods.rb:192-203 \u2014 \u0060lib/intelligence/adapters/generic/chat_request_methods.rb\u0060 and \u0060lib/intelligence/adapters/open_ai/chat_request_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3734335e21b615a759b4baa5636bbedd04606242973e2580916695567d57376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/intelligence/adapters/x_ai/adapter.rb:69-78 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:188-197 \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":"lib/intelligence/adapters/x_ai/adapter.rb"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12df4a965d38d25ee30121afdb9b234fd8689ce15845233a3f071983988b973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/intelligence/adapters/generic/chat_response_methods.rb:82-88 | lib/intelligence/adapters/open_ai/chat_response_methods.rb:137-144 | lib/intelligence/adapters/x_ai/chat_response_methods.rb:82-88 \u2014 \u0060lib/intelligence/adapters/generic/chat_response_methods.rb\u0060 and \u0060lib/intelligence/adapters/open_ai/chat_response_methods.rb\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 63 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"50affe61cb33d0c913f081efc48b1cfe52d623e428a45e5b84ab7b5a24964af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/intelligence/adapters/anthropic/chat_request_methods.rb:235-245 | lib/intelligence/adapters/open_ai/chat_request_methods.rb:229-236 \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":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4aaaee3e1fda604570ad9e99264bb72f1854999f42e8a9821048eb62b933c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): examples/google_vision.rb:7-58 | examples/hyperbolic_builders.rb:6-39 | examples/hyperbolic_vision.rb:8-73 | examples/openai_builders.rb:6-39 | examples/openai_vision.rb:8-59 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/google_vision.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc9fbe5bb062973b090f56b80fca27969a7680158311537b64476325d75fec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): examples/anthropic_expanded_stream.rb:6-78 | examples/google_expanded.rb:6-65 \u2014 These two members are one piece of code written twice and then edited apart: 60 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/anthropic_expanded_stream.rb"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7cdad587d54b1fc178c628a50523ce3373c7b9cadc11e4d3507a110bd96049"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): examples/anthropic_minimal_stream.rb:8-43 | examples/openai_minimal_stream.rb:8-43 | examples/parallax_minimal_stream.rb:3-25 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/anthropic_minimal_stream.rb"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3d3ff55c0a47dd9d50338b5e6ea8e4bec7d69442fec34b33e13bb751337b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): examples/google_minimal.rb:7-30 | examples/ollama_minimal.rb:8-34 | examples/openai_minimal.rb:7-30 | examples/parallax_minimal.rb:2-19 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 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/google_minimal.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2cfba713c52a1686b952dac9894f5bf751d7e4842d1fc6726c79053302f142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): examples/anthropic_expanded_stream.rb:7-46 | examples/google_expanded_stream.rb:7-45 \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":"examples/anthropic_expanded_stream.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"da165ec4a232c8733a8d97d0f5a427631a2af36f8a773b702d39a022f443d92f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 3): examples/google_vision.rb:21-58 | examples/hyperbolic_vision.rb:35-73 | examples/openai_vision.rb:22-59 \u2014 before extracting anything, compare \u0060examples/google_vision.rb\u0060 and \u0060examples/openai_vision.rb\u0060 as WHOLE FILES: 83% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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/google_vision.rb"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a16c944e28aaadd78b443c4817ef72d094ec9717b4e14dca1f526163c7a98f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): examples/hyperbolic_builders.rb:7-39 | examples/openai_builders.rb:7-39 \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":"examples/hyperbolic_builders.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b02b3602d32df4c364cb81b7ce2304c504c1e1c1e37c0a6aea4925112000d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201326 lines \u00D7 4): examples/anthropic_minimal_stream.rb:18-43 | examples/google_expanded_stream.rb:38-63 | examples/openai_minimal_stream.rb:18-43 | examples/parallax_minimal_stream.rb:12-25 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/anthropic_minimal_stream.rb"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d73b4625a25d7c940f2ec916542b027a654c63fc76ea54561ed6c02ad7676c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): examples/anthropic_expanded_stream.rb:16-39 | examples/google_expanded.rb:14-37 | examples/google_expanded_stream.rb:15-38 \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":"examples/anthropic_expanded_stream.rb"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bad66f0274d469d34fb777ead0dcff1dd0d247427f1dd4c8946a5f1dbdca1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): examples/hyperbolic_builders.rb:6-24 | examples/hyperbolic_vision.rb:34-53 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/hyperbolic_builders.rb"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"066b11423c5b2c4b34f3cc63824a349bea3572dff9d4b210284491f8bde1bca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/openai_builders.rb:6-24 | examples/openai_vision.rb:21-39 \u2014 before extracting anything, compare \u0060examples/openai_builders.rb\u0060 and \u0060examples/openai_vision.rb\u0060 as WHOLE FILES: 97% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/openai_builders.rb"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ff79e6c27d24491824cec7c4462f93a8619abb7cec070deb75be75ffbd6420"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/anthropic_expanded_stream.rb: 0.0% line coverage (0/27)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/anthropic_expanded_stream.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a640cd3f8fcfc9af3c20d58bfb22ae5b8bca04ad4b2b49ddd14cfbe83cd508b8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/anthropic_minimal_stream.rb: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/anthropic_minimal_stream.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c59fbfe3caf0f494b452e7f36c0b4f2da51d3f39fdad5afd6a38c63cfaf810"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/google_builder.rb: 0.0% line coverage (0/19)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/google_builder.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3016d29c2054a58dd5e61854433f4ce8af15b8574a8a4edba0d477f741c4df74"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/google_expanded.rb: 0.0% line coverage (0/25)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/google_expanded.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce28d83717db4e7e157af7801881044d28803be16959d09a17ce747913a58b45"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/google_expanded_stream.rb: 0.0% line coverage (0/23)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/google_expanded_stream.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d927c0dacb7fa3a321aafcfc6c342fe547331db4900b0d8312de6da92d72fddf"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/google_minimal.rb: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/google_minimal.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae0b305aba8500a9e814cc6aaf3d26524aedce85b1fc9e77366a33dec3c6ee9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/google_vision.rb: 0.0% line coverage (0/30)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/google_vision.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcf5b813a9fc2b694d0c1b6a5c0c63e2a16a5ec90a4b8cb9ec8a1af478dbab6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/hyperbolic_builders.rb: 0.0% line coverage (0/16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/hyperbolic_builders.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"132af2a4870ab7b5e0e8c00d52913210eec6afdb10190ce03c3847929523f82a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/hyperbolic_vision.rb: 0.0% line coverage (0/34)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/hyperbolic_vision.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9354e50b169774e6b9c4b3c46d9bcee9b9f9e698d040164eda30262dc58c7a21"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/ollama_minimal.rb: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/ollama_minimal.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44eda3b3b0457414de490c1f7a1d7a7f5d0dcacf28ba573a2404b211b5612bb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/openai_builders.rb: 0.0% line coverage (0/16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/openai_builders.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d93006884f48e8b31900a8e547dc155be3d9c1e5f776127644e927ae1230c7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/openai_minimal.rb: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/openai_minimal.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ac44942aa6c9df076ec8503fa48f68b18509dee0e6b797312340858b0e5bc3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/openai_minimal_stream.rb: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/openai_minimal_stream.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02ce3affa23ab35f53f3e8b269d9d8ac1525473ea199397292d8b589fbb10a2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/openai_vision.rb: 0.0% line coverage (0/31)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/openai_vision.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28af00d72a0d9a1722e80d20f12d28a2f0d39afdd989ca376b6f77f12116b6a7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/parallax_minimal.rb: 0.0% line coverage (0/8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/parallax_minimal.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"439ccae226d0af623e25455bb78ce5cc4a1c93e01068c56f2adb1b227fa4a1b0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: examples/parallax_minimal_stream.rb: 0.0% line coverage (0/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/parallax_minimal_stream.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b898e05748c0fe561d88ebfcfabf8ad0888c6d2408afe2617a055b3b8eab8d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapter/instance_methods.rb: 15.7% line coverage (8/51)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapter/instance_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6b1ffa21ab9d535eedf0f873e0248f24a426e50c5ad35b2135bbee25db3e2e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/anthropic/adapter.rb: 25.8% line coverage (8/31)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/adapter.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"514f4e293e015c73d2188ca579722b0e9929915dc2076b3a5c9a04e54118b1bb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/anthropic/chat_request_methods.rb: 9.6% line coverage (11/115)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65ad8102de08360dd3c9312d46c7778b8d18140dcbcf1a88264f6ea6c0cb744"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/anthropic/chat_response_methods.rb: 10.3% line coverage (11/107)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97769787e5626e4adf783bea915a2dff0319b33e61db9dfa7e44048696c441c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/azure.rb: 17.0% line coverage (8/47)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/azure.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d5b15b605071c00e56bf3206e80de4ead7e9c718990fa505b2bcb5ee5d548d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/cerebras.rb: 25.0% line coverage (6/24)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/cerebras.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73317e78ad1271a4c5c335178683ebea79ba9b02c859712fe4fd99e401bb1b6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/generic/chat_request_methods.rb: 13.3% line coverage (14/105)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f654d738434aa3d46fc319bef036e4b88085fbd9bf10dceeb863470b24c6551"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/generic/chat_response_methods.rb: 8.9% line coverage (10/112)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39aaa38582f5969fea935f3849e540583014f012f83009bd0d4abb60d422a8fb"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/google/adapter.rb: 19.0% line coverage (8/42)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/adapter.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"521607c501d1a1ac36c516a1e71a12f2deeb36912a4ddea2d01bd2011bf67d6e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/google/chat_request_methods.rb: 12.1% line coverage (15/124)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc169130814efbd80940275130fdf6cb99ca687871c5f1e89be0f298d2d8eed"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/google/chat_response_methods.rb: 10.2% line coverage (12/118)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2effc05e845f33a8488fe3c659a1f8a16741b378ee0d9994eee668f446d30997"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/groq.rb: 18.8% line coverage (6/32)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/groq.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0382de258a3ef8e02d1fd162caa79d357209127f4d2ec0bf67c92a057ca9d21"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/hyperbolic.rb: 31.6% line coverage (6/19)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/hyperbolic.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6350955fc09190d608eda23a808095ae34e57f46ff33fe3c1e444deb81910679"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/mistral.rb: 24.0% line coverage (6/25)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/mistral.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb2e44e29418e8e81398efff7f1dd10bdb878bc7b5afdd3a7e7be4283dd7e14"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/ollama.rb: 0.0% line coverage (0/14)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/ollama.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"065a9383bb8ad11039dd2261e4a51dbc00a8b68bfb18358168e1223a6b2d98c1"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/open_ai/adapter.rb: 11.1% line coverage (9/81)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/adapter.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03db97c40886be41500b744d279917725d41390a79b1beaae7fbd610d604a6a9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/open_ai/chat_request_methods.rb: 10.4% line coverage (12/115)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59da995466a5759837bec867933bcd03b126a1afa591314de5a49e9e3dda3785"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/open_ai/chat_response_methods.rb: 7.3% line coverage (13/177)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"515a7489d75f47d9b24fdf8694351e3b165874371912349763b4d4bc159d8f94"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/open_ai_legacy.rb: 14.3% line coverage (6/42)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai_legacy.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25820abd143ea054fae232c3888e268877c24a3c93afe9ca3a9adbe9326dd87d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/open_router.rb: 25.0% line coverage (6/24)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_router.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cd30f2d11250c17bcf727ad09835bf77c71429ce66d44c481892a07b5f0719"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/parallax.rb: 0.0% line coverage (0/16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/parallax.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bcef6a47064541b31d78e82f1cc7990e72ded45a1a6156a84af074f479f89a"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/samba_nova.rb: 25.0% line coverage (7/28)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/samba_nova.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d2858b7f06b4abdc8a40a29c562857a8895fd79185e2eaabf18edc10d6fba3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/together_ai.rb: 22.6% line coverage (7/31)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/together_ai.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3096d7b91bb38631f5f6970a49af0c4c23e8c7bdf168001a82ba9ac1460e68d5"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/x_ai/adapter.rb: 20.4% line coverage (11/54)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/adapter.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b976e0dfef1a724cd745d00a525e720329209b992cdcef5e1f6ecb7768d79b8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/x_ai/chat_request_methods.rb: 10.0% line coverage (4/40)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f80403a0f69a3f60769a98a63d65e2733c7f17fc92c8abce60daaa8565697b6"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/adapters/x_ai/chat_response_methods.rb: 6.8% line coverage (7/103)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c075097fa3d002845b3013bf0f674d857b3624336141a1b9e4b69c1d2c001383"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/chat_request.rb: 16.9% line coverage (12/71)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/chat_request.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e43bb29a39d2013dcdc815277e41cf3c6ce0538ab570ae52ab2bcc87f7e8e2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/invalid_content_error.rb: 0.0% line coverage (0/2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/invalid_content_error.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9946ace64bf537b3a0099c872fb8555920601842474d6716b191c9c05e39d25e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/message_content/tool_call.rb: 29.6% line coverage (8/27)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/message_content/tool_call.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8eadb46a385fd4da529f0d375370ea061fc8ca52a09e1e2e96213d20ab7113"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/tool.rb: 31.0% line coverage (9/29)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/tool.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cffcba0cfc95584faace6f366b220cc579eea772a5cbe406fa1eb0b627bb900"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/intelligence/utilities/deep_dup.rb: 44.4% line coverage (4/9)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/utilities/deep_dup.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"431034978e52ab68c3769e132acf1c83857b5493f3cb2fbf13c59887e19015aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/intelligence/adapters/anthropic/chat_request_methods.rb: lib/intelligence/adapters/anthropic/chat_request_methods.rb changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in ChatRequestMethods.chat_request_body at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2025-09-07..2025-12-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272025-09-07 21:20:11 -08:00\u0027 --until=\u00272025-12-06 21:20:11 -08:00\u0027 --full-history --no-merges -- lib/intelligence/adapters/anthropic/chat_request_methods.rb\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"119a2978cb6d7418c2d5b4e15b70a00aa320d2d91eb21bb7b28c8df01f7063cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/intelligence/adapters/open_ai/chat_response_methods.rb: lib/intelligence/adapters/open_ai/chat_response_methods.rb changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in ChatResponseMethods.stream_result_chunk_attributes at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2025-09-07..2025-12-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272025-09-07 21:20:11 -08:00\u0027 --until=\u00272025-12-06 21:20:11 -08:00\u0027 --full-history --no-merges -- lib/intelligence/adapters/open_ai/chat_response_methods.rb\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6043f9f6eced613ce375584fe159479cd5819e67aabaacf38cee651293c3778"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/intelligence/adapters/anthropic/chat_response_methods.rb: lib/intelligence/adapters/anthropic/chat_response_methods.rb changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in ChatResponseMethods.stream_result_chunk_attributes at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2025-09-07..2025-12-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272025-09-07 21:20:11 -08:00\u0027 --until=\u00272025-12-06 21:20:11 -08:00\u0027 --full-history --no-merges -- lib/intelligence/adapters/anthropic/chat_response_methods.rb\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa592e6b2bdcf29ae07202b065f0c6420bdbb117bce54b487e0314b27ef8dc2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/intelligence/adapters/google/chat_response_methods.rb: lib/intelligence/adapters/google/chat_response_methods.rb changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ChatResponseMethods.stream_result_chunk_attributes at line 103. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2025-09-07..2025-12-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272025-09-07 21:20:11 -08:00\u0027 --until=\u00272025-12-06 21:20:11 -08:00\u0027 --full-history --no-merges -- lib/intelligence/adapters/google/chat_response_methods.rb\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ea4a5675dab8aa46729b9448e5850c7130d70288da6efee53f040d12119ec6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/intelligence/adapters/google/chat_request_methods.rb: lib/intelligence/adapters/google/chat_request_methods.rb changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in ChatRequestMethods.chat_request_body at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2025-09-07..2025-12-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272025-09-07 21:20:11 -08:00\u0027 --until=\u00272025-12-06 21:20:11 -08:00\u0027 --full-history --no-merges -- lib/intelligence/adapters/google/chat_request_methods.rb\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_request_methods.rb"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c86eb404361d38b7e291c19cb3584b213e2d3522fc5ab496fba2db56e0cffc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 19 of 19 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 19 of the 65 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: lib/intelligence/adapters/open_ai/chat_response_methods.rb, lib/intelligence/chat_request.rb, lib/intelligence/tool.rb, lib/intelligence/adapters/google/chat_response_methods.rb, lib/intelligence/adapters/anthropic/chat_request_methods.rb, lib/intelligence/adapters/google/chat_request_methods.rb, lib/intelligence/adapters/anthropic/chat_response_methods.rb, lib/intelligence/adapters/open_ai/chat_request_methods.rb (and 11 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c7f3f8a43f3a4016b3a15b7531582b118b0f2998d387091512fe697ef6490f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbcdefaee0a87aa7421146475f6995d03cb30ce95111fdf4e681866716613f0c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe80c734a932a6b671fbdfccb731bbac708e61c24b984606aa5296c48ed4973"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f5b2debe0e57334c26e684c24d9201b3443e6fdabf8ee7f68c8425389d8684"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b4200b1f674f9154a80346f0608f169051fa75ca42ffae652af4ea97e6a9a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55081a232d49a334f5f8870f6e5a3522acc78cf2926370e80a4f7fa3d7406f11"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0430f908b67bd2e7eb539906f8c4d2a154d85f524383430150b193bb3205ef4a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a375d9e84e83c8525702bbc90264a540eabd60b21ee74b35a829fa5528e5f93a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"950333490b9c50567280441d714918241b29c6845c6d55a2c82b77ffc603b0e9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/chat_request.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59dc1243db0bbd5b70aad6bb3a8885bdc8f83a6cf6d6f61e2233305c7d95627"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/tool.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a2c554d9cc51aa46660f1a8efb59c3122e4401a103ceb6a36abf96035c0339"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/adapter.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a375a4958319c7c3c53bb143acb894272d7ed4986448d81c9f37516b60e3237a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/message.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d32155b3e60381ffb6b288cc1cca41db30edfa8a4217e9ad118d6dd41d6be3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapter/instance_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"453e228cbc84982cb97194283ebac20f2dec942231ad6540907b6db04b5b707d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/chat_request_methods.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cabd3a93a125dcb61e866e88b70b98e4ba1f41cab54fb7f5acfefa6d451292"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/google/adapter.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5c87ff00e30fda44082734e853b0b5c5c64a713f92fb7315999ed70142821f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/azure.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4490a88745f16106f3e1972d62735c55c55c96dc8a31715a8ffd6374f588ea3d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/adapter.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ab440e716393bb28fc37c358127b778c63e8afaafd26ee3622142725feec06"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai_legacy.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6e694dd5ac6ab3ec08574dc769ecf53eb7f63c43715f61d2a7ea16d61bc49e"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add brakeman for Rails apps, otherwise \u0060semgrep --config=auto\u0060 or CodeQL\u0027s ruby pack \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060choices_delta[ data_choice_index ][ :message ][ :contents ] || []\u0060 appears character-identically in 2 files \u2014 lib/intelligence/adapters/generic/chat_response_methods.rb, lib/intelligence/adapters/x_ai/chat_response_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"34624dca3e4b8f408be8730a64865c7b8d6635f9d83722ae420ec90764bd0010"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data_choice_tool_call[ \u0027index\u0027 ] || data_choice_tool_call_index\u0060 appears character-identically in 2 files \u2014 lib/intelligence/adapters/generic/chat_response_methods.rb, lib/intelligence/adapters/x_ai/chat_response_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9aa5683cd45f55298870a4f4f4d547e34d957908666ef0e3ea8427ca4d05a93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060json_message[ :tool_calls ] \u0026\u0026 !json_message[ :tool_calls ].empty?\u0060 appears character-identically in 2 files \u2014 lib/intelligence/adapters/generic/chat_response_methods.rb, lib/intelligence/adapters/x_ai/chat_response_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"943d4f58370e785a92aae24ea3734fbb5bcbeae5531fbc05e0401c184e7d3dce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.empty? || !line.start_with?( \u0027data:\u0027 )\u0060 appears character-identically in 5 files \u2014 lib/intelligence/adapters/anthropic/chat_response_methods.rb, lib/intelligence/adapters/generic/chat_response_methods.rb, lib/intelligence/adapters/google/chat_response_methods.rb, lib/intelligence/adapters/open_ai/chat_response_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"10aef51d5019fc0653ced299c3cf7e3a1d6e924a7dfa8cdfdbbba5441d2aaadc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parsed_body \u0026\u0026 parsed_body.respond_to?( :[] )\u0060 appears character-identically in 3 files \u2014 lib/intelligence/adapters/generic/chat_response_methods.rb, lib/intelligence/adapters/x_ai/adapter.rb, lib/intelligence/adapters/x_ai/chat_response_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a81e0d1bb7cd2e0aabe622f0e3ea60c56e513ea243d8797ec072fa35ee2d67"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parsed_body[ :error ] || error_description\u0060 appears character-identically in 2 files \u2014 lib/intelligence/adapters/x_ai/adapter.rb, lib/intelligence/adapters/x_ai/chat_response_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/x_ai/adapter.rb"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bb4f0aad6da2eaf5d6a6ba8b694f833f7d8200ecfd177ec192464ec1484f12"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parsed_body[ :error ][ :message ] || error_description\u0060 appears character-identically in 3 files \u2014 lib/intelligence/adapters/anthropic/chat_response_methods.rb, lib/intelligence/adapters/generic/chat_response_methods.rb, lib/intelligence/adapters/open_ai/chat_response_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"47be9e2cf2a17f08ccacfc6774b47c8c55825262445be0eb12bdadaa3d59431d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response_json.nil? || response_json[ :choices ].nil?\u0060 appears character-identically in 2 files \u2014 lib/intelligence/adapters/generic/chat_response_methods.rb, lib/intelligence/adapters/x_ai/chat_response_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"293f0e59d278a34d2078002d62dc58edc5f34fbc2b0c403eabd43f830f7d0a99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result_message_content.empty? \u0026\u0026 tool_calls.empty?\u0060 appears character-identically in 2 files \u2014 lib/intelligence/adapters/generic/chat_request_methods.rb, lib/intelligence/adapters/x_ai/chat_request_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/generic/chat_request_methods.rb"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5f688fa3063f00b959dc6314cb1ca6db06aabbec82356b51517fb0525d1aaf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tools_attributes \u0026\u0026 tools_attributes.length \u003E 0\u0060 appears character-identically in 4 files \u2014 lib/intelligence/adapters/anthropic/chat_request_methods.rb, lib/intelligence/adapters/generic/chat_request_methods.rb, lib/intelligence/adapters/open_ai/chat_request_methods.rb, lib/intelligence/adapters/x_ai/chat_request_methods.rb. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/anthropic/chat_request_methods.rb"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c54faa41e0b97168dc551d7b6482539f8ce9c831037fee7145b06d2722cd01b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060deep_dup\u0060 is public and takes \u0060object\u0060 \u2014 which it walks as a \u0060Hash\u0060 \u2014 from its caller, and it calls itself at line 7 (\u0060self.deep_dup\u0060) with a piece of \u0060object\u0060 (and at line 10) \u2014 and nowhere in \u0060deep_dup\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends stack per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. A walk like this one raises \u0060SystemStackError\u0060 past about 3,800 levels on the main thread and about 1,000 on a \u0060Thread\u0060 \u2014 where Puma serves requests and Sidekiq runs jobs (MRI 3.3 and 4.0). \u0060JSON.parse\u0060 stops at 100 levels by default, but the other parsers a caller may use do not: \u0060YAML.safe_load\u0060 builds 1,400 levels from 2.8 KB, \u0060Oj.load\u0060 100,000, REXML 200,000, and \u0060JSON.load\u0060 on json 2.7 (Ruby 3.3\u0027s default) or \u0060JSON.parse(\u2026, max_nesting: false)\u0060 58,000. \u0060SystemStackError\u0060 is not a \u0060StandardError\u0060: a bare \u0060rescue\u0060 or \u0060rescue =\u003E e\u0060 around the call does not stop it. Thread a depth argument through \u0060deep_dup\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/utilities/deep_dup.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"765d5140e3ee204ad46de66f1ae07f9ca5319ed4f2f42c420d4f5310594e75a9"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060merge_options\u0060 is public and takes \u0060other_options\u0060 \u2014 which it walks as a \u0060Hash\u0060 \u2014 from its caller, and it calls itself at line 15 (\u0060self.merge_options\u0060) with a piece of \u0060other_options\u0060 \u2014 and nowhere in \u0060merge_options\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends stack per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. A walk like this one raises \u0060SystemStackError\u0060 past about 3,800 levels on the main thread and about 1,000 on a \u0060Thread\u0060 \u2014 where Puma serves requests and Sidekiq runs jobs (MRI 3.3 and 4.0). \u0060JSON.parse\u0060 stops at 100 levels by default, but the other parsers a caller may use do not: \u0060YAML.safe_load\u0060 builds 1,400 levels from 2.8 KB, \u0060Oj.load\u0060 100,000, REXML 200,000, and \u0060JSON.load\u0060 on json 2.7 (Ruby 3.3\u0027s default) or \u0060JSON.parse(\u2026, max_nesting: false)\u0060 58,000. \u0060SystemStackError\u0060 is not a \u0060StandardError\u0060: a bare \u0060rescue\u0060 or \u0060rescue =\u003E e\u0060 around the call does not stop it. Thread a depth argument through \u0060merge_options\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapter/instance_methods.rb"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f92e342470de2f571152c06c949f1cad125bee0804b0171dfce70d33abd3597"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/message_content.rb"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bbc19d2b14c48bb3aa2a3ddf859fefe77ce58b18bb5b7762eb17b34073eba0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/samba_nova.rb"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67942c556f929af38482736cbc64cd1b1a17622b3e4fd37956bf482141c5dcb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/x_ai/adapter.rb"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"396e132b105d02a77cfcd317489a422c1cc9bcabd678849fdde17cf551c948e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba570d0a14e2c9f5583e072454f9fded44006847f7d2d6c2f8fe4dfa1cc7ed34"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc85c7be927806d033353d1fbd9bea05fa009fd644fdcbb9ae1617a1cfefb2d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/x_ai/chat_response_methods.rb"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd4c047ea0a8de23e2b7144cf41bf92f410c91db18d9f10f88f88e4afd2b19d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e57457acf654f17860636f0ad317c8f26c897102c39e16df3bbbbe456cb42d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a7e622f3384b4e342aaacfa57e96fbf91e2104b2307f671265f49bd48e6934"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f336747e4ee2648ad7a3bc2ae7ad26d0038144eff42a3cec4e6a1e9809eebbe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf5f0fb802589b6e02acda8e404f5ed71dad87d701a1e94bc9356b6e307ee3f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/open_ai/chat_response_methods.rb"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f42039f3b9e44bb061d49555a9567dceca5c04f08048ecff717a36fb4569813"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eac6f77d454934a3cbb055966fa075096acbede6e7f43a281f46bcfb58d5b59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/google/chat_response_methods.rb"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5bec8ebf48ec3fc45395fdb9e025ff2a6bd1f9b08c021c3ab51a73c2a315d1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fa6c369f2c70217fa60fe80f07da95f4a768e84773b53eb453953a2d2f9f5e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6267d4dbc44fa72b790d0726e741a6bcf6af95302d71d0c08d65c794443014b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/generic/chat_response_methods.rb"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4163cef2ba38dd048071649f66b65e433621e7f13e1bd8af39b7b3d98e08bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4f3c450dda5f0bdaf48b8ee7b500af2c94c9a10af85e36e333620a98c03857"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapters/anthropic/chat_response_methods.rb"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c589c34f445d9ea757020d4921212d760447b34df5bc939fa13a9865d5c3bd8a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapter/module_methods.rb"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"278f9198080b0d52bdb674169e0e30fe037a2175dd8ce7032af0b0e43f145661"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060\u2026 rescue nil\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":"lib/intelligence/adapter/module_methods.rb"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"43400e0817e127e994fc1eafc6e5461fec4e2116631e75a6892e07e4b3f1c54a"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 65 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}}],"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-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-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/"}]}],"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":0,"secretScannerRunsExcluded":0}}}]}