{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXR1","name":"Runtime accessibility","shortDescription":{"text":"Runtime accessibility"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"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":"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":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"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":"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":"SessionIndexInfo.SessionIndexInfo (cyclomatic 79): SessionIndexInfo.SessionIndexInfo has cyclomatic complexity 79 (threshold 15). Of this number, 61 points are the body\u0027s own statements and 18 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SessionIndexInfo.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1af003d4ae87bb2c836980417a6944feedfb74f32409e0e6de1aeefebb2d4e"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._run_async_inner (cyclomatic 51): Agent._run_async_inner has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent 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":"rag_system/agent/loop.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"754e8ae2651f29a228f3b95dedbe647b3a98199c1c08729512f2def8a14817f5"}},{"ruleId":"D1","level":"warning","message":{"text":"RetrievalPipeline._rerank_stage (cyclomatic 47): RetrievalPipeline._rerank_stage has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"64faa22e0c9c9f5b83dbcdf916e6b28c5b71380bfd9aebbcb6352b178910909b"}},{"ruleId":"D1","level":"warning","message":{"text":"quick-chat.QuickChat (cyclomatic 39): quick-chat.QuickChat has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 4 of the 39 points are its own statements and the rest belongs to 10 function items inside it that branch (sendMessage, a function literal at line 119, a function literal at line 60, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/quick-chat.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9d971e7811ce56db21cc90d802166994c4bca6865c26316ac746b78f1fc7dd"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexingPipeline.run (cyclomatic 37): IndexingPipeline.run has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/indexing_pipeline.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a78a7becf990f9583b9cb62e2c2cda9da2a8b83a4851f6fb710a5fa11e7606c"}},{"ruleId":"D1","level":"warning","message":{"text":"RetrievalPipeline._first_stage (cyclomatic 35): RetrievalPipeline._first_stage 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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7f10ca3921ba21639025a28681887fcfa0a6a32b7e5aefcfed39baa1965471"}},{"ruleId":"D1","level":"warning","message":{"text":"run_eval.main (cyclomatic 34): run_eval.main has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/run_eval.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfafa8b4f5ecf82771d6de68484fbc1eb10cd953e4036fb170a90123877639b9"}},{"ruleId":"D1","level":"warning","message":{"text":"RetrievalPipeline._run_after_candidates (cyclomatic 34): RetrievalPipeline._run_after_candidates has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"7205bd467726f6357fbb550e7214bc09f1b6b357785b06d57fcc2dfed7297980"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatDatabase.inspect_and_populate_index_metadata (cyclomatic 33): ChatDatabase.inspect_and_populate_index_metadata has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/database.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"990c3f8e9a5396d45580e315a90c781cfb40e908bf31a0d3681ab5807370f8ad"}},{"ruleId":"D1","level":"warning","message":{"text":"run_eval.evaluate_corpus (cyclomatic 30): run_eval.evaluate_corpus has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/run_eval.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d9d0cce548bb8203e4c8e66444089b1f5026e25a3f38afadac5a580969a7c1"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiVectorRetriever.retrieve (cyclomatic 30): MultiVectorRetriever.retrieve has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/retrievers.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fd0de6586767e06bdad4e7f98be65af6e05ac28f903bba082e14dc5dbdf8c9"}},{"ruleId":"D1","level":"warning","message":{"text":"VectorIndexer.index (cyclomatic 29): VectorIndexer.index 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":"rag_system/indexing/embedders.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"136cd193c68b28bbde4153209a1bc7804fedd4caa30ce012e3ae6a386a984c64"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatAPI.streamSessionMessage (cyclomatic 29): ChatAPI.streamSessionMessage has cyclomatic complexity 29 (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":"src/lib/api.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"d895723ac42903d9ffd89a36dcf0920120ecd2e10a54901155642502b4bae8d3"}},{"ruleId":"D1","level":"warning","message":{"text":"verify_rfc_goldset.main (cyclomatic 27): verify_rfc_goldset.main 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":"eval/verify_rfc_goldset.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"607c57409e62eccbe6dd3e487475ce98d84b6b0a1505564813002e40252c8e7d"}},{"ruleId":"D1","level":"warning","message":{"text":"demo.Demo (cyclomatic 26): demo.Demo has cyclomatic complexity 26 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 11 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/demo.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe126a0e88bf2d9bb8a9763fa3dd74f48427daced8c0b5e09ace85f8a17b329c"}},{"ruleId":"D1","level":"warning","message":{"text":"conversation-page.StructuredMessageBlock (cyclomatic 26): conversation-page.StructuredMessageBlock has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 143, 130, 126, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca74fb54efe473337e0895d7d963f5e130f1e5e94fd9678a82f4e1a1d3d17b8"}},{"ruleId":"D1","level":"warning","message":{"text":"session-chat.SessionChat::sendMessage (cyclomatic 25): session-chat.SessionChat::sendMessage has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (session-chat.SessionChat) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce4639e3b99b777748698760b09730688cbe6e4c2f7c64a1cc1bf991cbc6f1c"}},{"ruleId":"D1","level":"warning","message":{"text":"session-sidebar.SessionSidebar (cyclomatic 25): session-sidebar.SessionSidebar has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to 9 function items inside it that branch (handleRenameSession, handleDeleteSession, formatDate, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-sidebar.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a326038acb3f417acb74e8d929192b492f2bff3e4f5c0949618d0ebb3b1ab6"}},{"ruleId":"D1","level":"warning","message":{"text":"verify_crossref_goldset.main (cyclomatic 24): verify_crossref_goldset.main has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/verify_crossref_goldset.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb5ec8720345a0f549cb453ea10cb723343e14e4631d5930ba3828ca1832d0a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatHandler.do_POST (cyclomatic 23): ChatHandler.do_POST has cyclomatic complexity 23 (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":"backend/server.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c043c0335ea19e10f30cbe9f8f16c39637b159237ea79b36030af2fe2a1bdc5"}},{"ruleId":"D1","level":"warning","message":{"text":"RetrievalPipeline._retrieve_candidates_filtered (cyclomatic 20): RetrievalPipeline._retrieve_candidates_filtered 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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e8493d8af9e2e7811656cad35cab497fe5765a6d36d72d8703cacf487fabcc"}},{"ruleId":"D1","level":"warning","message":{"text":"document_fetch.fetch_document (cyclomatic 20): document_fetch.fetch_document has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/document_fetch.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8b18153b3f8cda65304ef92cff2344a124bb0e746987be85e8192d840a9704"}},{"ruleId":"D1","level":"warning","message":{"text":"RetrievalPipeline._crossref_hop (cyclomatic 19): RetrievalPipeline._crossref_hop has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffcc5c8f87eff03007244144aa15358653213d5303bcec83f3cd719bbc861c1"}},{"ruleId":"D1","level":"warning","message":{"text":"validate_judge_hard.main (cyclomatic 18): validate_judge_hard.main 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":"eval/validate_judge_hard.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9931348e1b0c731620456417c5de53ec2635e7c50c441a233bdace313d1af3"}},{"ruleId":"D1","level":"warning","message":{"text":"RetrievalPipeline._search_within_documents (cyclomatic 18): RetrievalPipeline._search_within_documents has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"a067a93f33b687e3773b895209f24e7fb2b98114e78749965bc2fab78e5e49db"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-settings-modal.ChatSettingsModal (cyclomatic 18): chat-settings-modal.ChatSettingsModal has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 5 function items inside it that branch (renderOption, displayName, a function literal at line 59, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-settings-modal.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3068536125a3f0cad07db7e7406f35dd8ee903265a6979500600f9dc3379b7d9"}},{"ruleId":"D1","level":"warning","message":{"text":"session-chat.SessionChat (cyclomatic 18): session-chat.SessionChat 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. This shape REPEATS in the file: one other method here (session-chat.SessionChat::sendMessage) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"859c0764b46f94abbbce89040faf4dbd497301ae8e722f0496390fdbf7a53033"}},{"ruleId":"D1","level":"warning","message":{"text":"DoclingChunker.chunk_document (cyclomatic 17): DoclingChunker.chunk_document 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":"rag_system/ingestion/docling_chunker.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac003f6282c6317d1bda7df92bbf071a753963e31663763c2abb5b924efb127"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexingPipeline.__init__ (cyclomatic 17): IndexingPipeline.__init__ 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":"rag_system/pipelines/indexing_pipeline.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"630f866b86a4f65d2ccc6bba04a1f755df941f3db7dd22e0698a98308d5e19ae"}},{"ruleId":"D1","level":"warning","message":{"text":"RetrievalPipeline._budget_synthesis_context (cyclomatic 17): RetrievalPipeline._budget_synthesis_context 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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c02393ee6e2ec405ba5ab4577a02d3a76c217da3afdc0afa48dc193c46fa4a5"}},{"ruleId":"D1","level":"warning","message":{"text":"LateChunkEncoder.encode (cyclomatic 16): LateChunkEncoder.encode has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/latechunk.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7936a5346a32ad9fd8ddf0ed47adebb9f886d1df8164c93bf1491565ee8656bc"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexPicker.IndexPicker (cyclomatic 16): IndexPicker.IndexPicker has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexPicker.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"949d06cecb82d25ce3e5fef208d2f27e95989fc485038d1e445959d2185a486c"}},{"ruleId":"D1","level":"warning","message":{"text":"conversation-page.ConversationPage (cyclomatic 16): conversation-page.ConversationPage has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 366, a function literal at line 348, a function literal at line 317, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dedd3c6066890acff851549ebbc4e36557410e682a4b7a25ba3b6825a4ab55d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatAPI.sendSessionMessage (cyclomatic 16): ChatAPI.sendSessionMessage has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f2ac7a203f572e7683f1f0ea9f6a3d779ceb9f4c1dcef6ad83e55b6b772324"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatAPI.streamChatMessage (cyclomatic 16): ChatAPI.streamChatMessage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee30d32248bcd31a2131b2dbe764bb7da08c153c43d7543529966e2a89f7e5d7"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._run_async_inner (cognitive 165): Agent._run_async_inner has cognitive complexity 165 (threshold 15). Drivers by points: if/else 43 (119 pts), ternaries 8 (24 pts), loops 2 (11 pts), error handling 1 (6 pts), boolean chains 5 (nesting depth added 106). 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":"rag_system/agent/loop.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3e57cd14dfb3319c0b266b597103d56a2883f19843e2c2db8863070cc258fd"}},{"ruleId":"D2","level":"warning","message":{"text":"RetrievalPipeline._rerank_stage (cognitive 82): RetrievalPipeline._rerank_stage has cognitive complexity 82 (threshold 15). Drivers by points: if/else 26 (52 pts), boolean chains 14, loops 4 (8 pts), error handling 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent 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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"e545adee50f10b7d25227e962391df50c58115104857000d7b5c37f4f2a6d2c1"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexingPipeline.run (cognitive 81): IndexingPipeline.run has cognitive complexity 81 (threshold 15). Drivers by points: if/else 23 (46 pts), error handling 6 (17 pts), loops 5 (12 pts), boolean chains 6 (nesting depth added 41). To reduce it, split the body into named stages: move each independent 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":"rag_system/pipelines/indexing_pipeline.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"103430f0a0856c300808a73f5cb0b38ef29f4633cc2ca97a760f14a602de40be"}},{"ruleId":"D2","level":"warning","message":{"text":"RetrievalPipeline._run_after_candidates (cognitive 72): RetrievalPipeline._run_after_candidates has cognitive complexity 72 (threshold 15). Drivers by points: if/else 24 (51 pts), loops 6 (12 pts), boolean chains 6, error handling 1 (3 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f2eea2322c38d77973e08c80702c619daf54d670ce867afb75eb876a035eca"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionIndexInfo.SessionIndexInfo (cognitive 64): SessionIndexInfo.SessionIndexInfo has cognitive complexity 64 (threshold 15). Drivers by points: boolean chains 53, if/else 9 (10 pts), error handling 1 (nesting depth added 1). Of this number, 45 points are the body\u0027s own statements and 19 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SessionIndexInfo.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"601ffa47c1b09a08f4096542f489305c54dc14567050406a56f39b880eec52f6"}},{"ruleId":"D2","level":"warning","message":{"text":"RetrievalPipeline._first_stage (cognitive 58): RetrievalPipeline._first_stage has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (37 pts), boolean chains 9, error handling 2 (6 pts), loops 2 (4 pts), ternaries 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d36e6370886be744fcec002ba0afed8cb7945260803f90d1ec80c5a32147bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatDatabase.inspect_and_populate_index_metadata (cognitive 54): ChatDatabase.inspect_and_populate_index_metadata has cognitive complexity 54 (threshold 15). Drivers by points: if/else 23 (38 pts), error handling 7 (10 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/database.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6ffd9cf88a4a4c8ff7694a540b0a027ebff2ef9c60ec5ec253672ee150c288"}},{"ruleId":"D2","level":"warning","message":{"text":"run_eval.evaluate_corpus (cognitive 52): run_eval.evaluate_corpus has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (32 pts), ternaries 5 (10 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/run_eval.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce3a11ae1e8b9e82cc2cc065bb4c1ddda5f82b6c04d837d6da64d2415db9d28"}},{"ruleId":"D2","level":"warning","message":{"text":"run_eval.main (cognitive 49): run_eval.main has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 10 (15 pts), boolean chains 8, loops 3 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/run_eval.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"207d45307ee2b5bd105ef12506064f2b28a266c0f5215ee34da48d3996e746ee"}},{"ruleId":"D2","level":"warning","message":{"text":"VectorIndexer.index (cognitive 48): VectorIndexer.index has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 4, error handling 2 (3 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/embedders.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"32371f2cfde70fae9db680ebffd392bf02e8f5792e3cd5ebfe551bd5460bb5a1"}},{"ruleId":"D2","level":"warning","message":{"text":"verify_rfc_goldset.main (cognitive 47): verify_rfc_goldset.main has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (35 pts), loops 5 (7 pts), boolean chains 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/verify_rfc_goldset.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51a0926f0644fe3e398e423cf2b079ead278fb22ea26839a560aec84380c8eb"}},{"ruleId":"D2","level":"warning","message":{"text":"verify_crossref_goldset.main (cognitive 45): verify_crossref_goldset.main has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (33 pts), loops 5 (7 pts), boolean chains 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/verify_crossref_goldset.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e258e2ecb04ff5cc0d9f4985cbff5c5b333aa137d7e2eb2c1f992b088f522d4"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRecursiveChunker._split_text (cognitive 45): MarkdownRecursiveChunker._split_text has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 5 (11 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ingestion/chunking.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f1dce7f0af5035f6ef46ccee825139a75e47a14bb2a48449ad3c804b29ab4c"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexCreator.select_documents (cognitive 43): IndexCreator.select_documents has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 4 (14 pts) (nesting depth added 26). 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":"create_index_script.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb9275eb2e5631c4dffe727f8d35010f988b2aca795ada072ae0c50b48566f9"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiVectorRetriever.retrieve (cognitive 43): MultiVectorRetriever.retrieve has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (21 pts), error handling 4 (7 pts), ternaries 2 (6 pts), boolean chains 5, loops 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/retrievers.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f20cc41947feb238861214fea59d9f9b161b9183f896e9b5029b4f237f1104"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatAPI.streamSessionMessage (cognitive 41): ChatAPI.streamSessionMessage has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (25 pts), error handling 3 (9 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3ef1c1fb22bab77af3547c01b66b3ee2100bfc09398b56ac01492665bc3868"}},{"ruleId":"D2","level":"warning","message":{"text":"session-chat.SessionChat::sendMessage (cognitive 35): session-chat.SessionChat::sendMessage has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (18 pts), error handling 4 (7 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (session-chat.SessionChat) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a650cee3735ddf160c0f37dfdbaf3e1c2d6bac5222739f8209ede3d5ace64182"}},{"ruleId":"D2","level":"warning","message":{"text":"run_eval.by_dimension (cognitive 30): run_eval.by_dimension has cognitive complexity 30 (threshold 15). Drivers by points: if/else 4 (16 pts), loops 4 (7 pts), ternaries 2 (7 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/run_eval.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b853d97292efcbeb0274115e8a969f301542f2d5d570588f3991e00fa7259e"}},{"ruleId":"D2","level":"warning","message":{"text":"SentencePruner.prune_documents (cognitive 29): SentencePruner.prune_documents has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 6 (10 pts), error handling 2 (4 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/rerankers/sentence_pruner.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"566483b62f66680e6a3d9f89cf3e4479ecf10addd08a648fa05c898d264412da"}},{"ruleId":"D2","level":"warning","message":{"text":"conversation-page.StructuredMessageBlock (cognitive 29): conversation-page.StructuredMessageBlock has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (16 pts), boolean chains 9, if/else 2 (3 pts), loops 1 (nesting depth added 11). Most of this is not in the body itself: 2 of the 29 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 143, 130, 126, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"869b65a05c1e6ae23237bf32e919fe3218f2d7742449bb9769f328b7e3941cf1"}},{"ruleId":"D2","level":"warning","message":{"text":"session-sidebar.SessionSidebar (cognitive 29): session-sidebar.SessionSidebar has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 8, boolean chains 7, error handling 3 (nesting depth added 5). Most of this is not in the body itself: 5 of the 29 points are its own statements and the rest belongs to 9 function items inside it that branch (handleRenameSession, handleDeleteSession, formatDate, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-sidebar.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"659d561d0358d363edc6ae0ce76b64006b5ab417822aa98d2343be93ed40cee4"}},{"ruleId":"D2","level":"warning","message":{"text":"validate_judge_hard.main (cognitive 28): validate_judge_hard.main has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 9 (16 pts), if/else 4 (6 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/validate_judge_hard.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be54cde3884a96257ea0a8e40048b66995faeb91b6f4d3926695d7033d070a6"}},{"ruleId":"D2","level":"warning","message":{"text":"demo.Demo (cognitive 28): demo.Demo has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 8, ternaries 4 (7 pts), error handling 1 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 13 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/demo.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d6453273f35e7288175a03a514e33e3cd7fa122a8a26a4687730426e678f58"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatAPI.streamChatMessage (cognitive 28): ChatAPI.streamChatMessage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (9 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c846128a095355ae0182de1878d375ee029ecb6f83933874d2c7a8823cae6fa"}},{"ruleId":"D2","level":"warning","message":{"text":"LateChunkEncoder.encode (cognitive 26): LateChunkEncoder.encode has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/latechunk.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2621889a934d7f3064fbbe360f610cb9e468d8287870a930dcd62e7dc956c4"}},{"ruleId":"D2","level":"warning","message":{"text":"DoclingChunker.chunk_document (cognitive 26): DoclingChunker.chunk_document has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 4, loops 2, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ingestion/docling_chunker.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6d3fcd98d835f4a052b8cd422aabce3d2ee600347e0b785323df36c1160de9"}},{"ruleId":"D2","level":"warning","message":{"text":"RetrievalPipeline._crossref_hop (cognitive 26): RetrievalPipeline._crossref_hop has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 6, loops 4 (6 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"416819d35c404a4b4315088677b5825c8ba6675db5b695496703b5690c9c3f8d"}},{"ruleId":"D2","level":"warning","message":{"text":"document_fetch.fetch_document (cognitive 25): document_fetch.fetch_document has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, error handling 3 (4 pts), loops 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/document_fetch.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"49362cb8b8d3463200ddbc5b2da973c430b2f99116268251697f6529bca5fc2a"}},{"ruleId":"D2","level":"warning","message":{"text":"filters._compile_field (cognitive 25): filters._compile_field has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/filters.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45a6b26239388977a9ed7edc78943a159b9c75144b1053aba6ccbd218ab018b"}},{"ruleId":"D2","level":"warning","message":{"text":"ask_folder.ask_folder (cognitive 24): ask_folder.ask_folder has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 3 (5 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ask_folder.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f5b182b2a259b8e87815b199b3c5a8a3699a849f9fb780b8e9d9f126c119f8"}},{"ruleId":"D2","level":"warning","message":{"text":"RetrievalPipeline._retrieve_candidates_filtered (cognitive 24): RetrievalPipeline._retrieve_candidates_filtered has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe8410c6eaf040d0db7e72161fee1f1c190056326b6ba7921667a2946f1dc9b"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-input.ChatInput (cognitive 24): chat-input.ChatInput has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (9 pts), ternaries 2, error handling 1, loops 1 (nesting depth added 1). Most of this is not in the body itself: 8 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (handleFileChange, handleSubmit, handleKeyDown, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-input.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e5c7ec62e3eed4c32d4650246d6fd83259e5acc6527c3c33fa4f067903e0c2"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent.load_overviews_for_indexes (cognitive 23): Agent.load_overviews_for_indexes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (7 pts), loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/agent/loop.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab90d4a35f26afb5d04f305047615e08643c748d1abb0d3d43c57f8fa792e262"}},{"ruleId":"D2","level":"warning","message":{"text":"RetrievalPipeline._budget_synthesis_context (cognitive 22): RetrievalPipeline._budget_synthesis_context has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, ternaries 1 (3 pts), error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c72e18079537f5d78f67dd105df3450b12c68906a0ad0affa7ddb1925fbd0e6"}},{"ruleId":"D2","level":"warning","message":{"text":"RetrievalPipeline._search_within_documents (cognitive 22): RetrievalPipeline._search_within_documents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 4 (6 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c242f3956bf7509ef71c868f3da0c21f2acf01d273e18f44c24f56a0cdb0cb7"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexingPipeline.__init__ (cognitive 21): IndexingPipeline.__init__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, error handling 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/indexing_pipeline.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"559ca9684d2f80996dbfbaa7e9c6692a2f5b8fdd42e83269f772cfc0edb39bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceManager.start_all (cognitive 21): ServiceManager.start_all has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b5a466158372898b18999cd9a5cee7597a3a589802b77920fc3a91693f9720"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossRefExtractor.extract (cognitive 20): CrossRefExtractor.extract has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (5 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/crossref.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbd8c266e51d4b9efa4be831077279f221f0168755c1788af21a03dd4e6278f"}},{"ruleId":"D2","level":"warning","message":{"text":"crossref.annotate_chunks (cognitive 20): crossref.annotate_chunks has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/crossref.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"8464829595f3c89f6a60882d941dcd9c9678227e907b92855a66a41955140f1c"}},{"ruleId":"D2","level":"warning","message":{"text":"DoclingChunker.split_markdown (cognitive 20): DoclingChunker.split_markdown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ingestion/docling_chunker.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"269bc976ed5736de20e2ecde5633022837171bd07f35e7b1029360e9b2845702"}},{"ruleId":"D2","level":"warning","message":{"text":"document_converter.build_ocr_options (cognitive 19): document_converter.build_ocr_options has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ingestion/document_converter.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34cb6211867e2f1dabc51bcbef16d9254a3b21bd2b8e20f7568c226c18c35e1"}},{"ruleId":"D2","level":"warning","message":{"text":"AdvancedRagApiHandler.handle_index (cognitive 18): AdvancedRagApiHandler.handle_index has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), error handling 3 (5 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/api_server.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f43578cdf26b974d8ad4cdab3bd438c82feb31effa60be8b36e4316e82a558"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHandler.handle_session_chat (cognitive 17): ChatHandler.handle_session_chat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 5 (6 pts), ternaries 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":"backend/server.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b73c256beda4d7699af760f3b29a37d97acd6b19821247a0bc7ce83458c4492"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryDecomposer._decompose_multi_turn (cognitive 17): QueryDecomposer._decompose_multi_turn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (5 pts), ternaries 2 (5 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/query_transformer.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8575fcd4a315ca0423c2e6099d12add67ae13f4d8368c0f4fcd9fc54ec512ad5"}},{"ruleId":"D2","level":"warning","message":{"text":"system_health_check.check_configurations (cognitive 17): system_health_check.check_configurations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system_health_check.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d365e38d07f240095c7c9f7374b5d3b7c2fe886dc68a1ce7adf3ec59151d20"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaClient.chat_stream (cognitive 16): OllamaClient.chat_stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ollama_client.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f059a3493455549f319702d3b1595ef9d79fe87d3192430abf140adf4b7185e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHandler.handle_chat_stream (cognitive 16): ChatHandler.handle_chat_stream has cognitive complexity 16 (threshold 15). Drivers by points: error handling 8 (9 pts), if/else 4, ternaries 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1e4e67534f160649ebc626e8f91ec86cd79a78f7ad15960e0469b6616fa06e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHandler.parse_multipart_files (cognitive 16): ChatHandler.parse_multipart_files has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"404eea02c70e56a0c9ea930dd3c5f633aaace37883f60f52ec379bbbdbe37b65"}},{"ruleId":"D2","level":"warning","message":{"text":"verify_facts.main (cognitive 16): verify_facts.main has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 2 (4 pts), loops 2 (3 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":"eval/corpora/verify_facts.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe17ea5b88291c058dcedc46044d4ff9d9f1dbdca38050aab948df10a09ef26"}},{"ruleId":"D2","level":"warning","message":{"text":"quick-chat.QuickChat::sendMessage (cognitive 16): quick-chat.QuickChat::sendMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 3 (5 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/quick-chat.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ce8be478f0c7118e44a86fe6aadb0f5f819e73229ca8515c645f6f870b2790"}},{"ruleId":"D2","level":"warning","message":{"text":"session-chat.SessionChat (cognitive 16): session-chat.SessionChat has cognitive complexity 16 (threshold 15). Drivers by points: if/else 73 (150 pts), boolean chains 41, ternaries 15 (37 pts), error handling 10 (15 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 106). 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. This shape REPEATS in the file: one other method here (session-chat.SessionChat::sendMessage) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5d44d8a0ae602960e56b2bdf23c111ddcc65c7a1f19616eeffee3b57cdd46c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-chat.SessionChat: FunctionTooLong \u2014 SessionChat runs 533 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 433 over it, 5.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"67434db6aa47344f490b4cdb82dc6fac721f2208ffcb14410676bb27015a2040"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionIndexInfo.SessionIndexInfo: FunctionTooLong \u2014 SessionIndexInfo runs 275 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 175 over it, 2.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SessionIndexInfo.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e6a6e33764f49da30410c79ef13f324ada13d517629422c2795541d0967251"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pipelines/retrieval_pipeline.py: FileTooLong \u2014 1014 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 514 over it, 2.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0fcb5d27ad76a30129e2efe288822888aa02ef473dd778b209b2594b413a0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/server.py: FileTooLong \u2014 926 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 426 over it, 1.85\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e4bc401e63a34df3e2e72e0f17aa99e375ba390e55a70738a6bcbb84e5cca7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: IndexForm.IndexForm: FunctionTooLong \u2014 IndexForm runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexForm.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6289500b9feacf4e7f058c234a5a0892ed0bcb778deacea43195e0b1faf6bc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat-input.ChatInput: FunctionTooLong \u2014 ChatInput runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-input.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ea9684a7704b6b6cb65ab2d5fe46277932612e74c462a98d308566c204a035"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-sidebar.SessionSidebar: FunctionTooLong \u2014 SessionSidebar runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-sidebar.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38279ac3fac8af6a3f7fdaf623bcfa3e695afb5ab3f03875fac8826b35e1ebc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RetrievalPipeline: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb509320769143d35b7a43067792fe64865186f6601160726ad87605def00c79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eval/run_eval.py: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 205 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/run_eval.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8d94759f90e75bb6f33a30c74f1df91334e31fc272b820cbd6b1cc8ec7aa45"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: demo.Demo: FunctionTooLong \u2014 Demo runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/demo.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"895b698956e438564b53e8a29994bc60d7ab60d0ceed679a1d137bfdef46d19e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat-settings-modal.ChatSettingsModal: FunctionTooLong \u2014 ChatSettingsModal runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-settings-modal.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"486f730aa0d29c2f8b33edd1250006651b7b7bb57d1740cb7496f75c7d55dbfb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: quick-chat.QuickChat: FunctionTooLong \u2014 QuickChat runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/quick-chat.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f394302c1edcf78846b4764e730b824bd45b5c7edee1b6fcef72eb3a3fbe6dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/session-chat.tsx: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: SessionChat (53-803). The bar is 500 significant lines; this is 72 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"363050c8b00dc261f914e9ca72feb01d4bfdb892cb9fde0fd1cfeca5d481fdd2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatHandler: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ca21d8c765622c194bc66e0dcadf2bc07015e15c13db2304f7c52c95e5534b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./run_system.py: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1 over it, 1.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dec8ae5110bfb513bff079575862ce9a29ffb3b633199e765358275d0f13583"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (67 shared lines): eval/verify_crossref_goldset.py:56-134 | eval/verify_rfc_goldset.py:68-159 \u2014 These two members are variants of one another: 67 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":"eval/verify_crossref_goldset.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39a2c4ca60e3b02b4ee147c02ea27f1d36958cea3dd537a939e080d22323319"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): rag_system/utils/ollama_client.py:237-293 | rag_system/utils/ollama_client.py:310-348 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"rag_system/utils/ollama_client.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acb0477cdc468897703639dc8b146c90089ae7e0a38b01fe87638de72660039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): backend/database.py:383-396 | backend/database.py:399-412 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/database.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9745905fa3dc018f1857bf0333be6fd612b8c745fd348066f39d72f19d3226"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): backend/database.py:142-155 | backend/database.py:369-380 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/database.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"342c8f20ca23d365809f7aa2eb5d8ea96dfd149179af1c4f761634a6ffce7b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): backend/server.py:776-784 | backend/server.py:1138-1146 \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":"backend/server.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca5a410fa88c31fba74258ba66b2c41d345f7a62936be95877c1ae00e6c99bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): backend/database.py:10-21 | system_health_check.py:13-22 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/database.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"82df0cc8598c568c99fec2aaf0ec9f88c2a98ff22b7f3b460cb473645986dfa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): rag_system/agent/escalation.py:99-109 | rag_system/pipelines/retrieval_pipeline.py:128-139 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/agent/escalation.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"945d2a2a20d85d01c620502c1c35bf803421e7b31a3d785134f76eb35c77e9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): eval/build_goldset.py:170-171 | eval/finalize_goldset.py:114-115 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/build_goldset.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b712097f98dc2533b6eb61c0f5c1af54c9f49105b0223cd7d6f0ba83c0147d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): rag_system/ingestion/chunking.py:28-32 | rag_system/ingestion/docling_chunker.py:51-55 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ingestion/chunking.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a73cfe0de9cef62fb7be80db0a0c6cc8a39f3a0e9a0eeda8447915477f63356"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): rag_system/utils/ollama_client.py:221-224 | rag_system/utils/watsonx_client.py:61-64 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/utils/ollama_client.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d651e8264ae26e04b6f072b597e03d8cb8c35b94efc507946e35af3d01b84af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201333 lines \u00D7 2): backend/ollama_client.py:100-132 | backend/ollama_client.py:171-190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060backend/ollama_client.py:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060enable_thinking\u0060 to \u0060bool = True\u0060 in one and \u0060bool = False\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ollama_client.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"051fa455370ba4847f21bb770ae1eafad32187d4f9e4f6eaf7a77b59536cdb4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): eval/verify_crossref_goldset.py:56-87 | eval/verify_rfc_goldset.py:68-99 \u2014 before extracting anything, compare \u0060eval/verify_crossref_goldset.py\u0060 and \u0060eval/verify_rfc_goldset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/verify_crossref_goldset.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"60938ccb2e82f958c0b6a5c02f52b5a505e2f8824bf6aa6fe24eb2f2b1a0f9ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): eval/multiturn/decomp_stability.py:114-136 | eval/multiturn/run_e2e_multiturn.py:78-101 \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":"eval/multiturn/decomp_stability.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb35584c7978a4eceec02cf350a12a04f0d865ab5c82f79e5166fd1ca68f0b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): eval/verify_crossref_goldset.py:91-109 | eval/verify_rfc_goldset.py:107-125 \u2014 before extracting anything, compare \u0060eval/verify_crossref_goldset.py\u0060 and \u0060eval/verify_rfc_goldset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060eval/verify_rfc_goldset.py:127\u0060 calls \u0060sorted\u0060, \u0060set\u0060 and \u0060eval/verify_crossref_goldset.py:111\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eval/verify_crossref_goldset.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1763f383b585ed038b97220c5bd769d1bb8926f09f3f49a9967a9d15785c651"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): rag_system/utils/ollama_client.py:258-275 | rag_system/utils/ollama_client.py:317-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/utils/ollama_client.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a50cc242250781adfa43d2d3235553c7eeceafaad1e06c97c55b6675ce59a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): backend/server.py:828-843 | backend/server.py:1033-1044 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"706856dfe7dedb0dc7f4fd4b1c9aec8365d2c0cc7e274e1bc73d37876d777cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): backend/ollama_client.py:16-30 | rag_system/utils/ollama_client.py:43-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060rag_system/utils/ollama_client.py:39\u0060 calls \u0060Lock\u0060 and \u0060backend/ollama_client.py:12\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ollama_client.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f877f05e2571ca1c5a6e7eacee95e88f4ee50791207b24ffa6ac218badf42cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): backend/server.py:1149-1163 | backend/server.py:1193-1206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060backend/server.py:1149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5057cc5cfeffb244815620f572ffe8fb1bec13faad0b4fc03d514d329f061b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): rag_system/api_server.py:308-322 | rag_system/api_server.py:336-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/api_server.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"640a768c64df4f21361c4954425b1a305cd4de3de6ade30d3d7486230b115ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): eval/verify_crossref_goldset.py:116-126 | eval/verify_rfc_goldset.py:137-147 \u2014 before extracting anything, compare \u0060eval/verify_crossref_goldset.py\u0060 and \u0060eval/verify_rfc_goldset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"eval/verify_crossref_goldset.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cb6cd6590ede5ab5abd2a1d2897f8533f258f7e84703c88c6de60a226a9f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): backend/server.py:261-266 | rag_system/api_server.py:277-282 \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":"backend/server.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fe777eb4857db92fe55c9829ef465890ceaa33fb3c6a26dda0f4e76b6cb62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eval/verify_crossref_goldset.py:111-115 | eval/verify_rfc_goldset.py:129-133 \u2014 before extracting anything, compare \u0060eval/verify_crossref_goldset.py\u0060 and \u0060eval/verify_rfc_goldset.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"eval/verify_crossref_goldset.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bef6a99360b4b8609ff00a5f096cf30a8f8f7ee508d21b4d174c19a2afe7f25"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: backend/database.py: 16.3% line coverage (65/400)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/database.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4cc62b03e92f0eb1f7a2f43ec7d7f1508f4c42695c3600d0b6890344716952"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: backend/ollama_client.py: 13.4% line coverage (18/134)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ollama_client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7d915dc56b5177c9d7897e5776c9569c9f6159e58b1eb14ad8c68d4671645b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: backend/server.py: 11.5% line coverage (85/736)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd629cb41cfb1eb5a19f465b426e48de0e71867d34608f2be1aceb17fd494503"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: create_index_script.py: 0.0% line coverage (0/238)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"create_index_script.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c6fa7e3b4bbfb200d93b72ba47214df97be37717da462ded9fca0c03aec8cc"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/agent/escalation.py: 0.0% line coverage (0/126)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/agent/escalation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1348bca72cdb60d6db36dd1f5e3973d628d5129bd57e82f5a247ad24f9cc98"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/agent/loop.py: 0.0% line coverage (0/388)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/agent/loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92f22b66437b555bbd00b9a82381451b240606cdfb1ca7d967b152435753f31"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/agent/verifier.py: 0.0% line coverage (0/118)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/agent/verifier.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"760f4ee8e886a8012e36f59c8209318fbaaba7bd1f1778b6f1ca2476f7dfff03"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/api_server.py: 0.0% line coverage (0/327)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/api_server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b270aed6b580f2c7f30a32500ecbb5eb6bf52aef2ee40b529fee343f09205994"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/ask_folder.py: 0.0% line coverage (0/124)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ask_folder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3934cfd36afcbf14c76248342b14055d78b61c7554fe4073f8cb15b6a54cad"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/factory.py: 0.0% line coverage (0/27)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/factory.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4af1b955a0b8628947ff050a76515cf73e6d10601e2752ecf10ef76a2686a4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/indexing/contextualizer.py: 0.0% line coverage (0/68)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/contextualizer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"058f4c0974e4b602b6a1e747d40d0b1929eb23612464d15359adb1ee6daf4910"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/indexing/crossref.py: 0.0% line coverage (0/115)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/crossref.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72795ca5345e321a0400a0eaf34adc57c4f9153ff297c785790cd4590ef6c57e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/indexing/embedders.py: 0.0% line coverage (0/175)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/embedders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31f4dd814c4b9c1ca17dd29382f4a4e46595421c8771ca8c368aac5e82f7030"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/indexing/latechunk.py: 0.0% line coverage (0/61)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/latechunk.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd75bc522333860d6db8fecd43e866ba77f490b6610ff87231c3edfad8f3b35d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/indexing/overview_builder.py: 0.0% line coverage (0/117)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/overview_builder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f32547038c85d6122a8a7b6e9111a56d749f0a89405a2b6aa3ebdb16383d51f"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/indexing/representations.py: 0.0% line coverage (0/124)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/representations.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45d6883ebcb2b00a5810ae6b6541c857c869127e4f2ce7d4975ea5c5d8c5ae7"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/ingestion/chunking.py: 0.0% line coverage (0/102)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ingestion/chunking.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96f5f78243ea05aa4b74a0887fc3cb89677bfef5ccf094ba5d383b648378a02"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/ingestion/docling_chunker.py: 0.0% line coverage (0/151)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ingestion/docling_chunker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afba14f313186f0e0230f996d7fa018f5df7c310831cad86757196972e7f3b60"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/ingestion/document_converter.py: 0.0% line coverage (0/126)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/ingestion/document_converter.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4214c44e98c333c5ffb7b8015d926d69619b1cd65cc0afa6b05181a642c218e3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/main.py: 15.2% line coverage (14/92)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/main.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b93f753a97c0eac69443888d2d9407cf1da270033dad5b963ffd3eb694d4a23"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/pipelines/indexing_pipeline.py: 0.0% line coverage (0/238)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/indexing_pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3154a08b940f7de36798eca5da38e29ded9d1fcdaec763da8ff36964344524"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/pipelines/retrieval_pipeline.py: 0.0% line coverage (0/857)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b710fc9eef31fc0d35b3319a16e8eba590c255513434da63bb20682198dce73"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/rerankers/reranker.py: 0.0% line coverage (0/108)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/rerankers/reranker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6b7dfa4aaab4b4c15196dd2f7fe9ce20dd6d7e7b2288d998eef3436b1caab8"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/rerankers/sentence_pruner.py: 0.0% line coverage (0/60)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/rerankers/sentence_pruner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"423d0395137c7e666d9c7f0365eb3306cfe093a2b2e150a9bfc86868aaff88f4"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/retrieval/document_fetch.py: 0.0% line coverage (0/121)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/document_fetch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d6e316e2ecf16fe1b439b8b61185b3825640eae4beefeeabbc0921813f9d19"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/retrieval/filters.py: 0.0% line coverage (0/106)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/filters.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"674881d4c35fc2ed0b382d197768a9001591fd1e00a411b82a1de3f01158dc6d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/retrieval/query_transformer.py: 0.0% line coverage (0/65)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/query_transformer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"508ebcc30ffda7dd86a954c2a65da6a809edd60ea9552106684d58885c2d0a98"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: rag_system/retrieval/retrievers.py: 0.0% line coverage (0/180)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/retrievers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"503e170999f5852896d53ed867e05c3c910340d60d5798d1c8d2138182893fe0"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: run_system.py: 0.0% line coverage (0/422)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbe9f81ac730171d36ed48d1ecc1d3319527036053f87d1ab45b447224e07b9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: system_health_check.py: 0.0% line coverage (0/183)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system_health_check.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b612fd5a7769c09f57f14a3fe7a4c5a8c82719eb6a23e970fc5860633fd9f3e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rag_system/pipelines/retrieval_pipeline.py: rag_system/pipelines/retrieval_pipeline.py changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in RetrievalPipeline._rerank_stage at line 1056. 3 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- rag_system/pipelines/retrieval_pipeline.py\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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"2449576e6990569dcca76a9ff7a0bb2ec2726b569d460f2283ab7680971f200f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/ui/session-chat.tsx: src/components/ui/session-chat.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 147 in session-chat.SessionChat at line 53. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- src/components/ui/session-chat.tsx\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":"src/components/ui/session-chat.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd556b9da37afc56141b1d966bada990f410ccabc6afd1db3b0d1bc24dbed79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rag_system/agent/loop.py: rag_system/agent/loop.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in Agent._run_async_inner at line 393. 3 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- rag_system/agent/loop.py\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":"rag_system/agent/loop.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5728ffc4b73a0fd051f779c2e2067c1ce7e070d74744fa934e1a263fbce48982"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rag_system/retrieval/retrievers.py: rag_system/retrieval/retrievers.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in MultiVectorRetriever.retrieve at line 142. 3 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- rag_system/retrieval/retrievers.py\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":"rag_system/retrieval/retrievers.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfbab0a1f9799907d20867b03fe89fac8e052436974ac6c295d914f0cc5fea6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/SessionIndexInfo.tsx: src/components/SessionIndexInfo.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in SessionIndexInfo.SessionIndexInfo at line 9. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- src/components/SessionIndexInfo.tsx\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":"src/components/SessionIndexInfo.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdad23e847259ea3f7874e48978d1c3c055276321fb0dcfe9090a5fc417c1a65"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rag_system/pipelines/indexing_pipeline.py: rag_system/pipelines/indexing_pipeline.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in IndexingPipeline.run at line 161. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- rag_system/pipelines/indexing_pipeline.py\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":"rag_system/pipelines/indexing_pipeline.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3f2cabbcc25d7e37e1c6e7dd4eb9f15b191c8d4641b08be208ae1ae74360a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/ui/quick-chat.tsx: src/components/ui/quick-chat.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in quick-chat.QuickChat at line 17. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- src/components/ui/quick-chat.tsx\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":"src/components/ui/quick-chat.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed10a5df51344fea8a90436c1c27fbaa2f42a4ce2d475d3e4c82aa8ba0ddc1b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/ui/conversation-page.tsx: src/components/ui/conversation-page.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in conversation-page.StructuredMessageBlock at line 123. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- src/components/ui/conversation-page.tsx\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":"src/components/ui/conversation-page.tsx"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5996edfc70f6743b1bd06d9cf3e05678d26af173e654e3074b49b7965a172a0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: backend/server.py: backend/server.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ChatHandler.do_POST at line 302. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- backend/server.py\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":"backend/server.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5023f46a08d5f2c344fe608d39dcbb7c0b647000ceebe075a0476e916781cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/lib/api.ts: src/lib/api.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ChatAPI.streamSessionMessage at line 558. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- src/lib/api.ts\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":"src/lib/api.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20098f9b6e359378809e88afe4486cfd0cce5ef71ff0cb1e8a123b3f48ebb62"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eval/run_eval.py: eval/run_eval.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in run_eval.main at line 888. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- eval/run_eval.py\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":"eval/run_eval.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb6716a44279891f7596028ea020344c9baf03de7a1e9e46d9181ea2ad34ac9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: rag_system/indexing/embedders.py: rag_system/indexing/embedders.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in VectorIndexer.index at line 163. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- rag_system/indexing/embedders.py\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":"rag_system/indexing/embedders.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a68f9d8943f50d1b5b7fde594d1d33c48ef039d298580ee61c4dfe6e78ff21f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/demo.tsx: src/components/demo.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in demo.Demo at line 12. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- src/components/demo.tsx\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":"src/components/demo.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"73260aa9883f3dfae488ec3736560e0ed646e39541a3d23201a09b0172630494"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: backend/ollama_client.py: backend/ollama_client.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is OllamaClient.chat_stream at line 155), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: dev-watcher stream aborts, invisible avatars; feat: Quick Chat streaming\u201D; \u201Cfix: apply code-review fix-set \u2014 correctness, security, determinism, CI\u201D; \u201Cfix: size Ollama num_ctx per request \u2014 ends silent 8k front-truncation\u201D; \u201CRearchitect for doc/code parity; evidence-gated defaults; E2E fixes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- backend/ollama_client.py\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":"backend/ollama_client.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ba060fc52fb792b4fa3d0dfd2b8d844851727364f915ef98fcc828a46d5b08"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: rag_system/ingestion/chunking.py: rag_system/ingestion/chunking.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is MarkdownRecursiveChunker._split_text at line 34), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: apply code-review fix-set \u2014 correctness, security, determinism, CI\u201D; \u201Cfix: chunker dropped half of every long document\u201D; \u201CRearchitect for doc/code parity; evidence-gated defaults; E2E fixes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-05-22..2026-08-20, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-22 18:31:02 -07:00\u0027 --until=\u00272026-08-20 18:31:02 -07:00\u0027 --full-history --no-merges -- rag_system/ingestion/chunking.py\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":"rag_system/ingestion/chunking.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b12054a3c827085229322a6203c4b3b79fb330b6bb6a85cefa919c1b34a3bf1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 22 significant file(s) lose their only recent owner: rag_system/pipelines/retrieval_pipeline.py, backend/server.py, eval/run_eval.py, rag_system/agent/loop.py, src/components/ui/session-chat.tsx, rag_system/api_server.py, rag_system/pipelines/indexing_pipeline.py, src/lib/api.ts (\u002B14 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7ff200c1965c91be79e263901857290971f080aaf09c4986526f81f8e28a2afc"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Clone option with display label override\u0022 repeats the code it sits on: 4 of its 5 words (clone, option, display, label) are already in \u0060const clone = { ...opt, label: displayName(label) } as SettingOption;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-settings-modal.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b01d0eb25b2cc39673d1d41216d75d21ece22fc61fa9b44770dd3e2ec9d72a"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 64 % of calls cross a namespace and only 42 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b50d6185f231a28fa9959e31861b0be76667502f1a2f794cc5c60d4fa797cb7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"594ba20856faebb900e8f635978e37e019356a968254d953432a089b831a6265"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"482e3b19efd040fb2215efbc5e65f5b9996234817368c5a9198eb89910e46231"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"53b8ac276beeedf6fb1d8d1b519a2f901db823fcb86bfae14c861085dc8aba20"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5c4feac4d58efe7b43b2767b5cc0c2ef31ef8132e3734e04ac08bc358e70bb4e"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c245d8d7c64bdde24ccf1280e84a7637a848f99da5274876da8713b2e2b8ed23"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc4167f929c5c2dc9e99746c15de2f17ec65518027e42b6a09bb83cc05b3a1bb"},"properties":{"dependency":{"package":"torch","version":"2.4.1","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2024-48063","BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-32434","BIT-pytorch-2025-3730","BIT-pytorch-2025-46148","BIT-pytorch-2025-55551","BIT-pytorch-2025-55552","BIT-pytorch-2025-55553","BIT-pytorch-2025-55554","BIT-pytorch-2025-55557","BIT-pytorch-2025-55558","BIT-pytorch-2025-55560","BIT-pytorch-2026-24747","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-259","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-198","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-205","PYSEC-2025-206","PYSEC-2025-207","PYSEC-2025-208","PYSEC-2025-209","PYSEC-2025-41","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-1970","PYSEC-2026-2286"],"reachability":{"kind":"production","file":"rag_system/agent/verifier.py","line":111}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6337f4c548d43b2f75a46f9042842f49b2d281119141f4be6d654c116f9d11e8"},"properties":{"dependency":{"package":"torch","version":"2.4.1","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2024-48063","BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-32434","BIT-pytorch-2025-3730","BIT-pytorch-2025-46148","BIT-pytorch-2025-55551","BIT-pytorch-2025-55552","BIT-pytorch-2025-55553","BIT-pytorch-2025-55554","BIT-pytorch-2025-55557","BIT-pytorch-2025-55558","BIT-pytorch-2025-55560","BIT-pytorch-2026-24747","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-259","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-198","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-205","PYSEC-2025-206","PYSEC-2025-207","PYSEC-2025-208","PYSEC-2025-209","PYSEC-2025-41","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-1970","PYSEC-2026-2286"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"60e549dd749875889a6763dcbdac56b3f214e93f9570c66cfa4c22d2a160ab00"},"properties":{"dependency":{"package":"torch","version":"2.4.1","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2024-48063","BIT-pytorch-2025-2148","BIT-pytorch-2025-2149","BIT-pytorch-2025-2953","BIT-pytorch-2025-2998","BIT-pytorch-2025-2999","BIT-pytorch-2025-3000","BIT-pytorch-2025-3001","BIT-pytorch-2025-32434","BIT-pytorch-2025-3730","BIT-pytorch-2025-46148","BIT-pytorch-2025-55551","BIT-pytorch-2025-55552","BIT-pytorch-2025-55553","BIT-pytorch-2025-55554","BIT-pytorch-2025-55557","BIT-pytorch-2025-55558","BIT-pytorch-2025-55560","BIT-pytorch-2026-24747","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2024-259","PYSEC-2025-189","PYSEC-2025-190","PYSEC-2025-191","PYSEC-2025-192","PYSEC-2025-193","PYSEC-2025-194","PYSEC-2025-195","PYSEC-2025-198","PYSEC-2025-203","PYSEC-2025-204","PYSEC-2025-205","PYSEC-2025-206","PYSEC-2025-207","PYSEC-2025-208","PYSEC-2025-209","PYSEC-2025-41","PYSEC-2026-139","PYSEC-2026-1856","PYSEC-2026-1970","PYSEC-2026-2286"],"reachability":{"kind":"production","file":"eval/run_eval.py","line":80}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b422d7d2acf4ec86c8855b185b5bb8a76f746739db2b625b71467e001072cde"},"properties":{"dependency":{"package":"tar","version":"7.4.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b55d8c3d4022ec0584b776dd38c8efdbd6ed8438368b957c4c7befdff03a5d6e"},"properties":{"dependency":{"package":"next","version":"15.3.3","advisory":"[CVE redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25e4bff247a37b628fc138c9cbce499b4a1c16690dc8001dc9a4aea5052f0d78"},"properties":{"dependency":{"package":"transformers","version":"4.51.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-211","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-1977","PYSEC-2026-1980","PYSEC-2026-1981","PYSEC-2026-1983","PYSEC-2026-1986","PYSEC-2026-1988","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929","PYSEC-2026-4174"],"reachability":{"kind":"production","file":"rag_system/agent/verifier.py","line":112}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3df0fa9ca11200e81f62862057a85922d247b7328a8a1ac49a68980719fd9ea4"},"properties":{"dependency":{"package":"transformers","version":"4.51.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-211","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-1977","PYSEC-2026-1980","PYSEC-2026-1981","PYSEC-2026-1983","PYSEC-2026-1986","PYSEC-2026-1988","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929","PYSEC-2026-4174"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"60d31a051760159631eaa9ba0e90c965120cf2c230f2b5ca78fdc144cd48fdda"},"properties":{"dependency":{"package":"transformers","version":"4.51.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-211","PYSEC-2025-212","PYSEC-2025-213","PYSEC-2025-214","PYSEC-2025-215","PYSEC-2025-216","PYSEC-2025-217","PYSEC-2025-218","PYSEC-2026-1977","PYSEC-2026-1980","PYSEC-2026-1981","PYSEC-2026-1983","PYSEC-2026-1986","PYSEC-2026-1988","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929","PYSEC-2026-4174"],"reachability":{"kind":"production","file":"rag_system/agent/verifier.py","line":112}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d6c318fa767472f59fa4b457f71c990b71caf6fd33d3f1d10a1068e8a9b424b"},"properties":{"dependency":{"package":"brace-expansion","version":"2.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64e300a3f10431ec01dd540da52d4a12604b178c092365806056bf113c755a16"},"properties":{"dependency":{"package":"minimatch","version":"9.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c9cd217e2a982fe563ce9663f26dbbee2c6a08f39138086f359223da5a774dfd"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a51cd9bac6da640e38cf883c1ea361c13f6e25c446f4643782afc1591a1c03f1"},"properties":{"dependency":{"package":"flatted","version":"3.3.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a31a0b5364830f542d37385755d27dd90f97746286a80cb6c17836bc6e14179"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"32c4c94aab7c5964417fcd6cca00b95a3a2f82060f2cb8912ff212e92380faeb"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2e781aeeb54d3ae845ae518d9f9b4fabc9ce4afb31ec2d5eceab2c30473e850"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace302feb11fb86d3220b2995cb049a892e3a55f644f72fa6081888f7362eadb"},"properties":{"dependency":{"package":"postcss","version":"8.4.31","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2991abd3244714057cd06d318770675e3260ce6f907d7fde85ed64b07488bc50"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8bfe61ed3e8cd8f1d0b9aa7c9589b1a9e6051334a507577080c4d915ba5ca845"},"properties":{"dependency":{"package":"postcss","version":"8.5.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ac7e4fc946bb3706acd0f81c1dcd621af46b7d1ade09f7cc6e4dcd9c55ab36b"},"properties":{"dependency":{"package":"sharp","version":"0.34.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a143e49def50f6267786be10dea52190e0d09245364207bf6c8be5fcae3b49ff"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5bc0d15c95914e2e5590ee82f8bcc2bcb88e522d65da246e9f5ee7c3c78e5ec"},"properties":{"dependency":{"package":"picomatch","version":"4.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa571a47ecd9af55f36a3364edd0ddcf29c643ee1a3b19589e5f86cf9b2dd947"},"properties":{"dependency":{"package":"@humanfs/node","version":"0.16.6","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7a6c8aec811a2d7ca01dc30175c7ce3e9ebf8b9d90e6e0e2ae64d2e9773685b6"},"properties":{"dependency":{"package":"ajv","version":"6.12.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"80ed782ab76a7c48c038aad7052aaede0c5a8903fa7a974e6886acdc4489df9c"},"properties":{"dependency":{"package":"mdast-util-to-hast","version":"13.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd1365616bddf8fffb473f7cdb59ea0354a5239fdd81524a61b87eabfa8703d0"},"properties":{"dependency":{"package":"@eslint/plugin-kit","version":"0.3.1","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a92d677972f2a08b8484d0567170ca8786f119c28dc529af73e2925d2f9596d0"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e712d303dad3348922edc5aa0d602b9977117cb122d47aa83646d7a04b0675ce"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e053c9b87836b25c3b4ef192570bfa17f913d10af4afe352ae4f30ccfaece6ec"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55a5961db1a52f7773d38b3d05cf9647b1926f62c55ce25eeb6889c51e835343"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e33a22ce4cbc14758a758fc766e7c2d82a18d0e1a092a7689bee47f80901d5d6"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e83b518b7f52f2dcaa5ae6040062bb11c1eb9b8af4b47d50866778e1f843e3bd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d968354971741f25066ea3349809d5d789203cf1ecb0df76ab15685c253d1444"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47970b5664772e1224bd50c8f9a2cfcf5cc92bf0d7767e357ad11ab09c2b1baf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f9aea47e2322ef0687aba9e47b9c2453db98d530db0824c3040f41b21324d8e2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90ef8645d5d250a2cdd6c4ddecf434c2439a3eaf0b71b0b76b3e93b4d1bb9e49"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexForm.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f20e30cac25ffe53a809be2727ae08a6d189214ca5892ecfaa5e68fca22d7f7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexForm.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee6e96725c3530bebe739b6d4c82bc746a3caf23f39679aa52ff5d287ba9876"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexForm.tsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"350e59558dc964dbe066c79f613a994be7be8c260e9d963bbfa9d039b2120dcd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel htmlFor\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexPicker.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9369a0422252480773097515a855ae1c90cd8e631884f2fb02be232056018b6"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelSelect.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e937599b96e99cc8223a00fab34a36639e0f49ece7a3732f734171d3f2eeba2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelSelect.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b6c60ba4babd47aec25cd68d4db337971a0df4af855ea4b728a3b32c39f425"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelSelect.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"35099838e31869a16012f40987a6e34b52e1fe2735a7222848089c21097b6346"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/GlassToggle.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7005862738e9b6042fc4367cc28392fe2d6b4768220bb1407d7ffcaab09514cf"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-input.tsx"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bd6ad1dc770e7ce3308c8319dd07c691f2a8fa45256fd2814171f661566341"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel htmlFor\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-input.tsx"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3facbbb22250f27bd36da31ccfcb6eef3379259325ace79e1e95872358339b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-settings-modal.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70d7db78e56bc74295ce3a7cbc989979bda4f4b2237181a8c33c56aa990709d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-settings-modal.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9b0a6a6a5db2c4191bcd265167aaebc03cc2aeb432d4da0d408207519bfe30"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-sidebar.tsx"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba745b1fda3104a043eda7b2f563212a2e88243b3bcdeea06d9918bc59fdebd7"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-settings-modal.tsx"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"edeeeea321daf58a5889825ee892c744f6c476030ef8537d3bb28b1a575dfda2"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed9a76235a690635011812d08c932b3282cf49b66943f5c4184aa78508362aa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-spin\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexForm.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f43f2ddaf9ae47a7d73a7a4386a55526284203b702e8e9f6a3a8ecd18f2f895"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexPicker.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"220f625fb808da7ed081df94a6f5a3990e13879ed04586e8fb9d03d3628fa1d0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/demo.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c95cb2c3420c4b11783723cb8ccd0ba7d71547979c64b031661320404c838a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-spin\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/chat-input.tsx"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b71f0a1d869ce3e2df05f4fbcddd824dc5e608009feb9accd15a3d9ca9d87c1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"f337eee53c3e51c512363c415802bd692162b428533f3616f34fc1f8a103a3c5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d4c190ff199d8c3994d91083605b55aebd03789366a9f840c15a2d87e3c316"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a754c979d6c5993a5b32fc12059420d64b268177ec44b4d1ef2bf2498d60c7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb96d948d9332bab8e92ed774e77725cac8a555de975a4e8e3a34c0d7373e51f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46e391dede9fb3d41275596491fb515abe83b90ca28a6b75626aac6fa138b94"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Cdiv\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44bf2abc4a85dd118c64ac525b438b4b54535139d3f9ec8f16095364d92e3d1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.thinking-block summary\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/globals.css"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e9647e22ea7b50c0cd2ce842c9fa79d8f94baae1e8af0047fb265265d62509"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.thinking-block summary::after\u0060 moves (\u0060transition: transform 0.15s ease-out\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/globals.css"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"704170025707e3450e074bbdd16d4b8f2dc238992e8b9f9df929574d6110b20f"}},{"ruleId":"M2","level":"note","message":{"text":"Architecture diagram out of date: \u0060README.md\u0060 draws the system\u0027s parts, and the drawing no longer matches the code: it leaves out \u0060frontend\u0060, which the repository has beside the units it does draw. A diagram of a system that no longer exists misleads the reader it was drawn for, so it is not credited as documenting the shape."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d5439e9b8fe45a5f6b631db97d1215354d52c2bd93d0d51d9ea00928072b5d"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 2/4 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060backend\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 1 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): src/lib/api.ts:520 \u00B7 src/lib/api.ts:599 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4aa993d97d0e09d4d5b4ee9a7f461c8e8daf55c5c68127b51aceb53082f9822"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/components/ui/session-chat.tsx:700 \u00B7 src/components/ui/session-chat.tsx:738 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"043e145441a13c514cb8cf4ee6078e387981d770902f8b92557a3550a2b9b0e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7 locations): src/lib/api.ts:116 \u00B7 src/lib/api.ts:228 \u00B7 src/lib/api.ts:246 \u00B7 src/lib/api.ts:268 \u00B7 \u002B3 more site(s) not listed \u2014 all 7 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d55fe1273d89f2b2eb30090e4a676a2c3a0b847b16f3f778f0e2a4db7639173"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/components/ui/quick-chat.tsx:59 \u00B7 src/components/ui/session-chat.tsx:173 \u2014 the two spans are one implementation copied and then locally edited \u2014 129 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/quick-chat.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"38aef1441b595d66e5fc331ea57f3d10674c7d2ec7a02ce2ecfe82c4d89749b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): src/components/ui/session-chat.tsx:388 \u00B7 src/components/ui/session-chat.tsx:415 \u00B7 src/components/ui/session-chat.tsx:423 \u00B7 src/components/ui/session-chat.tsx:431 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfecb47259f95acf973f23f5bd39e141d488bde6079edeee86eb7ae772527ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): src/components/ui/session-chat.tsx:417 \u00B7 src/components/ui/session-chat.tsx:425 \u00B7 src/components/ui/session-chat.tsx:433 \u00B7 src/components/ui/session-chat.tsx:441 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e020c33f004ed856333754b22c753be91f967f684ed3aaa0cc29b52fdafaa4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/lib/api.ts:379 \u00B7 src/lib/api.ts:390 \u00B7 src/lib/api.ts:447 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd5b677efaaff5d3251df173dc843fe30a7aa4047d303d787dcb16475c76af7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/components/ui/conversation-page.tsx:252 \u00B7 src/components/ui/conversation-page.tsx:413 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"17806734332cf760e775e66f46d580fdd90abda9c4612c9cd64fbc80403e68ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/IndexForm.tsx:120 \u00B7 src/components/IndexForm.tsx:156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/IndexForm.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b744bff031ea0393465ea82d37669b3fc3aa513ed22b262e68165865854cd9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/ui/session-chat.tsx:474 \u00B7 src/components/ui/session-chat.tsx:523 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e303127a42e021c9806f5b277aa1c541d6b79fb785b4074e66a385b40546e97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 61, cognitive 94): (anonymous) has cyclomatic complexity 61 and cognitive complexity 94; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c491ec665b400d0a9d1485f2b18e772517889fe63cb410ad5a4d30025aae0c1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionIndexInfo (cyclomatic 61, cognitive 55): SessionIndexInfo has cyclomatic complexity 61 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SessionIndexInfo.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad71855506ed9ae83db3a05b85980c9ba78f0cecf366b5b712f722db90f7c4e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function streamSessionMessage (cyclomatic 29, cognitive 41): streamSessionMessage has cyclomatic complexity 29 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a149dbce99a0a0e458cc5b3bdca1887974d62e017bcfc9891e8014a6ae4fea3d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendMessage (cyclomatic 29, cognitive 38): sendMessage has cyclomatic complexity 29 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"03abf4db7dd16c27e2a8c474109c9a18f58398a44da6be19464981695fc9fa0c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionChat (cyclomatic 18, cognitive 15): SessionChat has cyclomatic complexity 18 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bab45aa9f188912b727df2310f71c4e15afe2d5b9e4b3347145babc3078f66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function streamChatMessage (cyclomatic 17, cognitive 29): streamChatMessage has cyclomatic complexity 17 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbb5d2c173a17737743ffdd5b38f25d8838155229df82b2b9fa360e10929c39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendSessionMessage (cyclomatic 17, cognitive 17): sendSessionMessage has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"314a2dde50f859378e36819869508e42ed799813a80cdedeaa1d8dc7a2529fd1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 16): (anonymous) has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31274342844e66e5460960d3fbd8bf5cceca7ead04e5833fae20ed80a7d64c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Demo (cyclomatic 15, cognitive 13): Demo has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/demo.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"93335e6f18fb39a0e9e2ab2021a3b51cd2666908fed7556e187c2e406f883b45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MessageBubble (cyclomatic 15, cognitive 10): MessageBubble has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9072e61c040496dadf571a2320a5776034a93796b036be97b828122d51d459a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildIndex (cyclomatic 13, cognitive 13): buildIndex has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb775b275cbaa9a7dc0fffc1d79bdfe11d6b173549bf8ea20bb051e40da4d72c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getStatusMessage (cyclomatic 13, cognitive 12): getStatusMessage has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SessionIndexInfo.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bffad20e583dde5ab02fec8c8c6403b5932ef880abee30d7f715f6a1211a43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 11): (anonymous) has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"893cea22761d937c88c74fab909dd29f1ad25070159dd248754d4dde22d40326"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendMessage (cyclomatic 12, cognitive 16): sendMessage has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/quick-chat.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"da59f6f7c35c37b2659811e625dbadf16b1ee69b864e7b70e057d73f9572c5d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function messageContentToText (cyclomatic 11, cognitive 12): messageContentToText has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5e8aed1e1b1c1bb1da92711d84286c6c37311a9f20456f8b2f8f255fdf66c8"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/ui/session-chat.tsx: 751 lines of code: src/components/ui/session-chat.tsx has 751 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93dae3cbbd2412353587184d81e79f04f9cfd398812300a63afb6742769e14af"}},{"ruleId":"R3","level":"warning","message":{"text":"src/lib/api.ts: 586 lines of code: src/lib/api.ts has 586 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f81ab7086767e017e5d92e3a8d9721673e3448b3b74779224e100076c243825"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/ui/conversation-page.tsx: 406 lines of code: src/components/ui/conversation-page.tsx has 406 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/conversation-page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6eaa4de2563a90ad9dad7425f6d188872786d3c0eec97f72f8994095dde807"}},{"ruleId":"R4","level":"warning","message":{"text":"Test Coverage: 0% of 26 production file(s) reachable from 0 test file(s) via the import graph \u2014 \u0027production\u0027 here is the RESIDUE: every source file left once tests, tooling, generated output, config, declarations and declaration-only modules, fixture corpora, type fixtures, behaviour-free data modules, re-export barrels, registration/constant data modules and service workers are set aside, so the percentage is taken over a smaller denominator than the workspace\u0027s file count"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"64e0e3511eb969fb4720b196e7d3799e1714077217351c3c56a27b50e3e21220"}},{"ruleId":"R6","level":"warning","message":{"text":"No test or typecheck script: test \u2717 \u00B7 lint \u2713 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"53484d7d02bbf1aa1fb3d1163371a5b52fa0aa7301d11eed5ec2dc836c72924b"}},{"ruleId":"R6","level":"warning","message":{"text":"This package\u0027s lint script runs in no CI job: The root package declares the lint script \u0060lint\u0060 (\u0060next lint\u0060), but no step of this repository\u0027s CI runs it, by name, through another script, a Makefile target or a workspace runner, and no CI step runs the linter over the package itself. The rules it sets are enforced nowhere a pull request can fail. Run it in CI: a step that runs \u0060npm run lint\u0060 in \u0060.\u0060 (or the workspace\u0027s task runner)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a99e059e3a0cba570f525a46a8aa11293b8fdff66bdcbb6aab0186748d534a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prev \u0026\u0026 resp.generation_models.includes(prev)\u0060 appears character-identically in 2 files \u2014 src/components/ui/quick-chat.tsx, src/components/ui/session-chat.tsx. 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":"src/components/ui/quick-chat.tsx"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"728a2f64164a52fefd085db972d1cbde6c3a0e29c4c343c654c670a4791cf729"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022\u0027\u0022 in document_id or \u0022\\\\\u0022 in document_id\u0060 appears character-identically in 2 files \u2014 rag_system/pipelines/retrieval_pipeline.py, rag_system/retrieval/document_fetch.py. 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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab9ec38ff85d385e0b2678dce1f9a100fc9410c5423d558fe9a2d6a3de02fe9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060anchor is not None and anchor not in texts\u0060 appears character-identically in 2 files \u2014 eval/verify_crossref_goldset.py, eval/verify_rfc_goldset.py. 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":"eval/verify_crossref_goldset.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81259fdea13185856be088aa78f34b983daea98276715cfc5a110e2164c2fef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fact and norm(fact[\u0022expected\u0022]) == norm(text) and fact[\u0022source\u0022] == source\u0060 appears character-identically in 2 files \u2014 eval/verify_crossref_goldset.py, eval/verify_rfc_goldset.py. 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":"eval/verify_crossref_goldset.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d3ceae6d62d9a38bf40c4d10b0d0fbeb3126a532f45a05a7938cb940cd4ead"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(torch.backends, \u0022mps\u0022, None) and torch.backends.mps.is_available()\u0060 appears character-identically in 3 files \u2014 rag_system/indexing/latechunk.py, rag_system/indexing/representations.py, rag_system/rerankers/reranker.py. 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":"rag_system/indexing/latechunk.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8358678e04321c01cce4fe71de4ef89f25c70d4722f6d6ce2a9f295fe871f115"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(sources) != len(row[\u0022expected\u0022]) or len(sources) != len(row[\u0022fact_ids\u0022])\u0060 appears character-identically in 2 files \u2014 eval/verify_crossref_goldset.py, eval/verify_rfc_goldset.py. 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":"eval/verify_crossref_goldset.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef02b3152c818fa6d4fe2b27e478aeef9b0311f91f5cd8e83bc56e2d259ba8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060llm_config.get(\u0022enrichment_model\u0022) or llm_config[\u0022generation_model\u0022]\u0060 appears character-identically in 3 files \u2014 eval/multiturn/decomp_stability.py, eval/multiturn/run_e2e_multiturn.py, eval/run_eval.py. 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":"eval/multiturn/decomp_stability.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6ccc52aea7436f723dedc49d2cba94f159bdf341bc55ebc857a276e7a4625a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060m not in available and f\u0022{m}:latest\u0022 not in available\u0060 appears character-identically in 2 files \u2014 eval/multiturn/decomp_stability.py, eval/multiturn/run_e2e_multiturn.py. 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":"eval/multiturn/decomp_stability.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"148540824dcdaf173fc20e9b4176fbc4fb37809ffbc02e864c00f9a6738ccda7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060source in texts and norm(text) in texts[source]\u0060 appears character-identically in 2 files \u2014 eval/verify_crossref_goldset.py, eval/verify_rfc_goldset.py. 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":"eval/verify_crossref_goldset.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73b629dcec458d559f2ee00dce4448bce89fbf6417cd0d5fd6594b3255eb348"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 0/20 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: checkHealth: \u0060checkHealth\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd8461bec5f3290dbf8b247687336aeec8bdec7d41f0cec9f38583c303d742e"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getSessions: \u0060getSessions\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f79ceb0ddbee8caf3f6fc4aa9d07d2070ceb840ee0ed1440d5195e7a168f3b4"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: createSession: \u0060createSession\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7023a76db69be4d943bfa37556b456ba753b9b3f6ecd05667f6f68e0adbee3"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getSession: \u0060getSession\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"80427f31fa4b7392a6502ab7f72e5cec185ec6628df59256e752139ab66f6a8f"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: sendSessionMessage: \u0060sendSessionMessage\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7573a8972b6740b201fb4c5ccbb507451ff99667efc35fdb9ca4ee547eb4dd8"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: deleteSession: \u0060deleteSession\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"797e6eb222612590e9c3edd5226a60c6caf0d4011c19180625be7fc50090a746"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: renameSession: \u0060renameSession\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cbae5f0817c77736c306c240ea3d3cb04a843c1be55005a3e13ea4dc7a6344"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: uploadFiles: \u0060uploadFiles\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87d52b13113e787235798a0b007844ae18731d4e3261645bd291dc135cc06ad"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: indexDocuments: \u0060indexDocuments\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4fe02415c0b81b1a2d4ea71f132f819c815c8225987e6c851cdd3acc7f3962"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getModels: \u0060getModels\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63f044039dcd53709175bad232b85d84f08d14e3af470f412ece4bb0e54c13e"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: createIndex: \u0060createIndex\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56282458244d812ac38d90703cc737085a9419a5b0b6d326aa2a99cd1c15bd1"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: uploadFilesToIndex: \u0060uploadFilesToIndex\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65d1045f21858a250f3d97f12552ad66e3396820fd7dd295dc612ab07ddada5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: buildIndex: \u0060buildIndex\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"6833a600b30a61524cd83ceb92a3aba58bb65ca10fbec237f667fa60278ea864"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: linkIndexToSession: \u0060linkIndexToSession\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baa6760300a287d19947fc5cb2af5815edf42575ea6e954b99f8319dd50776a"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: listIndexes: \u0060listIndexes\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed55d6864defeb84c654702501bf1c586e7c5b2831c213d10e2235d16d6035f5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getSessionIndexes: \u0060getSessionIndexes\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0e3865e3eaae77c6c8491ad07e343a47b0620e361171d920adbfc729f4037f"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: deleteIndex: \u0060deleteIndex\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"4577c7205eabb53d29a17a4528a87b2a1d481cc7d3e93e202076e14fba4db027"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: saveStreamedTurn: \u0060saveStreamedTurn\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9755939154c1cddb87c7a2ae56ada549c518ad663757fcad75a37267177939"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: streamChatMessage: \u0060streamChatMessage\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed89bffca4c8b56490b7e69770ea1c8366b3748f3f3b3e4c6456bf2dc748b62"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: streamSessionMessage: \u0060streamSessionMessage\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/lib/api.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff287f1fec59f89eb239f262c150ba6a03d5e2565f6f59fd1f04e288601a7f5c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"system_health_check.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f4102da0ad4ceb03e0449c1fbbaaf8c9791f6d27305f84d669e4a4c48166e2"}},{"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":"src/lib/api.ts"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd404e3ca8a5aa6898308005f4a8180f2e6807a5f527b0dcc7f4de0ba18694be"}},{"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":"src/lib/api.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc057045c94811d50d122508a24389eb2d86aa5d8f2069bc09344319d483019"}},{"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":"src/lib/api.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf1306ae1291bfe2fa14691aaee006af34c1f226c1fc089603949d6034d08ca"}},{"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":"src/lib/api.ts"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"050d5bb65e73fc8ef11d82b86aafbe9dd9010d8248c36d229c685e405d766c60"}},{"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":"src/lib/api.ts"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2d0f575f5667f5174c4e7d05a3f5a40c2bd09abdc122d9326d2bc211a9a233"}},{"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":"src/lib/api.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"579122300275185e264fcda14880b817f9c5286850518b9d2451cc9bbdeb5f96"}},{"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":"src/components/ui/quick-chat.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cb72890a2f347daa01718df76f9b7c5737e560b949039320241310cad02780"}},{"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":"src/components/ui/session-chat.tsx"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"997b3f23d08a441c2eddb222329be50535b7d19f050ac34d2032fee5a043a388"}},{"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":"src/components/ui/session-chat.tsx"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5d63dada312ac853e4f195689b6998142f69e6bc6d247038c6e9462e850ae9"}},{"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":"src/components/ui/session-chat.tsx"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ada3e74b25a287c9859e5760230ac500b64db6b688596cca364a038f329978c"}},{"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":"rag_system/utils/ollama_client.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5610f9ddce4af498389b95b0fb57db94a73dad35d87635cce5b120d2293988"}},{"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":"rag_system/utils/ollama_client.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac35781152ede3adff86a28c7db67508b5d8fd1a1cef068948d062db5637d3c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b95e8900cc58c197268e6fae7603798b816827aa84a5b9b4b140285e696154f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4853667f6aaa54a1b62506a7da019d34fb1880c51da4ba0d9bf7228c74d4ef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"rag_system/pipelines/retrieval_pipeline.py"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6d7d05a35d5996b2d52b4e74a84680adf876d26bd7853b8494238f591265b0"}},{"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":"rag_system/ingestion/document_converter.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b001f598779edb3612c4b434ee77f5564c46f387cd022f07630b35a235524ca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"rag_system/agent/escalation.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabc86aca9e9be5fe922e64f913434ad4fe13b90003aa218dc80616af63625f7"}},{"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":"rag_system/agent/escalation.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa02096981264869520e75c2ed0d2fb26990b522294fcfef64957bad519a9b32"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"rag_system/agent/loop.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4110bb0d6fcadafab43d3b1fb088e689adbddd40ca3b148f20c2bec77dda6f13"}},{"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":"backend/database.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5811890914312e4ee95c140490cb67e83517cf349d5b71204a4d821ec2bd4ec5"}},{"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":"backend/database.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"94027b16ca71f7d58ba76df261f9988459af294d3d51d08a2738125be84bb25b"}},{"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":"backend/database.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce739241aa0c75293b11099401e10d55128566bc9f3881af7104f5cc5fe8c082"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 181 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfaa2b3f9826afd35fd52758473657f108b9a815845d0255cc59262e4e3f3cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 218 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a4b32ab30553aad95243515bdf20a02228c68a0bad90d5e94e4d72d4900e09"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 247 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"785bd4dd8dc07a21140fbaa95ea84125d4c27bd74ad3858158491ed42bd6475c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 250 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b50fbc4938b697aeeabcc8b9e661ed3e0c3358137f7a973841171b158da73e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 252 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5448023474b412337426badc32b27e6485add63deff1a10fc6c4f8d9b832f79"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 257 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3a032ba88ba06c6f31ad702ad28319af2a1ac93109ab4b4e3fb041ae40dd91"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 262 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbec461dea9f6b9aa2455455df12f6f63815ea55dc2b2ac9e53e66e2fd8043a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 267 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0392624d2418d527f44bcbd6bc34879dcbd1450562db09c10824242876238490"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 273 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"5273c2fc5463ca55c69f13a30d6e2d89edb8eca24e4ead51a95950a39d942ab9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 312 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3c82ac1a424cadf2c2fa889c3344c86998792ddc208750d7837ebdf27a079c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 316 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01b7828347886f704e2145c20c2bc6a6172fb769324f12438fa5c793fcdda36"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 321 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"1197990e1234fe0cc5b315579df49861e48bd4915dc0c1524776b1d8e23f03b9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 327 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed7c265ce879628ae71142df0d297c3fbcc2146d6e5a59c9e2f9d05b99caf0c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 331 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"3395fcd24f31fcb94adb7502ddcaee0e41ea96131e65f74bae8f64d0165f7a99"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 334 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bdbb20fd4e676a3a9124a65000a44108e9bb49df21b2d608de98d6cc192065"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 336 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"195464b25722a2bd0b0429265d7a833b332d9707913346819aef9ef81a99c817"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 348 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"460ae4aaa3728c00d2737d3d0b7b1bfebe92aa7acfd3e6a608b01c97cd15ba38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 393 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbe9b2106a5e2330697c7cd50853cc9e9d38cad4f693c06cbaa2daa7e6526d2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 421 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"05135319712d676812fbb0c8446e009b0eb481922ea128fc6a54185c800f539e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 461 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbb79c1e0644893e21d402bf6632e180fc043c9fe9fe576fa095978c41de626"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 468 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"e679a71eebae029f2fe78fce9f5b436366e5b41727be5536b901fc60575aad03"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 471 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea70762136792b034d4484b2e820951464741d62167646a79af6a3e5efef2b91"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 503 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"a442cb368eec0d0841cd476b449e8fff44c8605705c47d074c49b7d0fec0543a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 505 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bf24a3b3c5e2456ae753e350d4aa425f531a83ee378c52b4b28dbfefacc881"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 519 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc61433c424cca41de77e55593497fae99c77174b40b8afbabd5c08f02ae2a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 534 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10311f24b4e2bd7606947387363c063d8adb851cdeaa129c7f4a8fa6108d54f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 542 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0b6ad121ef8a4ad4e721c845821b2c71e8c8580a1a0cac507eeadf982517c4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 545 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db0964a30a66380205142b0df5a93024f16c0484ca2f2cf58a6f11b747797fc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 567 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff02f6211f1c06e908a8624adb15b3240935e3a1afa0386b30d39bf47e9674c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 574 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6abcf749961bbbd21bd185791f5c6b1be9a9399a13be53af300771b4183444"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 577 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"671b4dff895d1c2d1e30d4249aa1faa8f2a017de4611430bd494488c32da5bbc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 635 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"3287d4c7ec7cf2c7739fddab23ae944ae9cfb853a6a5299363fc83fc843faef6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 652 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ba173a87868c539cddd8f4df3be038df1bea94b657c0476744b73552f36eb5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 655 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcce2159af934963ca99618a4a3e3d20fdf50f93cbe05bc1ebd5cd1106dacaec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 669 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c68fe6e297c32f351d7a2a458c1c7573b29ea3419807c9b3a203ee20d3be34"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 674 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"0729250d632d7e6f3b89c8da200669441e2bb629f42b6298ff84622307c639af"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 19 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/utils/batch_processor.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f433a8e3b63631998bcd3d655f03ce6db752e56556162cc8d7ba428c2c8c2c61"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 53 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/utils/batch_processor.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8227621f71d2e2e81756649dcffc4649f0b4a7fcf58cf65e14833f4dace5c7d8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 64 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/utils/batch_processor.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d1f426524251076e8c7c4328bbc63c237f6aaf8796fc5d01df7fc5a8892265"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 96 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/utils/batch_processor.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd70f075590c9563883cafc90997a9a8893f81333268f912bec946c3a93ff3ed"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 102 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/utils/batch_processor.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"069845bffdf647e44eefb668cef771bec6cacef55030bb50ea0b491182ae95c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 122 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/utils/batch_processor.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da2a8c802311c41f637f483f59bff069d477fe04b48edbd1bb4a23e6537e6ae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 37 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/contextualizer.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d514c3dce09a9197c601d2dc6a0d310de7abf5651f7c1a108f2d9641fee0140f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 79 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/contextualizer.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"599cf8f4609602b22dd940343756905157500fd1aa1882365e762abe0182bd81"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 86 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/contextualizer.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ffe1b69a1016470aa15611d8e07cb95d4491405b07d5f3e99f2ad7bc5b1214"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 93 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/contextualizer.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93afc9e913f32a525e6d0d02d2c1ffd8740cbe488e7880cb958b712f0777c5d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 128 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/contextualizer.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3923ce35e2f0dd1fba98b4261cd14d165b1e6971e53bde81e7b7e33346b22d24"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 158 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/indexing/overview_builder.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"61731c18591282053be475ec9222fc63f8c9a2714ba04c0563ffd677758512ca"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060read_json_body\u0060 returns \u0060{}\u0060 when \u0060(ValueError, UnicodeDecodeError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ac6dbb9a41cc50de0cc141f12097aaa317209884dc48841e8b0166c0632da5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_parse_metadata\u0060 returns \u0060{}\u0060 when \u0060json.JSONDecodeError\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rag_system/retrieval/document_fetch.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"688b3f1a2b5dd9f2356249b5780b668b4bc95d41ef8275c37dc7a70ac16b1c00"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_read_pidfile\u0060 returns \u0060{}\u0060 when \u0060(OSError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"run_system.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcf97c2e8253a531b58d8044ba925e7ca59667c2f58f1683b4bba0280629ae3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060lancedb_uri\u0060 swallows every exception into \u0060return \u0027./lancedb\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system_health_check.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea39d0a91a744f92661c41a7a3996f4e1b4d41ce5d65bbd17593a0fd61536ab"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadPersistedChatSettings\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ui/session-chat.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6677125a756a43167ab9c444a9dca054c1d1068fc6ff37eeb47d43a289730a"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-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-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":42,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}