{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"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":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02: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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"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":"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":"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"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":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"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":"state.applyEvent (cyclomatic 232): state.applyEvent has cyclomatic complexity 232 (threshold 15). Of this number, 219 points are the body\u0027s own statements and 13 belong to 11 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/state.ts"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f31be86e042f886f9aceee41161f0f0d0ee890ac529ca79fe8e5fa15dde620"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeView.KnowledgeView (cyclomatic 174): KnowledgeView.KnowledgeView has cyclomatic complexity 174 (threshold 15). Of this number, 66 points are the body\u0027s own statements and 108 belong to 47 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/KnowledgeView.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"623735a3aa9d92663c9ef8c28d545ffac50ea703c2c7fbd25c01910c19b75bc7"}},{"ruleId":"D1","level":"warning","message":{"text":"Composer.Composer (cyclomatic 130): Composer.Composer has cyclomatic complexity 130 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 101 belong to 34 function items inside it that branch. 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/components/Composer.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7433aa980628cb9e4def01863056baeee0547ec19782c49f9eeffe84fe615b"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine.iter_worker_retrieval_context (cyclomatic 106): ProjectEngine.iter_worker_retrieval_context has cyclomatic complexity 106 (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/engine.py"},"region":{"startLine":6071}}}],"partialFingerprints":{"codehealthFindingId/v1":"f152f582372eab29c4dc99bccd9d808ec78fbdd4c94aff28e3dffc9527def4c6"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._health_conn (cyclomatic 78): KnoweServer._health_conn has cyclomatic complexity 78 (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":3920}}}],"partialFingerprints":{"codehealthFindingId/v1":"3292c3c79ec7f69126d953bf4c44b1fb22ae437e8de4e4cc53214ae292b8552d"}},{"ruleId":"D1","level":"warning","message":{"text":"ApprovalCard.ApprovalCard (cyclomatic 77): ApprovalCard.ApprovalCard has cyclomatic complexity 77 (threshold 15). Of this number, 50 points are the body\u0027s own statements and 27 belong to 12 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/ApprovalCard.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"944558212363f425506168a3dbc9b16a51d8a88158e95e1d5fb32fa666bcd225"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenUsagePanel.TokenUsagePanel (cyclomatic 75): TokenUsagePanel.TokenUsagePanel has cyclomatic complexity 75 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 43 belong to 16 function items inside it that branch. 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/components/TokenUsagePanel.tsx"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"3956e284c4f096ffdcd6010069e78dbbe35272b5866693f610fc0ec1b53e902f"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble.MessageBubble (cyclomatic 70): MessageBubble.MessageBubble has cyclomatic complexity 70 (threshold 15). Of this number, 57 points are the body\u0027s own statements and 13 belong to 7 function items inside it that branch. 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/components/MessageBubble.tsx"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f1711dda77ccb11fb6c226550c968b967b5199cd0229f64b5161fcfd29776e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.registerIpc (cyclomatic 61): main.registerIpc has cyclomatic complexity 61 (threshold 15). Most of this is not in the body itself: 1 of the 61 points is its own statement and the rest belongs to 18 function items inside it that branch (localFileAction, a function literal at line 1610, a function literal at line 1711, \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":"electron/main.ts"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76d205a0bdfb4a14c1fdfb0657a33a70e406319426fef66378dcd81eab81479"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelBindingModule.ModelBindingModule (cyclomatic 58): ModelBindingModule.ModelBindingModule has cyclomatic complexity 58 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 10 belong to 7 function items inside it that branch. 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/components/ModelBindingModule.tsx"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d163292384344ebbdc9ef246aecd0ed3aca94aa5dff0c7e629be5270bbfb481"}},{"ruleId":"D1","level":"warning","message":{"text":"codeSyntax.highlightGenericLine (cyclomatic 58): codeSyntax.highlightGenericLine has cyclomatic complexity 58 (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":"src/preview/renderers/codeSyntax.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a74939e929ff94b461223bec8003893c9378b42e3882f3765aa26f71288f82"}},{"ruleId":"D1","level":"warning","message":{"text":"ZinniaAgent._execute (cyclomatic 56): ZinniaAgent._execute has cyclomatic complexity 56 (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/agents/zinnia.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"612d9b2a15061ad63d880840fe2db77b86663a8e29d93e4a46cdcc97643f4754"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._delete_project_permanently (cyclomatic 55): KnoweServer._delete_project_permanently has cyclomatic complexity 55 (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/server.py"},"region":{"startLine":4943}}}],"partialFingerprints":{"codehealthFindingId/v1":"603313ed6cb46d6046b4b443f05bf882726c563ddbc5dcb316b1f58103db796a"}},{"ruleId":"D1","level":"warning","message":{"text":"token_usage.normalize_token_usage_record (cyclomatic 54): token_usage.normalize_token_usage_record has cyclomatic complexity 54 (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":"backend/token_usage.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc424a615c06bb9701f7e897285f1687a051acf6b0d7656fbe08cde757052b7e"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App (cyclomatic 54): App.App has cyclomatic complexity 54 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 34 belong to 13 function literals inside it that branch. 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/app/App.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ffdcd230337b1d963e089124816459d9ad0144dc11c36957bb56d3de354593"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgePreview.KnowledgePreview (cyclomatic 53): KnowledgePreview.KnowledgePreview has cyclomatic complexity 53 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 16 belong to 8 function literals inside it that branch. 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/components/KnowledgePreview.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f85a912110b1d206fddf35de1cf93e89b1d133bf553f4e4bcb501258701bb8"}},{"ruleId":"D1","level":"warning","message":{"text":"token_usage.aggregate_token_usage (cyclomatic 51): token_usage.aggregate_token_usage 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":"backend/token_usage.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc2eb40de640e8c33d21ee8c7b974594eb1013d105028b1c00e4c2ae05f015f"}},{"ruleId":"D1","level":"warning","message":{"text":"HandoffBook.write_report (cyclomatic 50): HandoffBook.write_report has cyclomatic complexity 50 (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/handoff.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"9768c1494344a2d8357a41aedb0c03c629d6a024e688e5cdefa0131ba98d5c07"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextMenu.ForwardModalBody (cyclomatic 50): ContextMenu.ForwardModalBody has cyclomatic complexity 50 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 32 belong to 18 function items inside it that branch. 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/components/ContextMenu.tsx"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea487ed634eead343999f6cc734de5090ce5e60a5508aada8a3a175cc6df0d8"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatStream.ChatStream (cyclomatic 49): ChatStream.ChatStream has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (ChatStream.ChatStream::msgMenu) 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/ChatStream.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"561c8278ead957d9c9f3aff6c861b821385105e03de33156434ac6541e158edf"}},{"ruleId":"D1","level":"warning","message":{"text":"tools_knowe._parse_agents (cyclomatic 48): tools_knowe._parse_agents has cyclomatic complexity 48 (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/tools_knowe.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9ebceb7243cb5d54c6233852672984b23641f854ae64a71eeb9ba0de07fb2f"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._stop_once (cyclomatic 47): ProjectEngine._stop_once has cyclomatic complexity 47 (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":"backend/engine.py"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddae7a3d0ce5b0bad55f23bc91728f0b8f30be11ce85f6176d0d14468f4feb3"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._completion_view_from_event (cyclomatic 47): ProjectEngine._completion_view_from_event has cyclomatic complexity 47 (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":"backend/engine.py"},"region":{"startLine":2562}}}],"partialFingerprints":{"codehealthFindingId/v1":"371dc6e25db6d2c1eeac99fd40812d120b5923dedb376b6321470e3f9d3ae020"}},{"ruleId":"D1","level":"warning","message":{"text":"_Markdownifier.handle_starttag (cyclomatic 47): _Markdownifier.handle_starttag 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":"backend/web_tools.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"66007dbc8538eff5dd0ff03717e16d232f818fbb545a431cbbe4c5cc62cb9006"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryManager.update_project_context (cyclomatic 46): MemoryManager.update_project_context has cyclomatic complexity 46 (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/memory_manager.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3169fe62dcb7f7594a3c6a0ee4d0f959be66f40acff8e7366512535003605d"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenUsagePanel.TrendChart (cyclomatic 46): TokenUsagePanel.TrendChart has cyclomatic complexity 46 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 27 belong to 13 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/TokenUsagePanel.tsx"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"860eb5e71743c06332af771d3c58170801f7ea751ba07a34b18f3ca1fb4de94d"}},{"ruleId":"D1","level":"warning","message":{"text":"FavoritesView.FavoritesView (cyclomatic 46): FavoritesView.FavoritesView has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 5 of the 46 points are its own statements and the rest belongs to 15 function items inside it that branch (catLabel, typeLabel, a function literal at line 153, \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/FavoritesView.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"905865d77cd54f7463917f2c9a188714d0406410404e18222a96457b0d513df3"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeGraphManager._refresh_graph (cyclomatic 45): KnowledgeGraphManager._refresh_graph has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ed61c58ceded134331b44c1a767060aaad515ea4eace9f67e26847f8ba3048"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._memory_clues_block (cyclomatic 44): ProjectEngine._memory_clues_block has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":5328}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ce0b2ff5f7fa177ed0b6958137370bb4cdc6c99d38d59cad4e8c8d170db17f"}},{"ruleId":"D1","level":"warning","message":{"text":"tool_protocol.decode_text_tool_protocol (cyclomatic 44): tool_protocol.decode_text_tool_protocol has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ba2e75a85d233b4da604c928020eabfbdfe0aa066b578ae5ab51cb2f34b2d3"}},{"ruleId":"D1","level":"warning","message":{"text":"RangeCalendar.RangeCalendar (cyclomatic 44): RangeCalendar.RangeCalendar has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 11 of the 44 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 196, a function literal at line 66, a function literal at line 81, \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/RangeCalendar.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11216ddc6529797f9978aa05b574d1a11319b395102eeb7627039bf35836dc7"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine.emit (cyclomatic 42): ProjectEngine.emit has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":8034}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6dd4f9301bb4e457bb7363f90a8ee888b02dc5d3e4c0f4d8bda6b0f9903efa"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.useKnowledgeStore (cyclomatic 42): knowledge.useKnowledgeStore has cyclomatic complexity 42 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 13 belong to 5 function literals inside it that branch. 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/store/knowledge.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c48d6a0700c509378ccbcaaa15aad79648d1c95512985548cc41af69ea0280"}},{"ruleId":"D1","level":"warning","message":{"text":"FirstRunModelGate.FirstRunModelGate (cyclomatic 41): FirstRunModelGate.FirstRunModelGate has cyclomatic complexity 41 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 13 belong to 3 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/FirstRunModelGate.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b9b904bb2952122235a1affbcdf4da008cb9b5b2493b47761bcac1ceb637ff"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._completion_message_text (cyclomatic 40): ProjectEngine._completion_message_text has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26c53f728e6c4b423d49eb7e7c548b3efdf32abf8f1a17af08b897d3de53f53"}},{"ruleId":"D1","level":"warning","message":{"text":"ConvList.ConvListItem (cyclomatic 40): ConvList.ConvListItem has cyclomatic complexity 40 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 10 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ConvList.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c58c63eddfa1f55ffd012e56f9d32a2605f37a2953a443ba5a5ada66e6d8a6"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewApp.PreviewApp (cyclomatic 40): PreviewApp.PreviewApp has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 6 of the 40 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 297, 398, 191, \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/preview/PreviewApp.tsx"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8370995ace5502a390aec77c682ecfb76e138d0d1cbc9fad2b9d06836b079e"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._persist_token_usage (cyclomatic 39): ProjectEngine._persist_token_usage has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c73fff6d4c817550f5d49b1f89baf2d0952fb5e8f30cc341de6b0d9beba954"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentLoop.run (cyclomatic 39): AgentLoop.run has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/agent_loop.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b67c649bcd87e41fdc534f4db92765175eee99e1e9e7dfc86d55ecb0f5c330"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime_settings.apply (cyclomatic 39): runtime_settings.apply has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/runtime_settings.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"f936aa776a8cbbf82197f3041acc572a4ec84207874391976493333617fdf278"}},{"ruleId":"D1","level":"warning","message":{"text":"file_ops.search_files (cyclomatic 37): file_ops.search_files 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":"backend/file_ops.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb1f8ea82ac61ae71775ab67542f99cb18807e4f353de45d80da5273c195875"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge_api._dispatch_get_sync (cyclomatic 37): knowledge_api._dispatch_get_sync 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":"backend/knowledge_api.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"83af019aba31557a263790585056bfbd078d52fbf3ed37b63fb9ee4fd1642eba"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._delete_agent_permanently (cyclomatic 37): KnoweServer._delete_agent_permanently 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":"backend/server.py"},"region":{"startLine":5359}}}],"partialFingerprints":{"codehealthFindingId/v1":"751201ea28816a3ea2026efec3b44ce038a71aab7688d4692ed67b7a8738df08"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._serve_history (cyclomatic 37): KnoweServer._serve_history 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":"backend/server.py"},"region":{"startLine":6272}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b5ec014c9ffe542e89236a583fc6d025ad657772694278901af1ebed24c84f"}},{"ruleId":"D1","level":"warning","message":{"text":"RosterPanel.RosterPanel (cyclomatic 37): RosterPanel.RosterPanel has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 4 of the 37 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 164, a function literal at line 131, a function literal at line 91, \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/RosterPanel.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb740217e53679b7adc7d3ad99e29d720f02d60594807a2160045d76d6bbfaac"}},{"ruleId":"D1","level":"warning","message":{"text":"ContactsView.ContactsView (cyclomatic 37): ContactsView.ContactsView has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 8 of the 37 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 565, 448, 480, \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/ContactsView.tsx"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"998154bbd5fc3ab40149281c86010c9a2a768129fdfe64bf361de458a6506b75"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._emit_legacy_completion_visible (cyclomatic 36): ProjectEngine._emit_legacy_completion_visible has cyclomatic complexity 36 (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":"backend/engine.py"},"region":{"startLine":2763}}}],"partialFingerprints":{"codehealthFindingId/v1":"8800f254f359050e6e10ab502d663a02b9135df230c59a00b75ec77c75ae1f7a"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderClient._parse_sse_line (cyclomatic 36): ProviderClient._parse_sse_line has cyclomatic complexity 36 (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/knowe_core/provider_client.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"c611a96fcd65251b4bcb705a09e38c27d26a797fbcaa7f802b94f8aa721b3e29"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeView.KnowledgeModals (cyclomatic 35): KnowledgeView.KnowledgeModals has cyclomatic complexity 35 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 19 belong to 12 function items inside it that branch. 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/components/KnowledgeView.tsx"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc899d0e34559ecab5df23cf7a765311ee532f266d81cc0be306f770f88418b7"}},{"ruleId":"D1","level":"warning","message":{"text":"PdfPreview.PdfPreview (cyclomatic 35): PdfPreview.PdfPreview has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 11 of the 35 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 124, 114, 167, \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/preview/renderers/PdfPreview.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d1d842f968c713c574ece0f6c57e06daf28a459dfa9c3be9e95090674f9f7a"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._agent_memory_clues_block (cyclomatic 34): ProjectEngine._agent_memory_clues_block has cyclomatic complexity 34 (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":"backend/engine.py"},"region":{"startLine":7436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8490a36590a2e6848e4237c0e3b44909bccd9c01d9b227008226505c1241161"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryManager._ensure_history_initialized (cyclomatic 34): MemoryManager._ensure_history_initialized 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":"backend/memory_manager.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6cdd03018c8274033b874fa3e8b9ceb1bcf54c337064772f6c5c1e881bb96b"}},{"ruleId":"D1","level":"warning","message":{"text":"file_ops.patch_file (cyclomatic 33): file_ops.patch_file 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/file_ops.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f553e2820c85746865757a8ee3638d420b7350a693c575ff38abe12a5c993ed"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge_api._dispatch_post (cyclomatic 33): knowledge_api._dispatch_post 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/knowledge_api.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcadb0ac5045f928869466e173d87fb718366f82d16ce3015b7c911ac360ee8e"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeGraphManager._merge_extraction (cyclomatic 33): KnowledgeGraphManager._merge_extraction has cyclomatic complexity 33 (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":"backend/knowledge_graph.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a57d75861ba7d24155855f045e4fcc1220ceb3879681efa72a46f1d8feb8197"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._cmd_token_usage_req (cyclomatic 33): KnoweServer._cmd_token_usage_req has cyclomatic complexity 33 (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":"backend/server.py"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7e5b5fe90e7d329d2c4dc1943d6ce8543f0c64fa791d49912efc9092fe7aba"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalSearch.useGlobalSearchGroups (cyclomatic 33): GlobalSearch.useGlobalSearchGroups has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 133, 191, 135, \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/GlobalSearch.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bddb3dbcf4cd67bcd2d8e674112febeee9847dd2e2d909f4968a11a01c83aeb"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine.commit_handoff_step (cyclomatic 32): ProjectEngine.commit_handoff_step has cyclomatic complexity 32 (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/engine.py"},"region":{"startLine":9058}}}],"partialFingerprints":{"codehealthFindingId/v1":"8608ace19f247665709552717d9b757e5cfd5feb4820faef11f97a0e333a1b67"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeAssetManager._sync_project_experience_skills (cyclomatic 32): KnowledgeAssetManager._sync_project_experience_skills has cyclomatic complexity 32 (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":"backend/knowledge_assets.py"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"723a3ea6d8aed8f8661d3d62fa00494d33ab9b5d708a0b793c165dcf99dc836b"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextMenu.FloatingLayers (cyclomatic 32): ContextMenu.FloatingLayers has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 5 of the 32 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 1769, 1737, 1799, \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/ContextMenu.tsx"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdec1bdd3e9ce20b9a71c6d24771a4f257c08bf1de25e737d54e00b4fea01b35"}},{"ruleId":"D1","level":"warning","message":{"text":"codeSyntax.highlightMarkupLine (cyclomatic 32): codeSyntax.highlightMarkupLine has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/codeSyntax.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0896b6d69581b8d93cee3a0e8d111ad4520e1d3df7a2c9ea460e2407488fb9"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeGraphManager.search (cyclomatic 31): KnowledgeGraphManager.search has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5ccd79ab1c8e49272b8b313df333ecb73b39ed139ca6270f380c5738b485e8"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerRuntime.run (cyclomatic 31): WorkerRuntime.run has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/runtime.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"838710ceab4f55db31014649b577b491d5e0550e4f37262a892e013fc5965064"}},{"ruleId":"D1","level":"warning","message":{"text":"ReasoningPanel.ReasoningPanel (cyclomatic 31): ReasoningPanel.ReasoningPanel has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 13 of the 31 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 167, 186, 119, \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/ReasoningPanel.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f340c7df66b3b0334f86c4ef3c3f025716e9bfeac0d4ec13db004e34c3cdf2b2"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._run_dm_turn (cyclomatic 30): ProjectEngine._run_dm_turn has cyclomatic complexity 30 (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/engine.py"},"region":{"startLine":3912}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55bd67ba159e1fa964f35a2a20dd25b308118153dc57fb05100968554134156"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsView.ModelsPane (cyclomatic 30): SettingsView.ModelsPane has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 5 of the 30 points are its own statements and the rest belongs to 9 function items inside it that branch (handleSave, a function literal at line 480, renderConnStatus, \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/SettingsView.tsx"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebe05a27d9bb109c02fe8ef1939cf68d7fea48bcd83cff08cc1f4ebf84f1aa8"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewTabs.PreviewTabs (cyclomatic 30): PreviewTabs.PreviewTabs has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 64, a function literal at line 45, a function literal at line 119, \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/preview/PreviewTabs.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"495cf39e6d2f64a95388796192e66a22d0fd914768adc0d5a8e27f7cd9b05a99"}},{"ruleId":"D1","level":"warning","message":{"text":"PptxPreview.parseTextShape (cyclomatic 30): PptxPreview.parseTextShape has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/PptxPreview.tsx"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8840ae7528f640855844ef161cada82ba0f6373f20d968ff95c5297a674b758"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewApp.previewTabsReducer (cyclomatic 30): PreviewApp.previewTabsReducer 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":"src/preview/PreviewApp.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bda19db891e94618f2e1f9257aa999f418a5756482f4557975bf77b99b4134"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._run_agent_turn (cyclomatic 29): ProjectEngine._run_agent_turn 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":"backend/engine.py"},"region":{"startLine":4856}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29b0a421882d857bda5cee7fa1bc17c58bf3af41f945b2cd246b088a22a8e0b"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine.delete_agent_permanently (cyclomatic 29): ProjectEngine.delete_agent_permanently 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":"backend/engine.py"},"region":{"startLine":7180}}}],"partialFingerprints":{"codehealthFindingId/v1":"524fc8a7b3cabe5885bada8643cb10a2efacc23401210d601e7f3ab689572dd9"}},{"ruleId":"D1","level":"warning","message":{"text":"lineage.resolve_task_lineage (cyclomatic 29): lineage.resolve_task_lineage 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":"backend/knowe_provenance/lineage.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"19933abf29e8b87157dbaf21e0bcd180dd9185d2ff0a9d6d31043ae868e5c2db"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge_graph._render_node (cyclomatic 29): knowledge_graph._render_node 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":"backend/knowledge_graph.py"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"161f600f45c282ca3f83e555dca2cd64932952fa9f26f8d31dd972ad9315e3b5"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer.load_from_disk (cyclomatic 29): KnoweServer.load_from_disk 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":"backend/server.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa87d25fd38a1ac86b6e68d0e3b68e0c5ce49851b085a0f3898b5b23a8ac88b2"}},{"ruleId":"D1","level":"warning","message":{"text":"state.humanizeCompletionStatus (cyclomatic 29): state.humanizeCompletionStatus has cyclomatic complexity 29 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 5 belong to 3 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/store/state.ts"},"region":{"startLine":2197}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6486237115dce9d8bb560d36142b43688738f4c4ff3afc7dc7174f06d79b704"}},{"ruleId":"D1","level":"warning","message":{"text":"ConvList.ConvList (cyclomatic 29): ConvList.ConvList has cyclomatic complexity 29 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 10 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ConvList.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c0e710cad49d32c7e6ccfadaf7310d2c99c9f6fd9e66c49be0005edb3044dd"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._loop (cyclomatic 28): ProjectEngine._loop has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":4431}}}],"partialFingerprints":{"codehealthFindingId/v1":"076e64b55bbd01366c7b9a8cd5c6370537a8e57f766a101a84b66c6fba21cf61"}},{"ruleId":"D1","level":"warning","message":{"text":"CompletionEvent.from_dict (cyclomatic 28): CompletionEvent.from_dict has cyclomatic complexity 28 (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":"backend/knowe_harness/completion.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d26754c8f75dac2b7c06d260c36756e3da9cf97e93a9494ae3d756dcb19c81"}},{"ruleId":"D1","level":"warning","message":{"text":"favorites.useFavoritesStore (cyclomatic 28): favorites.useFavoritesStore has cyclomatic complexity 28 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/favorites.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"335192cd180c1d82f52788c68582931dffe05c215bb83f0823a92adc0784f303"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._write_agent_memory (cyclomatic 27): ProjectEngine._write_agent_memory has cyclomatic complexity 27 (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":"backend/engine.py"},"region":{"startLine":7331}}}],"partialFingerprints":{"codehealthFindingId/v1":"75898e042ba373070e8b791777041d0e1cd15985d229fe06def662cc24465ba8"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskResultV1.from_dict (cyclomatic 27): TaskResultV1.from_dict has cyclomatic complexity 27 (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":"backend/knowe_harness/completion.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"84db304f03a3aadf6e37d7bb38a7d343cf1c4939d172e35a4d4f674f03bf34cf"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteCompletionStore._event_for_run (cyclomatic 27): SQLiteCompletionStore._event_for_run has cyclomatic complexity 27 (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":"backend/knowe_harness/completion.py"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"8928aa7ea5f43a5cbb8cd778abf388ee51966addc26f66cfa66973ce53670e3e"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeAssetManager.refresh_assets (cyclomatic 27): KnowledgeAssetManager.refresh_assets 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":"backend/knowledge_assets.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d8613ff50bfb5339a309c7cb10c0f33ba24bed357a7055849f97eb4e039571"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryManager.search_project_history (cyclomatic 27): MemoryManager.search_project_history 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":"backend/memory_manager.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"3918cdceae65187ea2893db8e516e489a23f99268e0b8377ce09793ee4cff4df"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicStreamDecoder.feed (cyclomatic 26): AnthropicStreamDecoder.feed has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/anthropic_codec.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c796686845b3b60129c88273e7d6bc89cadb79e25e1034eec58ccb0e87cd9ac"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.delete_project (cyclomatic 26): Store.delete_project has cyclomatic complexity 26 (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":"backend/persist.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bc159ce3e0973a2d4ac7fdcf634b88591e252085be25ff254d04ae00e42ea7"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextMenu.decorateConversationList (cyclomatic 26): ContextMenu.decorateConversationList has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a07a364ca35fd70aa72ac26b327cf8c4fa1a78fc8e11fc9dd8a65d22a2005f7"}},{"ruleId":"D1","level":"warning","message":{"text":"ContactsView.AgentProfile (cyclomatic 26): ContactsView.AgentProfile has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 13 belong to 5 function items inside it that branch. 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/components/ContactsView.tsx"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"b557afd970c82e3b06e0bb51c6f1da08d3f3dc062bd55fb9723686f7915e6ae4"}},{"ruleId":"D1","level":"warning","message":{"text":"ZoomPan.ZoomPanViewport (cyclomatic 26): ZoomPan.ZoomPanViewport has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 13 belong to 7 function literals inside it that branch. 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/components/ZoomPan.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e87a8facf4c9d257e9ce54ac9ed85250fc4ec90e5e35d54fc6b3144f0ad088"}},{"ruleId":"D1","level":"warning","message":{"text":"attachments.extract_file_text (cyclomatic 25): attachments.extract_file_text has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/attachments.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a520d1359ee70739dcb1d3deef6755acd616ed64d3afa25838cf7d34f5adcf61"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._run_worker_attempt (cyclomatic 25): ProjectEngine._run_worker_attempt has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":3582}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4188b3a8a1d6201b576a4a4edc7c0ca531d11df2b471b796c1c7c360774522"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._create_task_envelope (cyclomatic 25): ProjectEngine._create_task_envelope has cyclomatic complexity 25 (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":"backend/engine.py"},"region":{"startLine":8402}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacb08174805a41591157613da216a461bb38a08dbfb678401d58c745001985d"}},{"ruleId":"D1","level":"warning","message":{"text":"engine.select_provider_fallback (cyclomatic 25): engine.select_provider_fallback 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf56054b1a0aca53b130985cf62a565e60956fab7894319d0f6940e3a2766bf"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderModelAdapter._stream_step (cyclomatic 25): ProviderModelAdapter._stream_step 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_adapters/model_adapter.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3398041200f1d2e37dd4ddf8229ad435882b9edfc9f3aa33eeb7b10a6fff24e"}},{"ruleId":"D1","level":"warning","message":{"text":"contracts.normalize_relative_path (cyclomatic 25): contracts.normalize_relative_path 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/contracts.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2269f12f068cbc1d0d12476b60c6a197465bb6d86bd378e54c2b2c28d2a710fd"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._cmd_update_agent_profile (cyclomatic 25): KnoweServer._cmd_update_agent_profile has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":3664}}}],"partialFingerprints":{"codehealthFindingId/v1":"733a26c2b9c8104ef6eb214d6d3797c9bb591b0e6735ea13aa800d54c8ad3052"}},{"ruleId":"D1","level":"warning","message":{"text":"socket.createSocket.handleServerControlEvent (cyclomatic 25): socket.createSocket.handleServerControlEvent 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/transport/socket.ts"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"9720e36f1ec643e83929f04f8e9863b37b780c7954ed56edae1cb313be50d941"}},{"ruleId":"D1","level":"warning","message":{"text":"projectAlias.reconcileProjectAlias (cyclomatic 25): projectAlias.reconcileProjectAlias has cyclomatic complexity 25 (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/store/projectAlias.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"292d33710716775233ba08f56257cbe23796bb42c59752255cd03bb0d067a53d"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.toCard (cyclomatic 25): knowledge.toCard has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/knowledge.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b209b1b22e15a452bda6d18db66d3b4bcf0961ff2983464435135c4413b644"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeGraphManager._apply_approval_signal (cyclomatic 24): KnowledgeGraphManager._apply_approval_signal 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":"backend/knowledge_graph.py"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"379dd8c2aa0d2a9c6311ea503c9006189a9d0cf71cd5941a0e37190d8eb84d07"}},{"ruleId":"D1","level":"warning","message":{"text":"privacy.sanitize_event (cyclomatic 24): privacy.sanitize_event 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":"backend/privacy.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a81b34728b1628a3b9259793c9ae212a3e4c1b8980c15a2b6f4dd0aaa087d8"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._rename_project (cyclomatic 24): KnoweServer._rename_project has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b369c093a2c39d8dbab08adffd8011b59fd31503adfe0ae9ce2a6d1d133d426c"}},{"ruleId":"D1","level":"warning","message":{"text":"DateCalendar.DateCalendar (cyclomatic 24): DateCalendar.DateCalendar has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 159, dayDisabled, goPrev, \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/DateCalendar.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea926594ffdf9e90c835aa7aa2cadab8eb7d894589aa1f5ed9e6385e0a139ba8"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordsDrawer.RecordsDrawer::renderBody (cyclomatic 24): RecordsDrawer.RecordsDrawer::renderBody 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. This shape REPEATS in the file: one other method here (RecordsDrawer.RecordsDrawer) 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/RecordsDrawer.tsx"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c815d0a330636f6d5942faafb1a35f4750975477f2114d1ec7a3254e57e858e"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownPreview.MarkdownPreview (cyclomatic 24): MarkdownPreview.MarkdownPreview has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 225, a function literal at line 145, a function literal at line 171, \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/preview/renderers/MarkdownPreview.tsx"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daca30226ea554e20a440c1a56a756b8ccaee1176c22b5366f3ac10af06f92a"}},{"ruleId":"D1","level":"warning","message":{"text":"PptxPreview.parseSlide (cyclomatic 24): PptxPreview.parseSlide 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":"src/preview/renderers/PptxPreview.tsx"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef144ae883eb46d3ecf1e8fac11335176e52d04fdb1d7a1be3da7e4e45dccf55"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropic_codec.encode_request (cyclomatic 23): anthropic_codec.encode_request has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/anthropic_codec.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"082d5637a4b7316847e5e25c8ede2002251fdf652139949cb7b1f9b53455cf50"}},{"ruleId":"D1","level":"warning","message":{"text":"_Markdownifier.handle_endtag (cyclomatic 23): _Markdownifier.handle_endtag has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/web_tools.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d750f58a1d4f0e8162c3555361c3f393fbbf98b5ae1b18e7e5ef6664cc75fb80"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweAgent.run_conversation (cyclomatic 22): KnoweAgent.run_conversation has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/agents/knowe_agent.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cd09cb7b19dec15c808028089d2314da6c9b11464c6f699d70ade4c5df5d5d"}},{"ruleId":"D1","level":"warning","message":{"text":"contract._check_card (cyclomatic 22): contract._check_card has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/contract.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf8f8cb5ba803f3da7e880ef7ad9dafc89f3d8c1d1dc62bc67fd54d6a8bac53"}},{"ruleId":"D1","level":"warning","message":{"text":"engine._agent_memory_duplicate_of_project (cyclomatic 22): engine._agent_memory_duplicate_of_project has cyclomatic complexity 22 (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":"backend/engine.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8d50ab9228971fd2bc1d2c448aa83159306546e83f4ac4d7c7eb22852fdbd3"}},{"ruleId":"D1","level":"warning","message":{"text":"engine._agent_messages (cyclomatic 22): engine._agent_messages has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":9408}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aef9b20b85c1e30c87c4eadd3c40afa66b53a450eda055ce04bda1634f80739"}},{"ruleId":"D1","level":"warning","message":{"text":"provider_client.normalize_usage_buckets (cyclomatic 22): provider_client.normalize_usage_buckets has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_client.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"afac5d5f0e793f587574d24ad280f023544b4e436a2440b098ab537bc96a1f73"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeAssetManager._render_asset_md (cyclomatic 22): KnowledgeAssetManager._render_asset_md has cyclomatic complexity 22 (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":"backend/knowledge_assets.py"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec6cf811b0a509ac553519c017869556a605392068615caa2988bc2f3ed40af"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge_assets._validate_distilled (cyclomatic 22): knowledge_assets._validate_distilled has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"857338f7dc86655505742562e283f437ea119b1fedfeae727cb9607cb56c25a3"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._do_replay (cyclomatic 22): KnoweServer._do_replay has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":2399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced50a7cb0fe8ef13132d150482f468ef12229d10883f152f06947f082dcaee0"}},{"ruleId":"D1","level":"warning","message":{"text":"tools_knowe._external_path (cyclomatic 22): tools_knowe._external_path has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afd36a1c849a4122a7e0d8c8e04ccbb78f616ac4af169e52c0e427b7bf6249a"}},{"ruleId":"D1","level":"warning","message":{"text":"state.registerMember (cyclomatic 22): state.registerMember has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/state.ts"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"828e1deb45cf211376570003222b48e1636a1a9ec0e16a6e4a0dc3d63c32fa32"}},{"ruleId":"D1","level":"warning","message":{"text":"state.applyCompletionStatus (cyclomatic 22): state.applyCompletionStatus has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/state.ts"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17f3cc63d5619f9de2fab1cc57bd51dd6a02842d22e8f77100ca33cca940ab6"}},{"ruleId":"D1","level":"warning","message":{"text":"FileCard.FileCard (cyclomatic 22): FileCard.FileCard has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 45, a function literal at line 70, a function literal at line 41, \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/FileCard.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e859ef977743ea86089364030b0e72b7a66ffdf61791738e62b8447e56c27f"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._persist_worker_token_usage (cyclomatic 21): ProjectEngine._persist_worker_token_usage has cyclomatic complexity 21 (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":"backend/engine.py"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"00845e900b3ed585d113066e19101f5ff7409b4ceb81a72f6df36a3ef847d77f"}},{"ruleId":"D1","level":"warning","message":{"text":"engine._memory_friendly_time (cyclomatic 21): engine._memory_friendly_time has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ea3f5ff823df4bdeb9fbad0e68a5fc24cdc7d4cabdcd1909665d1a6acf8094"}},{"ruleId":"D1","level":"warning","message":{"text":"HandoffBook.write_approval (cyclomatic 21): HandoffBook.write_approval has cyclomatic complexity 21 (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":"backend/handoff.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63c64f2a4f913404ad7f8008d4125d7018e5761851016c9f9342cbd09626ecd"}},{"ruleId":"D1","level":"warning","message":{"text":"tool_protocol._coerce_scalar (cyclomatic 21): tool_protocol._coerce_scalar has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb201200eeb53b93b0d6757aed2fc071b3e66ca5e7f9bfbdf56e491545d2ebf6"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeGraphManager.apply_user_override (cyclomatic 21): KnowledgeGraphManager.apply_user_override has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f71c772a7b62db115810d8b69af14cd5cba64faeb6d96a7e85f112e2136b111"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeGraphManager._detach_source (cyclomatic 21): KnowledgeGraphManager._detach_source has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f77d53fe1334a11d61a9939c319cac5358e1c534596e092c9486a1ec379f70a"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge_graph._fallback_extraction (cyclomatic 21): knowledge_graph._fallback_extraction has cyclomatic complexity 21 (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":"backend/knowledge_graph.py"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34d5496ad235595d666b53ea669e15ba9e67fd66f8d50edd85b3b097c8397c3"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskEnvelope.from_dict (cyclomatic 21): TaskEnvelope.from_dict has cyclomatic complexity 21 (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":"backend/runtime.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77173d9b3f72cfbb4dbca9d6b83c9da6ca7fe0375ce0247b3b0f649d6334bf0"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._resolve_preview_target (cyclomatic 21): KnoweServer._resolve_preview_target has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":5838}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a24a786880d59086974d2f6f7ce79e306888ed2405f044b0a01f9b27a7dd76"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer.run (cyclomatic 21): KnoweServer.run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":6541}}}],"partialFingerprints":{"codehealthFindingId/v1":"901942bc5d51bb3499df07073a4727e0bf68fe49b0050b9623ecd34532f45506"}},{"ruleId":"D1","level":"warning","message":{"text":"workspace_layout.ensure_internal_workspace (cyclomatic 21): workspace_layout.ensure_internal_workspace has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/workspace_layout.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f56b9ef14611cce4ece754ecfc1a44776ab67832085385a64a3333ea764b112"}},{"ruleId":"D1","level":"warning","message":{"text":"main.spawnBackend (cyclomatic 21): main.spawnBackend has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/main.ts"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e3f1246deef012fb05e9699129b4ae2bd34cec18f83eaabe0bdbb6fe6d102c"}},{"ruleId":"D1","level":"warning","message":{"text":"toolActivity.appendToolActivity (cyclomatic 21): toolActivity.appendToolActivity has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/toolActivity.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c697a9ecd46e7cab9a4907abedcaa6fb84e4adaa67af16289e7879f71ac110"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderClient.chat_stream (cyclomatic 20): ProviderClient.chat_stream 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":"backend/knowe_core/provider_client.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c236dbf2bb104a22aea264b50943f8e6dabb6fccd2eeb9ac3abf07f193768f"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskResultV1.from_completion (cyclomatic 20): TaskResultV1.from_completion 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":"backend/knowe_harness/completion.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"1425101c474177e8ddcdfa59ce3bbb27d9fe97326b4900c3c8a17dd7a85ca4e6"}},{"ruleId":"D1","level":"warning","message":{"text":"CompletionProjector._report (cyclomatic 20): CompletionProjector._report 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":"backend/knowe_harness/projections.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea233d779355817c01d0fe347184a697c0cbcc7be73bd627b9f5ce7a8b165087"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerRuntime._execute_tool (cyclomatic 20): WorkerRuntime._execute_tool 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":"backend/runtime.py"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"239ff6aca3b0a747b94cd492f4f3342a29c870cbcd179981cf07eb55f0000f98"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerRuntime._collect_facts (cyclomatic 20): WorkerRuntime._collect_facts has cyclomatic complexity 20 (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":"backend/runtime.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c92c77dac455805c96f5d3f1ee14eff661645956198fc0ed3502b7037737e21"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._cmd_user_message (cyclomatic 20): KnoweServer._cmd_user_message 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":"backend/server.py"},"region":{"startLine":2719}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8a812a3312da92370e53a0aff3654a3794116d55d5578578eb2309fa374510"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerRuntimeFactory.prepare_context (cyclomatic 20): WorkerRuntimeFactory.prepare_context 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":"backend/worker_gateway_runtime.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32c60bb977310ac09cd41874d88b8e11638aecf9cff8468a514ce5aa2660561"}},{"ruleId":"D1","level":"warning","message":{"text":"socket.createSocket.routeEvent (cyclomatic 20): socket.createSocket.routeEvent 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":"src/transport/socket.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47f14f8c192fefbb954d5ed8f3c9d39cfdebfb3b67e6efded7541395535261c"}},{"ruleId":"D1","level":"warning","message":{"text":"state.applyCompletionViewV1 (cyclomatic 20): state.applyCompletionViewV1 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":"src/store/state.ts"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a87bee8f46cc178be2d48108115800d750f221d5e320eb1932a66bc7e888a66"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsView.SettingsView (cyclomatic 20): SettingsView.SettingsView has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch (restartBackend, a function literal at line 754, a function literal at line 759, \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/SettingsView.tsx"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb1f6e0432d260bffabd879b90f61135a64edea796c16a6225d943500ae007d"}},{"ruleId":"D1","level":"warning","message":{"text":"fileKinds.kindOf (cyclomatic 20): fileKinds.kindOf 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":"src/preview/fileKinds.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d83c2b40531172307a5fd3da861554ce1305060599b7b2e5f11716618a7293c"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryRecoveryCard.FullCard (cyclomatic 20): DirectoryRecoveryCard.FullCard has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 10 belong to 4 function items inside it that branch. 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/components/DirectoryRecoveryCard.tsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3ab0c2d061558f5c48a3c08fbe282b94675006be08f9cc7bc8362348041d77"}},{"ruleId":"D1","level":"warning","message":{"text":"PptxPreview.PptxPreview (cyclomatic 20): PptxPreview.PptxPreview has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 567, 575, 583, \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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afdf520c10c388f974167ca6138d27000bc581bf9afcf39d6fa0055b283c7bf"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._normalize_outbound_files (cyclomatic 19): ProjectEngine._normalize_outbound_files 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":"backend/engine.py"},"region":{"startLine":2448}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a38f6551bf2028bf5e83686a98aadbef9b9294ee0957cc11caef2c5c096ac87"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._record_activity_from_event (cyclomatic 19): ProjectEngine._record_activity_from_event 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":"backend/engine.py"},"region":{"startLine":5882}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa4abf7e54ebe8e68506dfff66fed27ef13d9b2fa6b5c36c8c1318018f360e0"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine.project_summary (cyclomatic 19): ProjectEngine.project_summary 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":"backend/engine.py"},"region":{"startLine":6758}}}],"partialFingerprints":{"codehealthFindingId/v1":"30cdbc65513177624349d6e2f6c78199a460cc300dfea926c7f5150d243868aa"}},{"ruleId":"D1","level":"warning","message":{"text":"provider_identity.humanize_provider_error (cyclomatic 19): provider_identity.humanize_provider_error 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":"backend/knowe_core/provider_identity.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c685c383dff46241c4a7181c36903fd317539bac4b8751d27ee85b2590d552b1"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteCompletionStore._insert_event (cyclomatic 19): SQLiteCompletionStore._insert_event 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":"backend/knowe_harness/completion.py"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccc853e9e34d68637149f9c90485d823a76becf53815546fdae738404587568"}},{"ruleId":"D1","level":"warning","message":{"text":"lineage._memory_records (cyclomatic 19): lineage._memory_records 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":"backend/knowe_provenance/lineage.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f6d821df08458347905cf779db1a4269b8b1638854ff62559801eca9207c68"}},{"ruleId":"D1","level":"warning","message":{"text":"lineage._knowledge_records (cyclomatic 19): lineage._knowledge_records 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":"backend/knowe_provenance/lineage.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"7239b5b0dc0e0defa8ff9c78f794fcffa92bb8fb07127df81af5b842cbe37984"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeAssetManager._public_asset (cyclomatic 19): KnowledgeAssetManager._public_asset has cyclomatic complexity 19 (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":"backend/knowledge_assets.py"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"293727c3a2c6ae8815674c11c986ea82ef8ef5023048524964cb942ab3d35501"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeGraphManager.ingest_handoff (cyclomatic 19): KnowledgeGraphManager.ingest_handoff has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a253e5776007e980eb7f6c5381152abd8981cb2386b0072c40b34e08c4a815"}},{"ruleId":"D1","level":"warning","message":{"text":"SeenSpeechLedger._ensure_loaded (cyclomatic 19): SeenSpeechLedger._ensure_loaded has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/seen_speech.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3bd042833557108d1e61af2c85198937aecad9b824cc2ec5a0c8f9c0b60edd"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.toSkillPack (cyclomatic 19): knowledge.toSkillPack has cyclomatic complexity 19 (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/store/knowledge.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"7906f5afeb0222a4491356c3acaa1f7fe906c18656f0fc6929618cc3a68173a3"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalSearch.CommandPalette (cyclomatic 19): GlobalSearch.CommandPalette has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (onInputKeyDown, a function literal at line 383, a function literal at line 407, \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/GlobalSearch.tsx"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"71820136d155a887dfcbd452e66a781b00c68d2f73a2364aed7c7d82bbfc7736"}},{"ruleId":"D1","level":"warning","message":{"text":"ZinniaAgent._resolve_binding (cyclomatic 18): ZinniaAgent._resolve_binding has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/agents/zinnia.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"680f070bc7d7fffd66f4c1d1ba41ead3601e4c2fd16b60382b8038c8d74b5492"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._run_feedback_flight (cyclomatic 18): ProjectEngine._run_feedback_flight has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":4341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06ad331dfaac326049ec96e7b79925ec2ad82cde1f0de842af79661b9e7c568"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamAssembler._handle_tool_call (cyclomatic 18): StreamAssembler._handle_tool_call has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/stream_assembler.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"9006f689c6601c62511860fed4d6f002f873d0db9b4a3bdfd915d158b7163147"}},{"ruleId":"D1","level":"warning","message":{"text":"model.recorded_provenance (cyclomatic 18): model.recorded_provenance has cyclomatic complexity 18 (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":"backend/knowe_provenance/model.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"149fa71e083a6114e6586d18bd3eac9e8ea9f759211d41c637a0522ad7c20abc"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge_api._merged_skillpacks (cyclomatic 18): knowledge_api._merged_skillpacks 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":"backend/knowledge_api.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8404c018e709dbcd6a66f888198b3426de9588ecc6f441e5ad52921e183fec"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeAssetManager._pass_conflicts (cyclomatic 18): KnowledgeAssetManager._pass_conflicts 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":"backend/knowledge_assets.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6d70d83f60d5250e9bb6b8fe1190057b7b30f78b348f20573ec60af32ad5cd"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeAssetManager.apply_user_override (cyclomatic 18): KnowledgeAssetManager.apply_user_override 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":"backend/knowledge_assets.py"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"121945b85c03f29538ce6e691e690f5cc41ac67f970a75340e70b6dfba5153c2"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.purge_agent_events (cyclomatic 18): Store.purge_agent_events 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":"backend/persist.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7acc7607739f9189172e9c87b1085e58b7057f3de6efda7de3bb8dde0ae6262"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskRun.from_dict (cyclomatic 18): TaskRun.from_dict has cyclomatic complexity 18 (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":"backend/runtime.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3030eef6ef71bb65d4f13a9a3012c1093878080834b0ebc7c48e7baea6e1210"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._cmd_create_project (cyclomatic 18): KnoweServer._cmd_create_project has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":3529}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc87891392db1961f7ab0da91ab65f752c29649d2e08c91c34545cb120d84e15"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectoryPicker.DirectoryPicker (cyclomatic 18): DirectoryPicker.DirectoryPicker has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DirectoryPicker.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1f50edb8bcf2d6f2f5490d4894024508449bc23396a206bd5d3d9f5b1cbaca"}},{"ruleId":"D1","level":"warning","message":{"text":"delete_ops.find_locking_processes (cyclomatic 17): delete_ops.find_locking_processes 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":"backend/delete_ops.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1639828bf5088f4055cd68e79089f7d4373336695596dc854f6a7dc67a5c88a8"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._emit_completion_visible (cyclomatic 17): ProjectEngine._emit_completion_visible 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":"backend/engine.py"},"region":{"startLine":2699}}}],"partialFingerprints":{"codehealthFindingId/v1":"297441ee06b97a3b0750ebd85d52e592bf2d333974d1e1e7aeeb48a32b34fea8"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._correlate_visible_event (cyclomatic 17): ProjectEngine._correlate_visible_event has cyclomatic complexity 17 (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":"backend/engine.py"},"region":{"startLine":2931}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e01b460776f60d79077ac38175ae257e044bcb8735760682be7d8d09f181a00"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine.write_handoff_report (cyclomatic 17): ProjectEngine.write_handoff_report 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":"backend/engine.py"},"region":{"startLine":4060}}}],"partialFingerprints":{"codehealthFindingId/v1":"92300b5540fe552b87a75f95bea517924b058574ef083d2a0db945a97af53722"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectEngine._recent_activity_block (cyclomatic 17): ProjectEngine._recent_activity_block 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":"backend/engine.py"},"region":{"startLine":5478}}}],"partialFingerprints":{"codehealthFindingId/v1":"1957af9bcd30ea6248b417f822a8eee208792dd141880857f77e4af8c9047c29"}},{"ruleId":"D1","level":"warning","message":{"text":"engine._select_diverse_memory_clues (cyclomatic 17): engine._select_diverse_memory_clues has cyclomatic complexity 17 (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":"backend/engine.py"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"139de587f71d744fc0f90f75099d6ea090819fb00b0a20accb307af7014beeae"}},{"ruleId":"D1","level":"warning","message":{"text":"engine._parse_agent_worklog (cyclomatic 17): engine._parse_agent_worklog 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":"backend/engine.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcf5e8f47482578166d80c5ef7d9854c44a81e422bf9fb23758372aa4fa3923"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderModelAdapter._explicit_outcome (cyclomatic 17): ProviderModelAdapter._explicit_outcome has cyclomatic complexity 17 (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":"backend/knowe_adapters/model_adapter.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74bc6796f81441348cb36f021089218c28b003b20bd26b31d973d1a9531f6d9"}},{"ruleId":"D1","level":"warning","message":{"text":"WaitToken.from_dict (cyclomatic 17): WaitToken.from_dict has cyclomatic complexity 17 (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":"backend/knowe_harness/completion.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa461ffe14091c6fba3cf7944f0373613dcb29056ad0a4aef4298cafefc6d27"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteCompletionStore._scan_workspace_deltas (cyclomatic 17): SQLiteCompletionStore._scan_workspace_deltas 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":"backend/knowe_harness/completion.py"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"906e2709975827084c7dbaeb4111404fac39e19b91f6443341f32ad5b6597e00"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeAssetManager._third_party_skill_documents (cyclomatic 17): KnowledgeAssetManager._third_party_skill_documents 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":"backend/knowledge_assets.py"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba56fc91cc779762ca362144d1194b4238112de1f67234f5d015cd8803fbe9c"}},{"ruleId":"D1","level":"warning","message":{"text":"memory_manager._parse_retrieval_keywords (cyclomatic 17): memory_manager._parse_retrieval_keywords 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":"backend/memory_manager.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bacd2eaa29ddd56b1c358389bd3bcfe8add087be3ee0cf008a33883f5354fd"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._canonical_project_id_from_request (cyclomatic 17): KnoweServer._canonical_project_id_from_request 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":"backend/server.py"},"region":{"startLine":3310}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eabaa2e4b9a090627d9c290f0c08f316352308e537096abf255f5405b52a50d"}},{"ruleId":"D1","level":"warning","message":{"text":"selectors.orderRosterMembers.sorted (cyclomatic 17): selectors.orderRosterMembers.sorted has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/selectors.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16f6bcac733998ff2442a9f6e79d51d604fb9cc85200244283dc2254deac86e"}},{"ruleId":"D1","level":"warning","message":{"text":"records.useRecordsStore (cyclomatic 17): records.useRecordsStore has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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/store/records.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"84018baafb89b170719661ef32b7f42bc6466ee79215e862fd146e0a7868c426"}},{"ruleId":"D1","level":"warning","message":{"text":"filePreview.resolveProjectRelativeTarget (cyclomatic 17): filePreview.resolveProjectRelativeTarget has cyclomatic complexity 17 (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/store/filePreview.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e581ffd26d17ac917249a7a464b47ad9ed61290c0884a4268de6c0b445c446"}},{"ruleId":"D1","level":"warning","message":{"text":"tiptapMarkdown.markdownToTiptapDoc (cyclomatic 17): tiptapMarkdown.markdownToTiptapDoc has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/tiptapMarkdown.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbf4cb7fd8fd360fdeea6c8d3ce8f443cc4923a5af13dbfeca82032395d6cf6"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordsDrawer.RecordsDrawer (cyclomatic 17): RecordsDrawer.RecordsDrawer 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. This shape REPEATS in the file: one other method here (RecordsDrawer.RecordsDrawer::renderBody) 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/RecordsDrawer.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae6fce20f38b67c5a49f7be944b2ee885ccbf2d9927054d8a8139dbfb1ef266"}},{"ruleId":"D1","level":"warning","message":{"text":"SheetPreview.SheetTable (cyclomatic 17): SheetPreview.SheetTable has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 67, a function literal at line 100, a function literal at line 64, \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/preview/renderers/SheetPreview.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba8f4c5902a18bd604711381f988adecec3a1be6050f0a024b22d871a266cc6"}},{"ruleId":"D1","level":"warning","message":{"text":"ZinniaAgent._run (cyclomatic 16): ZinniaAgent._run 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":"backend/agents/zinnia.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49cb0cf6e20b29e6ff4f0b8f869cb01fcb36e2879cf0287d0dfd5fb009299bc"}},{"ruleId":"D1","level":"warning","message":{"text":"content_compress.compact_json (cyclomatic 16): content_compress.compact_json 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":"backend/content_compress.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85432e91a11b56cf7f8f75ae490a653ffd523cedf97eaf75e64c8ae04596477"}},{"ruleId":"D1","level":"warning","message":{"text":"context_compressor._projection_index (cyclomatic 16): context_compressor._projection_index 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":"backend/context_compressor.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c133eeea19d8ea27685e407de91e4cf0c7a671f83660d5059c3e972e8f20799"}},{"ruleId":"D1","level":"warning","message":{"text":"file_ops._apply_line_range (cyclomatic 16): file_ops._apply_line_range has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/file_ops.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af4c63330ae547527e6f5a6c893738c2f128ca9e9985236151263d715870034"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderModelAdapter.from_legacy (cyclomatic 16): ProviderModelAdapter.from_legacy 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":"backend/knowe_adapters/model_adapter.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e946d64645cbf1eaae85d618f87433f96e67eea1d7a35624fcb258ce16a87492"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamAssembler.finalize_turn (cyclomatic 16): StreamAssembler.finalize_turn 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":"backend/knowe_core/stream_assembler.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f78e65eeb80cf1022b08567781f7a4cbffd92182bf09768255ba24d83761bb"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeAssetManager.record_usage (cyclomatic 16): KnowledgeAssetManager.record_usage 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":"backend/knowledge_assets.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c48b185fe37207f795fcd1bd74093a07293806fa1ba175b1a9407ad4868ae32"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge_assets._normalize_md_body (cyclomatic 16): knowledge_assets._normalize_md_body 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":"backend/knowledge_assets.py"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bad9fbc4b03e6d4c312e815fc16220d64cd3752dfce3cd61569e971a9b2451d"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeGraphManager._public_node (cyclomatic 16): KnowledgeGraphManager._public_node 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":"backend/knowledge_graph.py"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"175df791e233ddfa495c9fdf5ae20166a48ac04af3870dc13e5e22abdb8a88da"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge_graph._render_graph_index (cyclomatic 16): knowledge_graph._render_graph_index 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":"backend/knowledge_graph.py"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9fb4b9b74a55165fcbc2203c780878f04f202a976c967a7aa0b4c752bbac5d"}},{"ruleId":"D1","level":"warning","message":{"text":"memory_manager._normalize_state (cyclomatic 16): memory_manager._normalize_state 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":"backend/memory_manager.py"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"6411c39b1f0fd4106fdf726db076875e568ca630cdec49887ce2c234ad9f7d18"}},{"ruleId":"D1","level":"warning","message":{"text":"mentions.resolve_mentions (cyclomatic 16): mentions.resolve_mentions 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":"backend/mentions.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee01a1c28f19647ff26c1483322020bd867af81202d6cff9fcd51efc6fe6bbe7"}},{"ruleId":"D1","level":"warning","message":{"text":"KnoweServer._delete_path_candidate (cyclomatic 16): KnoweServer._delete_path_candidate has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":4417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51c621b17464029a6d8c727aa4324dea1ef84e23dea0b9fba9836a2868f1d56"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.testBinding (cyclomatic 16): settings.testBinding 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/store/settings.ts"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d01690c43ec8db87a7bb31e71a1bb144e1d0ccfaa1fe57f77a457e0eb6f25e"}},{"ruleId":"D1","level":"warning","message":{"text":"BackendGate.BackendGate (cyclomatic 16): BackendGate.BackendGate has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. 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/components/BackendGate.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1666ff3417334f6a3bfb005c1170db0ef2aa2f83e218c1e426629245bd8124d0"}},{"ruleId":"D1","level":"warning","message":{"text":"FileCard.AttachmentCard (cyclomatic 16): FileCard.AttachmentCard has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 5 function items inside it that branch (open, a function literal at line 209, reveal, \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/FileCard.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"446cebfe2eb487dc09a7a7574853ff5be9d4ba3dff6a52300e89841004f65213"}},{"ruleId":"D1","level":"warning","message":{"text":"tokenUsage.rangeToBounds (cyclomatic 16): tokenUsage.rangeToBounds 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/store/tokenUsage.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1685fd1c37aa0eed34478425515d647e7309e0508253349f554a3bacaa31c79"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatStream.findRelayPair (cyclomatic 16): ChatStream.findRelayPair 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":"src/components/ChatStream.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d871fb1b1addf91831631fe68a6d46c68265a48cd1121375ca02e293aa4e7fd2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatStream.ChatStream::msgMenu (cyclomatic 16): ChatStream.ChatStream::msgMenu 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. This shape REPEATS in the file: one other method here (ChatStream.ChatStream) 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/ChatStream.tsx"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c0fd026d25db6560f014e8e499cf160f7aacb6358193a7f49e68cd802bbfc3"}},{"ruleId":"D2","level":"warning","message":{"text":"state.applyEvent (cognitive 412): state.applyEvent has cognitive complexity 412 (threshold 15). Drivers by points: if/else 85 (229 pts), ternaries 26 (75 pts), boolean chains 71, loops 12 (33 pts), error handling 1 (3 pts), match/switch 1 (nesting depth added 216). Of this number, 390 points are the body\u0027s own statements and 22 belong to 11 function literals inside it that branch. 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":"src/store/state.ts"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f049021931560f730f1f0306b1529a005506d670d1c0f23a9660c71474a4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatStream.ChatStream (cognitive 339): ChatStream.ChatStream has cognitive complexity 339 (threshold 15). Drivers by points: if/else 120 (163 pts), boolean chains 99, ternaries 45 (71 pts), loops 5, error handling 1 (nesting depth added 69). Of this number, 50 points are the body\u0027s own statements and 289 belong to 66 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/ChatStream.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19712e30bd64023dde316cdb1f525430283953852476a86a7a552a9b19cc667"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeView.KnowledgeView (cognitive 259): KnowledgeView.KnowledgeView has cognitive complexity 259 (threshold 15). Drivers by points: ternaries 44 (153 pts), if/else 47 (60 pts), boolean chains 46 (nesting depth added 122). Of this number, 85 points are the body\u0027s own statements and 174 belong to 47 function items inside it that branch. 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":"src/components/KnowledgeView.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e875722a81c1567093ad7cf049c12fa6e1bef4867ac387a5681594a8c2ea5f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.iter_worker_retrieval_context (cognitive 216): ProjectEngine.iter_worker_retrieval_context has cognitive complexity 216 (threshold 15). Drivers by points: if/else 48 (127 pts), loops 18 (39 pts), error handling 14 (23 pts), boolean chains 22, ternaries 2 (5 pts) (nesting depth added 112). 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":"backend/engine.py"},"region":{"startLine":6071}}}],"partialFingerprints":{"codehealthFindingId/v1":"155bd9326bb78869117a4647dcf41f80679b84cef40410c577e31d827d6e0bd4"}},{"ruleId":"D2","level":"warning","message":{"text":"ZinniaAgent._execute (cognitive 112): ZinniaAgent._execute has cognitive complexity 112 (threshold 15). Drivers by points: if/else 28 (60 pts), error handling 12 (28 pts), ternaries 6 (12 pts), boolean chains 9, loops 1 (3 pts) (nesting depth added 56). To reduce it, split the body into named stages: move each independent 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/agents/zinnia.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0dcb03a33f882cb250f7eecb8d5174f196da726c56e8e6feab9e0ccfe20a67"}},{"ruleId":"D2","level":"warning","message":{"text":"Composer.Composer (cognitive 109): Composer.Composer has cognitive complexity 109 (threshold 15). Drivers by points: boolean chains 42, if/else 41 (42 pts), ternaries 18 (22 pts), error handling 2 (3 pts) (nesting depth added 6). Of this number, 22 points are the body\u0027s own statements and 87 belong to 34 function items inside it that branch. 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":"src/components/Composer.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d064d551ef2b4af1d2f7c9136da9429298b49dd84ba28a2d1c16c637c414c59f"}},{"ruleId":"D2","level":"warning","message":{"text":"file_ops.search_files (cognitive 106): file_ops.search_files has cognitive complexity 106 (threshold 15). Drivers by points: if/else 21 (78 pts), loops 4 (11 pts), error handling 4 (10 pts), boolean chains 7 (nesting depth added 70). To reduce it, split the body into named stages: move each independent 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/file_ops.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efd49382559c7b04e7a4e0c962b68ac6bccc2a1c02650a4b06a5471b06774b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ApprovalCard.ApprovalCard (cognitive 101): ApprovalCard.ApprovalCard has cognitive complexity 101 (threshold 15). Drivers by points: ternaries 23 (55 pts), boolean chains 23, if/else 17 (23 pts) (nesting depth added 38). Of this number, 69 points are the body\u0027s own statements and 32 belong to 12 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/ApprovalCard.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce625786d8fa5ebc18da22f6a8ff79fba80f6d5ad1c04b6bf14778c40f8681d7"}},{"ruleId":"D2","level":"warning","message":{"text":"codeSyntax.highlightGenericLine (cognitive 100): codeSyntax.highlightGenericLine has cognitive complexity 100 (threshold 15). Drivers by points: if/else 19 (45 pts), boolean chains 26, loops 8 (24 pts), ternaries 2 (5 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent 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/preview/renderers/codeSyntax.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0be6994a883a7d51d5688e1933e1246999b3968bdeafd917b55fdd846540bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._delete_project_permanently (cognitive 92): KnoweServer._delete_project_permanently has cognitive complexity 92 (threshold 15). Drivers by points: if/else 32 (59 pts), error handling 10 (18 pts), boolean chains 10, ternaries 4 (5 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":4943}}}],"partialFingerprints":{"codehealthFindingId/v1":"42240601c4a9bdf53511c2df69b7b9e0e6dd1cd04d296f061a895c2a75f994ff"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._health_conn (cognitive 91): KnoweServer._health_conn has cognitive complexity 91 (threshold 15). Drivers by points: if/else 47 (58 pts), boolean chains 25, error handling 4 (5 pts), ternaries 2, loops 1 (nesting depth added 12). 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":"backend/server.py"},"region":{"startLine":3920}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0407220d13131c6e9a0641318a699ff2b6be7c0d3712b9c2125f3ed2619609"}},{"ruleId":"D2","level":"warning","message":{"text":"tools_knowe._parse_agents (cognitive 90): tools_knowe._parse_agents has cognitive complexity 90 (threshold 15). Drivers by points: if/else 28 (66 pts), boolean chains 12, loops 4 (6 pts), ternaries 3 (6 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent 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/tools_knowe.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"6003f86388e2e6e4e3578b60c4863250e6c15fee76976232936353d846a1905b"}},{"ruleId":"D2","level":"warning","message":{"text":"token_usage.aggregate_token_usage (cognitive 79): token_usage.aggregate_token_usage has cognitive complexity 79 (threshold 15). Drivers by points: if/else 19 (38 pts), boolean chains 22, loops 6 (9 pts), ternaries 3 (7 pts), error handling 1 (3 pts) (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":"backend/token_usage.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af1ed486d40617e156f968e3ab6ef6026ac9cc6c3f572eaf6b6066a69f0f674"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenUsagePanel.TokenUsagePanel (cognitive 79): TokenUsagePanel.TokenUsagePanel has cognitive complexity 79 (threshold 15). Drivers by points: ternaries 22 (38 pts), if/else 23 (24 pts), boolean chains 14, loops 2 (3 pts) (nesting depth added 18). Of this number, 27 points are the body\u0027s own statements and 52 belong to 16 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/TokenUsagePanel.tsx"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1144155d744212e0a6cc9334e9bf9d3552026af92a3a82218c608152b1f19c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentLoop.run (cognitive 77): AgentLoop.run has cognitive complexity 77 (threshold 15). Drivers by points: if/else 14 (31 pts), error handling 8 (22 pts), loops 5 (10 pts), boolean chains 8, ternaries 3 (6 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent 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/knowe_core/agent_loop.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c581157e3484dcba3e48c0eaad1d4036ecf7a0b50733a87583177c60fc058eb5"}},{"ruleId":"D2","level":"warning","message":{"text":"token_usage.normalize_token_usage_record (cognitive 76): token_usage.normalize_token_usage_record has cognitive complexity 76 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 23, error handling 9 (20 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/token_usage.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bd088b70793c24b692f9f7cbb607f83fc153faea5a79fbd21849961251251f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._stop_once (cognitive 74): ProjectEngine._stop_once has cognitive complexity 74 (threshold 15). Drivers by points: if/else 22 (31 pts), error handling 11 (22 pts), loops 8 (14 pts), boolean chains 6, ternaries 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5e42b34f76aa17b68501281817b3fc2b5272aadcecbac597a9adfb746e847a"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._serve_history (cognitive 74): KnoweServer._serve_history has cognitive complexity 74 (threshold 15). Drivers by points: if/else 17 (38 pts), loops 4 (14 pts), error handling 6 (11 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 37). 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":"backend/server.py"},"region":{"startLine":6272}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f57909488a6afd732e131c2e7247d57e73ac506a910ac9b221fa59ea9ae8f81"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_protocol.decode_text_tool_protocol (cognitive 73): tool_protocol.decode_text_tool_protocol has cognitive complexity 73 (threshold 15). Drivers by points: if/else 22 (37 pts), ternaries 6 (20 pts), boolean chains 14, error handling 1 (2 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"d920b24d2fdea20edb8bc13bd1cc6188fa65f5e8f34256a5f2a39caada5922d9"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager._refresh_graph (cognitive 69): KnowledgeGraphManager._refresh_graph has cognitive complexity 69 (threshold 15). Drivers by points: if/else 18 (45 pts), boolean chains 16, loops 5 (6 pts), ternaries 1 (2 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d86adefdb7a5059637b33e54d252bede15488719a63e0f4336fb4cb20986c9"}},{"ruleId":"D2","level":"warning","message":{"text":"codeSyntax.highlightMarkupLine (cognitive 65): codeSyntax.highlightMarkupLine has cognitive complexity 65 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 4 (10 pts), boolean chains 8, ternaries 2 (7 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/codeSyntax.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f32746db753e870c8ddb58f92693cf769bf73cf0663fd09cd3fe82daa4ad05"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryManager.update_project_context (cognitive 63): MemoryManager.update_project_context has cognitive complexity 63 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 21, ternaries 10 (13 pts), loops 1 (3 pts), error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/memory_manager.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b7c9edc1b447e0902223093a602766cfb9419cdfe1be860e93c26ff9afedd4"}},{"ruleId":"D2","level":"warning","message":{"text":"main.registerIpc (cognitive 61): main.registerIpc has cognitive complexity 61 (threshold 15). Drivers by points: if/else 30 (33 pts), boolean chains 16, ternaries 8, error handling 3, match/switch 1 (nesting depth added 3). None of this is in the body itself: all 61 points belong to 18 function items inside it that branch (localFileAction, a function literal at line 1610, a function literal at line 1645, \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":"electron/main.ts"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d99563b11f7b144a44c5f8af57b69e9a6f2e98a5554552fef0be72783d44db"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble.MessageBubble (cognitive 61): MessageBubble.MessageBubble has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 16 (27 pts), boolean chains 25, if/else 9 (nesting depth added 11). Of this number, 48 points are the body\u0027s own statements and 13 belong to 7 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/MessageBubble.tsx"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ef8ddc963a79fb425550a13ea1865cd2073302f523fb808bad5d2169f3fe3d"}},{"ruleId":"D2","level":"warning","message":{"text":"_Markdownifier.handle_starttag (cognitive 59): _Markdownifier.handle_starttag has cognitive complexity 59 (threshold 15). Drivers by points: if/else 26 (32 pts), ternaries 8 (16 pts), boolean chains 11 (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":"backend/web_tools.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e2bd082142373770b47fed3987af40cd6dde8f794a594189301ed5c841138d"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._memory_clues_block (cognitive 56): ProjectEngine._memory_clues_block has cognitive complexity 56 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 17, loops 4 (5 pts), ternaries 3 (4 pts), error handling 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":5328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a926b2f41e247a7400fe882fcf27acc538a1d010a1c0943a67738d89e677551c"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._delete_agent_permanently (cognitive 56): KnoweServer._delete_agent_permanently has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (24 pts), error handling 9 (20 pts), boolean chains 7, ternaries 5 (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/server.py"},"region":{"startLine":5359}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb91904c2f662130f1b314ad60ccd436efc8bbdb762a184adf4f24a36eab5e58"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.emit (cognitive 55): ProjectEngine.emit has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 17, ternaries 3 (5 pts), loops 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":8034}}}],"partialFingerprints":{"codehealthFindingId/v1":"572ccbbcf5e6fbdcc9f2398e742992eff6684deb2868cc67bc8b9ad623c820d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._completion_view_from_event (cognitive 54): ProjectEngine._completion_view_from_event has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 29, if/else 12 (20 pts), ternaries 3, loops 2 (nesting depth added 8). 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":"backend/engine.py"},"region":{"startLine":2562}}}],"partialFingerprints":{"codehealthFindingId/v1":"efabf61f430822bfe0f5e96111c82d18893615d900860f5b78487c6c32a9c96f"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerRuntime.run (cognitive 53): WorkerRuntime.run has cognitive complexity 53 (threshold 15). Drivers by points: if/else 20 (37 pts), boolean chains 5, error handling 4, loops 2 (4 pts), ternaries 2 (3 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":"backend/runtime.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13661c3554175ffe39569f098834fd115fdaaae17c5097290788d6899ec687a"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime_settings.apply (cognitive 53): runtime_settings.apply has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 12, ternaries 6 (11 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/runtime_settings.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fa3c447b1dc9ed10faeefae53d484c69e9ebb231df08b55619d589781ce058"}},{"ruleId":"D2","level":"warning","message":{"text":"RangeCalendar.RangeCalendar (cognitive 51): RangeCalendar.RangeCalendar has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (20 pts), ternaries 14 (18 pts), boolean chains 10, loops 3 (nesting depth added 6). Most of this is not in the body itself: 11 of the 51 points are its own statements and the rest belongs to 12 function items inside it that branch (pickDay, a function literal at line 196, a function literal at line 81, \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/RangeCalendar.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b4948153711fd3bc863861e61548f1dc605461ffdad77dae4d58f86667fbba"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App (cognitive 51): App.App has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 18, ternaries 12 (18 pts), if/else 12 (14 pts), match/switch 1 (nesting depth added 8). Of this number, 22 points are the body\u0027s own statements and 29 belong to 13 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/App.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fb576c779d1ad9b39ef0ae144c1c07be4f04f2bb1357eff3ca7b6e7279efac"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._persist_token_usage (cognitive 50): ProjectEngine._persist_token_usage has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 16, error handling 3 (5 pts), loops 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"27740853ff8c3a75d9320b9a0881ee71bdd17f5bf8fce77b8c371bce12ae55a6"}},{"ruleId":"D2","level":"warning","message":{"text":"file_ops.patch_file (cognitive 50): file_ops.patch_file has cognitive complexity 50 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 6, ternaries 3 (6 pts), error handling 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/file_ops.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9407c418d38edee89734b3d026cc68ca5f65e07dc781b54093807cf36fa8a8"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge_api._dispatch_post (cognitive 50): knowledge_api._dispatch_post has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (39 pts), boolean chains 11 (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":"backend/knowledge_api.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b10f392ef22b5978ab1bec961838b065b72eddf79c201a83a6a3d991b3b5b6"}},{"ruleId":"D2","level":"warning","message":{"text":"HandoffBook.write_report (cognitive 49): HandoffBook.write_report has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 22, if/else 19, ternaries 7, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/handoff.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a0ae4b5960ab548de9d2429bbb367cb3310f721913582e9bc1f726947aae69"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._completion_message_text (cognitive 48): ProjectEngine._completion_message_text has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 11 (19 pts), if/else 15 (16 pts), boolean chains 13 (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":"backend/engine.py"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e2bbd98f56836f578454558d31f8c160a0d9949e17fd6c58f0cd7e78a6cdc8"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalSearch.useGlobalSearchGroups (cognitive 48): GlobalSearch.useGlobalSearchGroups has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 7, loops 4 (6 pts), ternaries 5 (nesting depth added 16). None of this is in the body itself: all 48 points belong to 4 function literals inside it that branch (lines 133, 191, 135, \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/GlobalSearch.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6d38025630013ecf8b7072f214ab1f513014fd70609f913d82882b6ba1ab4f"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge_api._dispatch_get_sync (cognitive 47): knowledge_api._dispatch_get_sync has cognitive complexity 47 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 13, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_api.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a74e83fbecf64570fe5c2963525533d01cc90f950137d4898e02baedecd5d3c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelBindingModule.ModelBindingModule (cognitive 47): ModelBindingModule.ModelBindingModule has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 16 (22 pts), boolean chains 21, if/else 4 (nesting depth added 6). Of this number, 40 points are the body\u0027s own statements and 7 belong to 7 function items inside it that branch. 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/components/ModelBindingModule.tsx"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfed5294b5ddb380c5283104d1ca70d5372d5d39be411f8b9ee88cfcd1f6953d"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgePreview.KnowledgePreview (cognitive 47): KnowledgePreview.KnowledgePreview has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 15, ternaries 6 (8 pts) (nesting depth added 8). Of this number, 21 points are the body\u0027s own statements and 26 belong to 8 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgePreview.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e0a95f6b814110c523024350635f464be9ba0a90b8bffabde4137f0efa7af4"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._loop (cognitive 46): ProjectEngine._loop has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 4 (10 pts), boolean chains 9, error handling 3 (6 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":4431}}}],"partialFingerprints":{"codehealthFindingId/v1":"de09d305a952d6dca0c03f117f5ba79bf92b37304ef234fa6a497b815270dbc6"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderClient.chat_stream (cognitive 46): ProviderClient.chat_stream has cognitive complexity 46 (threshold 15). Drivers by points: if/else 10 (32 pts), error handling 4 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_client.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d9b5e86390e33e468d5245ebd5eb06944ed35b72fc7e6290ad8852a55fac96"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge.useKnowledgeStore (cognitive 45): knowledge.useKnowledgeStore has cognitive complexity 45 (threshold 15). Drivers by points: boolean chains 15, if/else 12 (14 pts), error handling 11, ternaries 4 (5 pts) (nesting depth added 3). Of this number, 31 points are the body\u0027s own statements and 14 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/knowledge.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c7916fbfdfbcc8edb6a1cdf3a6e58456ddff6b892eb73dd2b1454951f352fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._agent_memory_clues_block (cognitive 43): ProjectEngine._agent_memory_clues_block has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 16, loops 5 (7 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":7436}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa547b24013413ae87e1373f88e4e9749962ebc02e68d5eee6cd1ec669f4441"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderClient._parse_sse_line (cognitive 43): ProviderClient._parse_sse_line has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (29 pts), boolean chains 11, loops 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_client.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c64eb11aaa057b836902fea24ae3e9aa3b8911554c38ba50f114fbb24bf739a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConvList.ConvListItem (cognitive 43): ConvList.ConvListItem has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 15 (25 pts), boolean chains 9, if/else 4 (8 pts), loops 1 (nesting depth added 14). Of this number, 30 points are the body\u0027s own statements and 13 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ConvList.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"2073182f0f87b5de2ee5db1d2133b84ed41e691fe762133c9dfb0f69c561fdb4"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenUsagePanel.TrendChart (cognitive 43): TokenUsagePanel.TrendChart has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 21, if/else 10 (11 pts), ternaries 10 (11 pts) (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 27 belong to 13 function items inside it that branch. 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/components/TokenUsagePanel.tsx"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f0a0c533689bd2c45ccb7b04e3686307cc5b494d7ac1d04e8cb050bd9643d7"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager._merge_extraction (cognitive 42): KnowledgeGraphManager._merge_extraction has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 21, if/else 8 (16 pts), loops 3, ternaries 1 (2 pts) (nesting depth added 9). 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":"backend/knowledge_graph.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44a7c11d83ec973a432e7d7b6d5ee3534c6c35e42967e17f6df1b3f62fcb1d8"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryManager._ensure_history_initialized (cognitive 42): MemoryManager._ensure_history_initialized has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 18, ternaries 2 (3 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/memory_manager.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"babe8c9f33d7c28b385032b6ab669a45a76c797f84db79faad5141f46ca71824"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic_codec.encode_request (cognitive 41): anthropic_codec.encode_request has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 3, loops 2, ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/anthropic_codec.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4f06f4b7dcc269973566cf6d24c4a47fe3bb996c845d0364a03bc11518cbca"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextMenu.ForwardModalBody (cognitive 41): ContextMenu.ForwardModalBody has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 20, if/else 12, ternaries 8 (9 pts) (nesting depth added 1). Most of this is not in the body itself: 12 of the 41 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 919, a function literal at line 996, a function literal at line 886, \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/ContextMenu.tsx"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60a7dcef060845aa18ca414b2ad152a231c753ce6f80d99705d7b7dae74c862"}},{"ruleId":"D2","level":"warning","message":{"text":"PptxPreview.parseTextShape (cognitive 41): PptxPreview.parseTextShape has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 16, loops 2 (3 pts), ternaries 1 (nesting depth added 12). Of this number, 39 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/PptxPreview.tsx"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"382af8eeaeac47c5dc2acfb6c13d23668e271ecd5627df792ea45ee77077ecdf"}},{"ruleId":"D2","level":"warning","message":{"text":"PptxPreview.parseSlide (cognitive 41): PptxPreview.parseSlide has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (25 pts), ternaries 3 (9 pts), boolean chains 3, loops 2 (3 pts), error handling 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":"src/preview/renderers/PptxPreview.tsx"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f62af45634359bae85a4ee33d5cd0efb0a61061c6622f2218689a9c60010c38"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._emit_legacy_completion_visible (cognitive 40): ProjectEngine._emit_legacy_completion_visible has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 22, if/else 12 (17 pts), loops 1 (nesting depth added 5). 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":"backend/engine.py"},"region":{"startLine":2763}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d4aeb4b76082f05271e49cf0efc06dc3826c91547f08821ba7eb9d9edd5f27"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderModelAdapter._stream_step (cognitive 40): ProviderModelAdapter._stream_step has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (23 pts), ternaries 3 (9 pts), boolean chains 7, loops 1 (nesting depth added 21). 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":"backend/knowe_adapters/model_adapter.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a688424d0d49fcacaae0b8a5e2d9facdaa59ffc3434483d54ec969dac56746fb"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._sync_project_experience_skills (cognitive 40): KnowledgeAssetManager._sync_project_experience_skills has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 19, if/else 6 (11 pts), ternaries 3 (6 pts), loops 2 (3 pts), error handling 1 (nesting depth added 9). 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":"backend/knowledge_assets.py"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ee23ab7eb6e109f19cc2f1cd3ba6c0087cbe8bbffe454c273011b42d1dc4d7"}},{"ruleId":"D2","level":"warning","message":{"text":"privacy.sanitize_event (cognitive 40): privacy.sanitize_event has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 3 (7 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/privacy.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"15439a8c9e1fc7b3febde0eed26f03a08ca1e1f3443de90dabcce938ba0f1e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordsDrawer.RecordsDrawer::renderBody (cognitive 40): RecordsDrawer.RecordsDrawer::renderBody has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 7 (20 pts), if/else 11 (15 pts), boolean chains 5 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RecordsDrawer.RecordsDrawer) 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/RecordsDrawer.tsx"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb07fd95bdbaba711a3f0aad4e6292512f0d2648ccc8c327ea74e35b726c9633"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.commit_handoff_step (cognitive 39): ProjectEngine.commit_handoff_step has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 9 (11 pts), boolean chains 6, error handling 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":9058}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a3695057229203491a432737c0556c7437a856a012407071cd40e6e7a9743c"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer.load_from_disk (cognitive 38): KnoweServer.load_from_disk has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 10, ternaries 2 (3 pts), error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"211e7bde86ccf0ae900412231c42c044edf3dd557654b83b535dd4e83d2cdbc1"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._cmd_token_usage_req (cognitive 38): KnoweServer._cmd_token_usage_req has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 13, error handling 3 (5 pts), loops 2 (4 pts), ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d483610819ff228fe82de107dbb4c9dc2c75d0b65b134cb2edd648262f2f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._cmd_update_agent_profile (cognitive 38): KnoweServer._cmd_update_agent_profile has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 4 (11 pts), boolean chains 10, ternaries 1 (4 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":"backend/server.py"},"region":{"startLine":3664}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad3b556d92fd92da7e13e633682c8454b6ef53bd26feb2a3f23a01262559798"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewApp.PreviewApp (cognitive 38): PreviewApp.PreviewApp has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 18, if/else 14 (16 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 38 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 297, 191, 287, \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/preview/PreviewApp.tsx"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c00c76de94f7ccec8cc87ed3ccc53f3dbb21a19821f85b9d5032582db774881"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager.search (cognitive 37): KnowledgeGraphManager.search has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 16, if/else 7 (14 pts), ternaries 2 (4 pts), 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":"backend/knowledge_graph.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdecfd2142c78c99c7757eef8cf4feaaf0ae88695c06216b63a5bb2b19de9f2"}},{"ruleId":"D2","level":"warning","message":{"text":"FirstRunModelGate.FirstRunModelGate (cognitive 37): FirstRunModelGate.FirstRunModelGate has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 9 (18 pts), boolean chains 12, if/else 7 (nesting depth added 9). Of this number, 25 points are the body\u0027s own statements and 12 belong to 3 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/FirstRunModelGate.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f570b79394bf09569985571ac070e0a2b21130953f360d19dba52bd9556b10"}},{"ruleId":"D2","level":"warning","message":{"text":"engine._agent_messages (cognitive 36): engine._agent_messages has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 6 (8 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":9408}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdfe2189945ff71bca1a7fe2e5f4204d91080694a417a27226567cf90e8e2f0"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager._detach_source (cognitive 36): KnowledgeGraphManager._detach_source has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 7, loops 4 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2edeeb749c8cdff6702fe4ee14bd822cea9e543be3822dd55d9b16e56c9d033"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager._load_graph (cognitive 36): KnowledgeGraphManager._load_graph has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 3 (13 pts), if/else 4 (9 pts), loops 3 (9 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 23). 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":"backend/knowledge_graph.py"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"2664def0dee1f5abf1814a1a0ce6fc29db999d00ccb1a867e50a2ed524560cfe"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryManager.search_project_history (cognitive 36): MemoryManager.search_project_history has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 10, ternaries 2 (3 pts), error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/memory_manager.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0242b4cddfc61ab8e27d4190e21819deee5f0176f338885bfd6c3b9b9991ae1"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.delete_project (cognitive 36): Store.delete_project has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 7, error handling 4 (7 pts), loops 6 (7 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":"backend/persist.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2be5eb35e2b7d605832884478e460e137f6fa4e847753f530dbb3429e87af7"}},{"ruleId":"D2","level":"warning","message":{"text":"FavoritesView.FavoritesView (cognitive 36): FavoritesView.FavoritesView has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 11 (17 pts), if/else 8 (10 pts), boolean chains 4, loops 2 (3 pts), match/switch 2 (nesting depth added 9). Most of this is not in the body itself: 5 of the 36 points are its own statements and the rest belongs to 15 function items inside it that branch (a function literal at line 153, a function literal at line 146, a function literal at line 196, \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/FavoritesView.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af2ea2ab0753811fe443bba41ae9e2b84736ec4d87c69525f4d860c35a78589"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._recent_activity_block (cognitive 35): ProjectEngine._recent_activity_block has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":5478}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d303845d1454760ea7ce261b32cd0cd3cc91d75d2a13b578f9e4b1c3c958e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.delete_agent_permanently (cognitive 35): ProjectEngine.delete_agent_permanently has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 10, loops 4, error handling 1 (3 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":7180}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f565da4da3f35cf3068809e1b9ae4710e9ef9a3809b33ba35beedd59a246d9"}},{"ruleId":"D2","level":"warning","message":{"text":"provider_client.normalize_usage_buckets (cognitive 35): provider_client.normalize_usage_buckets has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 6 (9 pts), boolean chains 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":"backend/knowe_core/provider_client.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a36c68aede78172340a4342e0f2d3e38d36ff64e34334cc1c29aedf40a7ccb2"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._rename_project (cognitive 35): KnoweServer._rename_project has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (20 pts), error handling 5 (9 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 8). 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":"backend/server.py"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad9c10e8842b1e865b3f127c7c42bc1d772786e70cb910966bedfe672c7f7f6"}},{"ruleId":"D2","level":"warning","message":{"text":"favorites.useFavoritesStore (cognitive 35): favorites.useFavoritesStore has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 9 (16 pts), if/else 10 (11 pts), boolean chains 8 (nesting depth added 8). Of this number, 31 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/favorites.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"739817f6aa6753ca62f7182f0b15c2af405017c3d8dab1d469007733da9cb157"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactsView.ContactsView (cognitive 35): ContactsView.ContactsView has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 15, if/else 14 (15 pts), ternaries 3 (4 pts), loops 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 35 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 448, 415, 480, \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/ContactsView.tsx"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9da1287f391e52c40dcbdcd00261b5b8cf5375ae353396fb9c453e00b109f5"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewApp.previewTabsReducer (cognitive 35): PreviewApp.previewTabsReducer has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 4, match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/PreviewApp.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ff6b317cbbcfd9a4038e5be5f8154ba45b3f0c4357d21695f912b1fafca3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerRuntimeFactory.prepare_context (cognitive 34): WorkerRuntimeFactory.prepare_context has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 6, error handling 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/worker_gateway_runtime.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ece9108e65a7919f316597f99648b0945c9f1252b0b822350b476bd23fde9e"}},{"ruleId":"D2","level":"warning","message":{"text":"tiptapMarkdown.markdownToTiptapDoc (cognitive 34): tiptapMarkdown.markdownToTiptapDoc has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 5 (12 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 19). Of this number, 33 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/tiptapMarkdown.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c28e406820011ed4d23309c11e9f54f8995ad5a89bf83af2d0f18cda2411d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._run_dm_turn (cognitive 33): ProjectEngine._run_dm_turn has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 11 (12 pts), error handling 6 (8 pts), if/else 6 (7 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":3912}}}],"partialFingerprints":{"codehealthFindingId/v1":"add9e40225a875f875f49758b8d24ba1d8699424d4e272e475917d8a2d6ceb9a"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge_graph._render_node (cognitive 33): knowledge_graph._render_node has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (9 pts), ternaries 6 (9 pts), loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"668750099908b5344351ecc52b6f4935947938bb2465630795ad7754334519fb"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer.run (cognitive 33): KnoweServer.run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 5 (8 pts), loops 4 (7 pts), ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":6541}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b74027651ad935f629498d7f8d7e2314cc5d50ea599214e31564c9f25dec61"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextMenu.decorateConversationList (cognitive 33): ContextMenu.decorateConversationList has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 8, ternaries 3 (6 pts), loops 3 (nesting depth added 6). Of this number, 29 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b4af187fa1f22e0d78b26333298dcce94157d29851d8a06c00e2951e6e71dd"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectRuntime.aclose (cognitive 32): ProjectRuntime.aclose has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (16 pts), error handling 3 (12 pts), boolean chains 3, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/agent_runtime.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de6c3c9a1ad472f2491461473add12808c41b57b51a1c476464f2afe139438b"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweAgent.run_conversation (cognitive 32): KnoweAgent.run_conversation has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, loops 2 (4 pts), error handling 2, ternaries 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/agents/knowe_agent.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa38adf431555e1b61d3debc608e6f8f62f18396662688b1cff36a3ba2d844b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._record_activity_from_event (cognitive 32): ProjectEngine._record_activity_from_event has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 2 (6 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":5882}}}],"partialFingerprints":{"codehealthFindingId/v1":"0458caccd6dd3bf26feb197b311d0c36852ad70f57cfe3b01d479fb7a4a84bc7"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.select_provider_fallback (cognitive 32): engine.select_provider_fallback has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 9, error handling 1 (2 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f63d758b8fcb9dff9895a2bf5bc96dc99f6239e556bf4893479a763ed6da7a6"}},{"ruleId":"D2","level":"warning","message":{"text":"lineage._memory_records (cognitive 32): lineage._memory_records has cognitive complexity 32 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 3 (8 pts), boolean chains 7, loops 3 (6 pts), error handling 1 (2 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":"backend/knowe_provenance/lineage.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"012ba3d2968bd535f089cb707dc65246d1205bdc0ca6f0fc1e7bde14a255bc16"}},{"ruleId":"D2","level":"warning","message":{"text":"lineage.resolve_task_lineage (cognitive 32): lineage.resolve_task_lineage has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 9, loops 4 (6 pts), ternaries 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_provenance/lineage.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec7e0b38e73a19032377fe65f1b0b3d54d76c6a8dc78c16ef10514a49b71525"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager.refresh_assets (cognitive 32): KnowledgeAssetManager.refresh_assets has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 13, 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":"backend/knowledge_assets.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce41dc6d2771d86685026e265670ff522107f0749f8a8afe09d281a8acc5897a"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._run_agent_turn (cognitive 31): ProjectEngine._run_agent_turn has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 10, ternaries 5 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":4856}}}],"partialFingerprints":{"codehealthFindingId/v1":"873fde66cab353edc029c5fd2e8d6a62e36fd11be75bbb0faca234a968eae462"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderClient._parse_sse_stream (cognitive 31): ProviderClient._parse_sse_stream has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 5 (10 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_client.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b2013287008b855a33001c08b614ca3a4529e13c7a371904737b91b44c8e1d"}},{"ruleId":"D2","level":"warning","message":{"text":"socket.createSocket.handleServerControlEvent (cognitive 31): socket.createSocket.handleServerControlEvent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 6, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/transport/socket.ts"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08ee6847896433363fb3193663eae18fefb26e7b0b84f67c3a5f976dc5c75d3"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewTabs.PreviewTabs (cognitive 31): PreviewTabs.PreviewTabs has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14, ternaries 10, boolean chains 7. None of this is in the body itself: all 31 points belong to 9 function items inside it that branch (a function literal at line 64, a function literal at line 45, a function literal at line 119, \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/preview/PreviewTabs.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dff4e4877ece5d687a32edbe1a2d6aae0948a0f7f4224dc914530242269007d"}},{"ruleId":"D2","level":"warning","message":{"text":"PdfPreview.PdfPreview (cognitive 31): PdfPreview.PdfPreview has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14, boolean chains 11, ternaries 6. Most of this is not in the body itself: 8 of the 31 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 124, 167, 85, \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/preview/renderers/PdfPreview.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c1f10c981bb0ddfcf7031244137e188a4ebe48bc8dbbe40292c67c07f16663"}},{"ruleId":"D2","level":"warning","message":{"text":"contracts.normalize_relative_path (cognitive 30): contracts.normalize_relative_path has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 5, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/contracts.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e499377282a852b57c416c4ee9d2712c37ed8c21e44430b770744d6c845b9e6e"}},{"ruleId":"D2","level":"warning","message":{"text":"lineage._knowledge_records (cognitive 30): lineage._knowledge_records has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 4 (9 pts), boolean chains 7, loops 2 (3 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_provenance/lineage.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc10595058dd6018658582a16c91d13307e76d8d97cc9fec49e9e19d9186efc"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.purge_agent_events (cognitive 30): Store.purge_agent_events has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 7, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/persist.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e1688ce6e6e300b73fa7cf5a601b71380defc837b12efe5735f11f60e5b048"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._do_replay (cognitive 30): KnoweServer._do_replay has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, loops 2 (3 pts), error handling 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":2399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e3ca7446dda52e0f3d9681361bb4c327545400292057f5483028e136f50d98"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsView.ModelsPane (cognitive 30): SettingsView.ModelsPane has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (15 pts), ternaries 6 (8 pts), boolean chains 7 (nesting depth added 3). Most of this is not in the body itself: 4 of the 30 points are its own statements and the rest belongs to 9 function items inside it that branch (handleSave, renderConnStatus, a function literal at line 480, \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/SettingsView.tsx"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f18c337c19b94c388d6b0e4b7e33da109629744b1f56017ffee73342c85ea6"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeView.KnowledgeModals (cognitive 30): KnowledgeView.KnowledgeModals has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 11 (nesting depth added 1). Most of this is not in the body itself: 11 of the 30 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 1053, doRename, a function literal at line 1079, \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/KnowledgeView.tsx"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd767577355bca1723a565e94e4f6dca13cc89bbca2ca1985eebbbe06c129422"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._write_agent_memory (cognitive 29): ProjectEngine._write_agent_memory has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 12, if/else 10 (12 pts), error handling 2 (3 pts), loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":7331}}}],"partialFingerprints":{"codehealthFindingId/v1":"056beea3bd6317e1b64e9c65284ac90073a8e9834f646c11a41c80d43142990f"}},{"ruleId":"D2","level":"warning","message":{"text":"engine._parse_agent_worklog (cognitive 29): engine._parse_agent_worklog has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c9345d344f2357c25b60ec97040af9934a2793ffaed971c6c9afeb40ef16eb"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge_api._merged_skillpacks (cognitive 29): knowledge_api._merged_skillpacks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 7, loops 4 (7 pts), error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_api.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"207459575a99d16904aa31fb2259db1b384615ab57a1d570d5b6461b6ba44c49"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager._apply_approval_signal (cognitive 29): KnowledgeGraphManager._apply_approval_signal has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 10, loops 4 (5 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54256eb3c0cf5c3e22dc7f52564c7e3992a6e37ad0e1193a5a7cca3ba9bfe45"}},{"ruleId":"D2","level":"warning","message":{"text":"toolActivity.appendToolActivity (cognitive 29): toolActivity.appendToolActivity has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 5, loops 1 (nesting depth added 10). Of this number, 28 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/toolActivity.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b4fe2721175e486f8bf4dd6ed28b01d4a75977f4e891193824f38477498c32"}},{"ruleId":"D2","level":"warning","message":{"text":"projectAlias.reconcileProjectAlias (cognitive 29): projectAlias.reconcileProjectAlias has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (12 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/projectAlias.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c887f981e6ae23e58536e5e0a04ca0db06fa9501aee6df98d268932d8238fc50"}},{"ruleId":"D2","level":"warning","message":{"text":"contract._check_card (cognitive 28): contract._check_card has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/contract.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af3cdd68b098636aab9578eb24de94e32e4d069b8c210d5193c36cd34a042d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._run_worker_attempt (cognitive 28): ProjectEngine._run_worker_attempt has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, boolean chains 6, ternaries 3 (5 pts), error handling 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":3582}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b8129da1bbd0bc4e640047f3eede520029928d5ab68ca09bef4f0abe822619"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicStreamDecoder.feed (cognitive 28): AnthropicStreamDecoder.feed has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 9, error handling 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/anthropic_codec.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc16980d07551f00d1dba51e179f1d450f35ac160f52ff75cd03e222f745f082"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_protocol._coerce_scalar (cognitive 28): tool_protocol._coerce_scalar has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (17 pts), error handling 3 (6 pts), boolean chains 4, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edb0dd2fc263ae42eec01296d3f67add9f5fb97bb56d8043fa1d67b8985a196"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteCompletionStore._insert_event (cognitive 28): SQLiteCompletionStore._insert_event has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 5 (7 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/completion.py"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"958a2fcc876bbeace4f2089f12bdb65cc4e40090255361452fe0740de4413e93"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionProjector.drain (cognitive 28): CompletionProjector.drain has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 2 (6 pts), boolean chains 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/projections.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a555150c75523ce5fb1a5f0ff97a79d429ae34102d8fe63838c0e4659f8b41"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge_assets._validate_distilled (cognitive 28): knowledge_assets._validate_distilled has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 11, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"813fb3444370d3e1a7120fa6667f6e06a883108811899619c5e34c689e73594e"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager.apply_user_override (cognitive 28): KnowledgeGraphManager.apply_user_override has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 5, error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"62381187ceb9db403dd4c23b82da7a0ab4ae1202e086c9518a22ef034e36511d"}},{"ruleId":"D2","level":"warning","message":{"text":"_Markdownifier.handle_endtag (cognitive 28): _Markdownifier.handle_endtag has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 2 (5 pts), boolean chains 4 (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":"backend/web_tools.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7f41f4a786a74b3cb36f234bbda1c9f3e0c7ee78ddee6fda82cd8687a0d3c1"}},{"ruleId":"D2","level":"warning","message":{"text":"state.registerMember (cognitive 28): state.registerMember has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 9 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/state.ts"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f554cf6a23a88f605800b424aafb4f5356af3e6044b20c7850b4d15d4839cc"}},{"ruleId":"D2","level":"warning","message":{"text":"state.humanizeCompletionStatus (cognitive 28): state.humanizeCompletionStatus has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13 (22 pts), boolean chains 5, match/switch 1 (nesting depth added 9). Of this number, 23 points are the body\u0027s own statements and 5 belong to 3 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/store/state.ts"},"region":{"startLine":2197}}}],"partialFingerprints":{"codehealthFindingId/v1":"146bd2c950fa9657bbb78e30679e3ad0d3b194b22fa50d0d9f66e4fea81a91d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._normalize_outbound_files (cognitive 27): ProjectEngine._normalize_outbound_files has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 7, error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":2448}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dba5a3893294dc043efeaf68eb74b09c5dbdd3bdd802b3e2edb336dffc92fed"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionEvent.from_dict (cognitive 27): CompletionEvent.from_dict has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 24, if/else 2, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/completion.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3bbffd167f7bb228eb3306d1ea722593dc51b2e2ee5417fb9450127fcf6dc3"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._assert_project_delete_paths_isolated (cognitive 27): KnoweServer._assert_project_delete_paths_isolated has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 2 (6 pts), loops 3 (6 pts), boolean chains 3, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":4470}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a19f47127aefb40cf9b14ae2ca6452b8dce2f09ef83820a1bfb00609e53925"}},{"ruleId":"D2","level":"warning","message":{"text":"main.spawnBackend (cognitive 27): main.spawnBackend has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/main.ts"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b22df04a3dee9ba3eb9059709b1eb8415df0bcadacee4372c34b95655c705a9"}},{"ruleId":"D2","level":"warning","message":{"text":"ConvList.ConvList (cognitive 27): ConvList.ConvList has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, ternaries 6 (9 pts), if/else 2 (4 pts), loops 2 (3 pts) (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 11 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ConvList.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fbd39dfbd0f7265e743efbc9d1f487db1849d497ba267281efa7c5373cefbc"}},{"ruleId":"D2","level":"warning","message":{"text":"RosterPanel.RosterPanel (cognitive 27): RosterPanel.RosterPanel has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12, boolean chains 8, ternaries 7. Most of this is not in the body itself: 2 of the 27 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 164, a function literal at line 131, a function literal at line 91, \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/RosterPanel.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"25166fa07174aeb362540f49216abc28be7eb95d2adb1af02685521e025cc53a"}},{"ruleId":"D2","level":"warning","message":{"text":"context_compressor._projection_index (cognitive 26): context_compressor._projection_index has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/context_compressor.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"833d06b945f04c6866d6988a9abbd59a8d1d37ad8fbf00eb745baa03d3ea4ca3"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderClient._parse_anthropic_sse_stream (cognitive 26): ProviderClient._parse_anthropic_sse_stream has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 6 (12 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_client.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9286ffb13fc71fa9085304fd52f6f69db4add01ab8575abc6d2ca924957df8"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskResultV1.from_dict (cognitive 26): TaskResultV1.from_dict has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 22, if/else 3, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/completion.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a630edac34b0c3e5a97efb4fccf5779f96cf76fe60918480a8ebd85732b1ca"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteCompletionStore._event_for_run (cognitive 26): SQLiteCompletionStore._event_for_run has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 18, if/else 5, ternaries 3. 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":"backend/knowe_harness/completion.py"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"33845f610ae5b5ca2d7ec30238103efa07c046897196a6352914ce71bd34da9b"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionProjector._memory (cognitive 26): CompletionProjector._memory has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (6 pts), boolean chains 4, loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/projections.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb7c20a433458c7a78afd9fd7ab558022239eae429b3fc62efee6ad7582e2f8"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._render_asset_md (cognitive 26): KnowledgeAssetManager._render_asset_md has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (8 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 5). 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":"backend/knowledge_assets.py"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e0ac8be1a9bfac23232849c0b21e58a057e079161f67f90104e76e04dce114"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._create_task_envelope (cognitive 25): ProjectEngine._create_task_envelope has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 16, if/else 6 (7 pts), ternaries 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":8402}}}],"partialFingerprints":{"codehealthFindingId/v1":"01502650dcacf79b3049d6f4fbb2e1acc259f896a46b87018d083c4c0d3cbe20"}},{"ruleId":"D2","level":"warning","message":{"text":"engine._agent_memory_duplicate_of_project (cognitive 25): engine._agent_memory_duplicate_of_project has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (10 pts), loops 1 (nesting depth added 4). 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":"backend/engine.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99d80d25e792c66d3ea037807f79b98bcca712e65100a3238a50aa451531055"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamAssembler.finalize_turn (cognitive 25): StreamAssembler.finalize_turn has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/stream_assembler.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0bd54972667cd2e5f9fed698ed30f440faada41bce5e674883002b834e0f4b"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteCompletionStore._scan_workspace_deltas (cognitive 25): SQLiteCompletionStore._scan_workspace_deltas has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 4 (6 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/completion.py"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"004c8641ebf28ae7898967ea2283a58b8e9c6b934f3eabc60553101e7369abad"}},{"ruleId":"D2","level":"warning","message":{"text":"mentions._mentioned_aliases (cognitive 25): mentions._mentioned_aliases has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/mentions.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78c5cdedd786c52c75139ff512ad8e7a26b06b194f6c24556f7b361d2e33895"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerRuntime._collect_facts (cognitive 25): WorkerRuntime._collect_facts has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts), error handling 2 (4 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/runtime.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"dece993a646259c411c039ab4c4ea3eeb4c5382a25cebbcff9a5bc914a7dd2ca"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._resolve_preview_target (cognitive 25): KnoweServer._resolve_preview_target has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 6 (7 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":5838}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc79b56df97a74f7d4a4b29f3ab08ece4dadfd46b3fdd95a792eaa43223077a"}},{"ruleId":"D2","level":"warning","message":{"text":"tools_knowe._external_path (cognitive 25): tools_knowe._external_path has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 4, error handling 2 (3 pts), loops 2, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ad493485cf0432e8db93a1ef9f00ea79c603501aff364e7b4ccf250b31e4f4"}},{"ruleId":"D2","level":"warning","message":{"text":"workspace_layout.ensure_internal_workspace (cognitive 25): workspace_layout.ensure_internal_workspace has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 9, error handling 2 (3 pts), loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/workspace_layout.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdff2c03c6431d164f85d914abf3495bfa98ba763936b482f921f522ee77685a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextMenu.FloatingLayers (cognitive 25): ContextMenu.FloatingLayers has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12, ternaries 7, boolean chains 6. Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 1769, 1737, 1799, \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/ContextMenu.tsx"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"373533634e00c770b0b0600404f48435bd842aef6d27bea624e22663af746425"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge.toCard (cognitive 25): knowledge.toCard has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 17, ternaries 6 (7 pts), if/else 1 (nesting depth added 1). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/knowledge.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa404b484d3ac472b06e1d03829e0429f7d238be9cdc19c233005a0ef3d8acc"}},{"ruleId":"D2","level":"warning","message":{"text":"ReasoningPanel.ReasoningPanel (cognitive 25): ReasoningPanel.ReasoningPanel has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12, boolean chains 10, ternaries 3. Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 167, 186, 119, \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/ReasoningPanel.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfb96b6ea59574be36355729c853dc4a433f26d56e64342c01557ffa8f1d2dc"}},{"ruleId":"D2","level":"warning","message":{"text":"DateCalendar.DateCalendar (cognitive 25): DateCalendar.DateCalendar has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11, ternaries 6, boolean chains 4, loops 4. Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 159, goPrev, goNext, \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/DateCalendar.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"72970228fc9c3edd5ba453501af6706042e4d66aac1f5f0695145687b429c96c"}},{"ruleId":"D2","level":"warning","message":{"text":"attachments.extract_file_text (cognitive 24): attachments.extract_file_text has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (7 pts), ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 3). 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":"backend/attachments.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d806e114b8ea82b9b1d9b810430f29b64c35d70b421a4b08d4fe10adfaff9b4"}},{"ruleId":"D2","level":"warning","message":{"text":"messages.sanitize_messages (cognitive 24): messages.sanitize_messages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/messages.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb735bceeac840b9bcded10d9969778cec54976ee7fe478315e1931ab1da461f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamAssembler._validate_tool_calls (cognitive 24): StreamAssembler._validate_tool_calls has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/stream_assembler.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"83540c158b3836e9f7462cbe31e373b941a79a2160415d7f24e62ea41e6a8cad"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_protocol._xml_args (cognitive 24): tool_protocol._xml_args has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 4, loops 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ace597bf6b257d5e09f71c889b176dc50e1dfa863f3d76247e9cb615086e3f"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionProjector._report (cognitive 24): CompletionProjector._report has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, ternaries 4 (6 pts), error handling 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":"backend/knowe_harness/projections.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"21095128d31537a5e8d3d8ba526f6c1b063e62b04250f51657192388877ab3d1"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager.apply_user_override (cognitive 24): KnowledgeAssetManager.apply_user_override has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, error handling 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b39e3e43af004a3076d8a584fbc9064f9dd29a11bb0f7305da2f0e2344312d"}},{"ruleId":"D2","level":"warning","message":{"text":"server._build_handoff_items (cognitive 24): server._build_handoff_items has cognitive complexity 24 (threshold 15). Drivers by points: error handling 4 (10 pts), if/else 4 (8 pts), ternaries 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":7027}}}],"partialFingerprints":{"codehealthFindingId/v1":"2036cf5b9b46477a240aa70e9347849d69cf5ac5da42174fd4602cd1fe2dce59"}},{"ruleId":"D2","level":"warning","message":{"text":"state.applyCompletionStatus (cognitive 24): state.applyCompletionStatus has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 7, ternaries 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/store/state.ts"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12a01407e77b4b05a50620dc006de906b34f5add499948a1cf980b67d9bd010"}},{"ruleId":"D2","level":"warning","message":{"text":"AttemptProcessRegistry._terminate (cognitive 23): AttemptProcessRegistry._terminate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 3 (8 pts), error handling 2 (4 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":"backend/agent_runtime.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2a208ee5ffb832ac7bcf277a496ffe2acd3f04ab47b7e9b2993357d4226975"}},{"ruleId":"D2","level":"warning","message":{"text":"ZinniaAgent._run (cognitive 23): ZinniaAgent._run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (3 pts), boolean chains 2, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/agents/zinnia.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5226ab0e704fbf4e3381209ab34db6a32aef0b22be76ed20157278d90fb1c1"}},{"ruleId":"D2","level":"warning","message":{"text":"content_compress.compact_json (cognitive 23): content_compress.compact_json has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/content_compress.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"44549b1609543cd72dc4920f98f875e6ff76bdc687603a0cccb75535bb8bbf00"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._drop_member_lifecycle_activity (cognitive 23): ProjectEngine._drop_member_lifecycle_activity has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":5847}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de55948f1a8d7eb99381d0bb683881837d2ec4b8c23b416bf32d3ba2c783695"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.project_summary (cognitive 23): ProjectEngine.project_summary has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, ternaries 3 (5 pts), error handling 3, 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":"backend/engine.py"},"region":{"startLine":6758}}}],"partialFingerprints":{"codehealthFindingId/v1":"33717a49f4af9f09031245c3c85729d3db292d494cf7c7a3c141f39650d7222f"}},{"ruleId":"D2","level":"warning","message":{"text":"engine._repair_tool_calls (cognitive 23): engine._repair_tool_calls has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":9501}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ebbdb90f4c3130be61a55a338ff0a1398722a31341a736755ab65fe82128f3"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._canonical_project_id_from_request (cognitive 23): KnoweServer._canonical_project_id_from_request has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":3310}}}],"partialFingerprints":{"codehealthFindingId/v1":"08002eb466b5a9d52c564f19dcabc8c7fd6d67d53721049dff9f6c0f9dc19c16"}},{"ruleId":"D2","level":"warning","message":{"text":"token_usage.extract_token_usage_parts (cognitive 23): token_usage.extract_token_usage_parts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, loops 2 (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":"backend/token_usage.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3a7e53b3840e14ac74667bebda119cb038220c03949e07d04d76719924ff7a"}},{"ruleId":"D2","level":"warning","message":{"text":"socket.createSocket.routeEvent (cognitive 23): socket.createSocket.routeEvent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6 (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":"src/transport/socket.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8daffca5c9f15c3e6ee24f9da79c85c136ccea3576b6c33c0ccd38b017567fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatStream.findRelayPair (cognitive 23): ChatStream.findRelayPair has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3 (6 pts), boolean chains 4, 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":"src/components/ChatStream.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fadff019ced7e18e24032a554e09f89d61cf630ea7093320f8c1d24b6e4cbc9"}},{"ruleId":"D2","level":"warning","message":{"text":"engine._select_diverse_memory_clues (cognitive 22): engine._select_diverse_memory_clues has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (9 pts), loops 2 (3 pts) (nesting depth added 6). 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":"backend/engine.py"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e8561de330be1242ebc317aa6af128f98617405252ce9c16e068d44e77911a"}},{"ruleId":"D2","level":"warning","message":{"text":"provider_identity.humanize_provider_error (cognitive 22): provider_identity.humanize_provider_error has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_identity.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2e584fe44a77bc7a0b0fcfc5f74275b9c4d86da14220c8dea7106102206270"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamAssembler._handle_tool_call (cognitive 22): StreamAssembler._handle_tool_call has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, error handling 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/stream_assembler.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db6063aa89f826c653f07323600773f6bb929d3dcce362ebc6cc8d3511a9dad"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_protocol.decode_json_compat (cognitive 22): tool_protocol.decode_json_compat has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (7 pts), error handling 2 (6 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"5925bb2697a99d7187679b1cd7233753a8c34dcec690f5d7f6a76c4925c647eb"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskResultV1.from_completion (cognitive 22): TaskResultV1.from_completion has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), ternaries 1 (2 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":"backend/knowe_harness/completion.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"663c95bba96199ad50b8c4dc26d0aabcdf7b21e615be14e4a553faa28e169543"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._third_party_skill_documents (cognitive 22): KnowledgeAssetManager._third_party_skill_documents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, error handling 1 (2 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":"backend/knowledge_assets.py"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c563f8910d4bfc4ed09cc8b9846fa0eaa9be9d1f88c799fbae191679667afa4"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge_graph._fallback_extraction (cognitive 22): knowledge_graph._fallback_extraction has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (9 pts), loops 1 (nesting depth added 2). 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":"backend/knowledge_graph.py"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"806ea2014794f9ffdbb4ce3d81600b86194cfad735b70e2a06de47a1e07e1211"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.load_events (cognitive 22): Store.load_events has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/persist.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"562c4219175f5a40c0bd814510b5aaade303ab3caea033b9746184024e37dc24"}},{"ruleId":"D2","level":"warning","message":{"text":"SeenSpeechLedger._ensure_loaded (cognitive 22): SeenSpeechLedger._ensure_loaded has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), error handling 2 (3 pts), ternaries 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/seen_speech.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7976a9be4bedda7a5816fad885fa52eefad52034ad6bd50fbbe1deae2fb41d65"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._restart_engine (cognitive 22): KnoweServer._restart_engine has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 3 (5 pts), loops 1 (2 pts), ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":2262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d103a704838df38920c8362322660bf2fb58a7851d02e3a05361c997f38f9981"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._cmd_user_message (cognitive 22): KnoweServer._cmd_user_message has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, ternaries 3, loops 1 (2 pts), error handling 1 (nesting depth added 3). 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":2719}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b259933d14e115feff51f31364a003628cf5dfc5c2d8559e7ad589a473b646e"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalSearch.CommandPalette (cognitive 22): GlobalSearch.CommandPalette has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 3). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 5 function items inside it that branch (onInputKeyDown, a function literal at line 383, a function literal at line 407, \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/GlobalSearch.tsx"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"392f46dc602c86dde67b1a47e329831370cf9392b326ffbc9b5b8471a4225f12"}},{"ruleId":"D2","level":"warning","message":{"text":"ZinniaAgent._resolve_binding (cognitive 21): ZinniaAgent._resolve_binding has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"backend/agents/zinnia.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"215fe6b3f0a3d93c693fbb44c1ce360818d9bfe34bade395f5fe05e64dda863e"}},{"ruleId":"D2","level":"warning","message":{"text":"content_compress._compress_nested (cognitive 21): content_compress._compress_nested has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/content_compress.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6f58b86291a71a5fc25e73117a9441f62b8c01c63381000c44f6917827eb0e"}},{"ruleId":"D2","level":"warning","message":{"text":"delete_ops._restart_manager_resources (cognitive 21): delete_ops._restart_manager_resources has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (6 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/delete_ops.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad6cc776caf334aa104d2ede428bda3e18a0e70349534f536a8a4616012ccf4"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.rewrite_project_name_tree (cognitive 21): engine.rewrite_project_name_tree has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f0a25d2cceb56f5a021ee5677707cfb03c0ecda48ffe7999f084fe6d192c12"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_protocol._ast_call (cognitive 21): tool_protocol._ast_call has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcc619156c227be8555455909edaf9704145b5ac34ddaf7577ea0b48d3b8a43"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._pass_induce (cognitive 21): KnowledgeAssetManager._pass_induce has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4 (6 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d278f1590e8bd8fa44166ecff89a17fa71046183fde00c4866d8b48b7bd8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._public_asset (cognitive 21): KnowledgeAssetManager._public_asset has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 3 (5 pts), ternaries 2 (3 pts), loops 2 (nesting depth added 3). 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":"backend/knowledge_assets.py"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd42f6d7ea400885f4713674e2bfbcbd0af2cda907d21c7477e415fb03f13e0"}},{"ruleId":"D2","level":"warning","message":{"text":"memory_manager._normalize_state (cognitive 21): memory_manager._normalize_state has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 6, loops 2 (3 pts), error handling 1 (2 pts), ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/memory_manager.py"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fccba9095e6d39bdda4bc59ed271290c67b24e7dfad18555008b1b001b3c6be"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.load_roster_full (cognitive 21): Store.load_roster_full has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (3 pts), ternaries 1 (3 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":"backend/persist.py"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"5013b5c9db376078e44133a6a7aef063f0fed7dc2836cb4e6d8859ffd2a441c5"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerRuntime._execute_tool (cognitive 21): WorkerRuntime._execute_tool has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (7 pts), error handling 5 (6 pts), boolean chains 5, if/else 3 (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/runtime.py"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"08838594c0162784cb50c526596d9fff75b1ead843654c12199114f07433e0de"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._announced_members (cognitive 21): KnoweServer._announced_members has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (7 pts), boolean chains 2, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":2214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce767b5c67e63942911647d4949f97dc827dd76780800b202a1e87b5c9fd4ed"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._cmd_create_project (cognitive 21): KnoweServer._cmd_create_project has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 1 (2 pts), ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":3529}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a663b33d8d0ac0111bc19bb572ee741c85b89a33ccf7e55327f6d0593017f37"}},{"ruleId":"D2","level":"warning","message":{"text":"tools_knowe._project_path (cognitive 21): tools_knowe._project_path has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 3 (6 pts), loops 2 (3 pts), boolean chains 1, ternaries 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":"backend/tools_knowe.py"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f598f465544123d525a798006e55750a10035b3da76764a9448ea4dc484114b1"}},{"ruleId":"D2","level":"warning","message":{"text":"selectors.orderRosterMembers.sorted (cognitive 21): selectors.orderRosterMembers.sorted has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 5 (7 pts), boolean chains 4 (nesting depth added 5). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/selectors.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d500fcf791c0f3f1979aad2220b8ee9a964766d24ff723e11e5ed1f59da7ce0"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._persist_worker_token_usage (cognitive 20): ProjectEngine._persist_worker_token_usage has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 6, error handling 3. 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":"backend/engine.py"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af5cb6af3966b2ca7dd1dc267578ece57d6ebdca1e7ae37ff27b4ca17170c71"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._correlate_visible_event (cognitive 20): ProjectEngine._correlate_visible_event has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (8 pts), loops 1 (2 pts) (nesting depth added 4). 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":"backend/engine.py"},"region":{"startLine":2931}}}],"partialFingerprints":{"codehealthFindingId/v1":"245c5f3d36fb59b1af57427f24419c221611c16f5851c1f39c7f750f6dcd9834"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.restore_roster (cognitive 20): ProjectEngine.restore_roster has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":7591}}}],"partialFingerprints":{"codehealthFindingId/v1":"1298572449cfba2612f2e5009eb9b091a468415ed34472a2da73b4aa8504560c"}},{"ruleId":"D2","level":"warning","message":{"text":"HandoffBook.write_approval (cognitive 20): HandoffBook.write_approval has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 15, if/else 5. 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":"backend/handoff.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2a7df635e47d5469eab61d060b3c84369fb3f0f761f9a33416bea8f9044848"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderClient._request (cognitive 20): ProviderClient._request has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 4 (8 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_client.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73d96e4d1bf5e342a090e21a5351be5ef313203e92229b449eeb155e7e274fa"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_protocol._contains_tool_token (cognitive 20): tool_protocol._contains_tool_token has cognitive complexity 20 (threshold 15). Drivers by points: if/else 2 (6 pts), ternaries 2 (6 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5fba6c8f64030ff2e93a23121340d0586fb50c0c24ec8f99c1037f72cf76d9"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._pass_conflicts (cognitive 20): KnowledgeAssetManager._pass_conflicts has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (7 pts), loops 2 (3 pts), error handling 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7403f3963d598c353de83e04da7c38817e75d7973a4a8b8a5bb4a6c222d58bc"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge_assets._normalize_md_body (cognitive 20): knowledge_assets._normalize_md_body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a98cc7c7d5834afadce852572b1be61260d39661c8a706ec91206c178949c53"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager._public_node (cognitive 20): KnowledgeGraphManager._public_node has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, ternaries 3 (5 pts), 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":"backend/knowledge_graph.py"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9470c0bdc9b41fb1fc95a6dc5134930d9c23bfe9895a779f114230dcb5a83d"}},{"ruleId":"D2","level":"warning","message":{"text":"memory_manager._parse_retrieval_keywords (cognitive 20): memory_manager._parse_retrieval_keywords has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, error handling 1 (2 pts), loops 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/memory_manager.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15fe97644885cd80e34bcbe602311aaf59c0dfff7d7746027e517fd5a8de21a"}},{"ruleId":"D2","level":"warning","message":{"text":"memory_manager._rotate_active_history (cognitive 20): memory_manager._rotate_active_history has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 4 (7 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/memory_manager.py"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"3283f380f9559cac330b88b605ef207ab6a9bea7d3d2e6fc7d280a70e798b9c5"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskEnvelope.from_dict (cognitive 20): TaskEnvelope.from_dict has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 17, ternaries 2, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/runtime.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1389478c1a29184a7542f865acc0233f5e4b98ec2a53f18bd1d2532ea009096"}},{"ruleId":"D2","level":"warning","message":{"text":"server._list_dir_any (cognitive 20): server._list_dir_any has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 3 (5 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"backend/server.py"},"region":{"startLine":7274}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee4b51f4145f1408b1739daf8750d4de12e6228c08a531157cd7908a29c8032"}},{"ruleId":"D2","level":"warning","message":{"text":"tools_knowe._split_background_command (cognitive 20): tools_knowe._split_background_command has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 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":"backend/tools_knowe.py"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"84defbd3ca74fe81fa4e70eb5c93214684620b202eb5c5c5de082e506275fbb2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerRuntimeFactory.create (cognitive 20): WorkerRuntimeFactory.create has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/worker_gateway_runtime.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d252a86745f16c0623c37ada3b7812a0eb6330588c9468d7666b63342b129f"}},{"ruleId":"D2","level":"warning","message":{"text":"state.applyCompletionViewV1 (cognitive 20): state.applyCompletionViewV1 has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, boolean chains 6, ternaries 5. 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":"src/store/state.ts"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5760f71606fbe2b5c4336e8b4271e62d5fcd60ce8c25c30a9db44f3a126a581"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenUsagePanel.formatZhCompact (cognitive 20): TokenUsagePanel.formatZhCompact has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1, ternaries 1 (nesting depth added 8). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/TokenUsagePanel.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be4703600e69382a6a02ad65b582a01aeb1084046b3fe47e5e35e6816eb8b33"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactsView.AgentProfile (cognitive 20): ContactsView.AgentProfile has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 7, ternaries 3. Of this number, 11 points are the body\u0027s own statements and 9 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/ContactsView.tsx"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbadcf1072580068835305d66c17820c5c878611bbee95f79f944435aca39755"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownPreview.MarkdownPreview (cognitive 20): MarkdownPreview.MarkdownPreview has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, boolean chains 7, error handling 3, ternaries 1. Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 225, a function literal at line 145, a function literal at line 171, \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/preview/renderers/MarkdownPreview.tsx"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf489167129307891c579f1e8970a9df7c202256cc7fa54c333f92c615c59ef"}},{"ruleId":"D2","level":"warning","message":{"text":"PptxPreview.PptxPreview (cognitive 20): PptxPreview.PptxPreview has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 6, loops 2 (3 pts), ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 567, 575, 583, \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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"6611b85b1aa4a4e11454961fc4a433730ebb436a4bbe018a7677f995d367df7f"}},{"ruleId":"D2","level":"warning","message":{"text":"attachments._extract_with_xlrd (cognitive 19): attachments._extract_with_xlrd has cognitive complexity 19 (threshold 15). Drivers by points: if/else 2 (7 pts), loops 3 (6 pts), ternaries 1 (4 pts), error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/attachments.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4ff6712d615da8d1badfd5b2709eb142fc32750728305086347fcbefd8cbd1"}},{"ruleId":"D2","level":"warning","message":{"text":"aux_client._parse_aux (cognitive 19): aux_client._parse_aux has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (8 pts), 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":"backend/aux_client.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d59af25e3699270378b30fa0f3b0004f9570299321c69ca3ff9897fba52fc63"}},{"ruleId":"D2","level":"warning","message":{"text":"browser_tools.format_snapshot (cognitive 19): browser_tools.format_snapshot has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (3 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":"backend/browser_tools.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aaac16db27896700a1d30d3bc827c0ddeb470eff359c06769b0e6c72a01204b"}},{"ruleId":"D2","level":"warning","message":{"text":"engine._select_agent_memory_clues (cognitive 19): engine._select_agent_memory_clues has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, ternaries 1 (2 pts), 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":"backend/engine.py"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"4586c8a792e7035193169620501c1b9ef071716d3de35ff84f0ec1e9e8d3f745"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.learn_history_attr (cognitive 19): engine.learn_history_attr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":9464}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8d66e9dce20c89f005cd6d133a94d27bf05e18af29db7639a864153f298917"}},{"ruleId":"D2","level":"warning","message":{"text":"HandoffBook.find (cognitive 19): HandoffBook.find has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), error handling 1 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/handoff.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"df620831fab2458ccb232a9ee8b3a0a068a050e61415332ff091b7abe4eba1a5"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager.ingest_handoff (cognitive 19): KnowledgeGraphManager.ingest_handoff has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 6, error handling 4 (5 pts), ternaries 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc77a227cb56f361d611c26fd0078c46dd8d88bc78c0778738ee4ce95564bb4"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager.snapshot (cognitive 19): KnowledgeGraphManager.snapshot has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 6, if/else 3 (5 pts), loops 3 (4 pts), ternaries 1 (3 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":"backend/knowledge_graph.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"7152c08b16d86fb01073557c41176826860e64079c18f25ba3d9dff5b411cb47"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime_settings._ensure_loaded (cognitive 19): runtime_settings._ensure_loaded has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, error handling 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/runtime_settings.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d98b61dbac4d000c60de09797cfb03f3927b6aa35c8defbb68def2a6934c201"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._bind_project_id_to_approval (cognitive 19): KnoweServer._bind_project_id_to_approval has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":3257}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdef31a8f40f995a0d73ec495e3639873442f24be93caf60ac4f8b4edbd8e71"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._cmd_add_agents (cognitive 19): KnoweServer._cmd_add_agents has cognitive complexity 19 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 5 (6 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":3591}}}],"partialFingerprints":{"codehealthFindingId/v1":"60354a24057ae5def62fe55957389897f5961e689188db77d20f18510141b5c3"}},{"ruleId":"D2","level":"warning","message":{"text":"server._dedupe_agents_created (cognitive 19): server._dedupe_agents_created has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":7077}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e512d16d80b42e6a1a5837a59cb868f22664be03a0c8629a5a83cb7d09664d"}},{"ruleId":"D2","level":"warning","message":{"text":"token_pricing.estimate_cost (cognitive 19): token_pricing.estimate_cost has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, 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":"backend/token_pricing.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"8147a39a026c397358b017ac3a85a40d0b8187283ca36da55df1581608709ced"}},{"ruleId":"D2","level":"warning","message":{"text":"tools_knowe._missing_artifacts (cognitive 19): tools_knowe._missing_artifacts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (6 pts), boolean chains 4, error handling 2 (4 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d11004049b206967f86b9dd2995f802e1d77347b26ce1b356be21f8afaf57c"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.postCurrentSettingsNow (cognitive 19): settings.postCurrentSettingsNow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 2 (4 pts), boolean chains 3, 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":"src/store/settings.ts"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2cb2e7eb9af809f3d3e99bbc9a9e66f4a089b1e88c5bbf5eb5d2e4bde4b0f7"}},{"ruleId":"D2","level":"warning","message":{"text":"records.useRecordsStore (cognitive 19): records.useRecordsStore has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (10 pts), if/else 5, error handling 3, boolean chains 1 (nesting depth added 3). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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/store/records.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcb644344f3d3dcaefc3eac97088cc2363a5a25222b270beef06c813caf9654"}},{"ruleId":"D2","level":"warning","message":{"text":"FileCard.FileCard (cognitive 19): FileCard.FileCard has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 4. Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 45, a function literal at line 70, a function literal at line 41, \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/FileCard.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0809e4aeff9ea56dceb2063d69c7e01f5ec4aa60858ed6d1a41a79f5eaa6276"}},{"ruleId":"D2","level":"warning","message":{"text":"ZoomPan.ZoomPanViewport (cognitive 19): ZoomPan.ZoomPanViewport has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 142, 114, 117, \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/ZoomPan.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf6652a3535e7fbde7b9fe3ffbc636081c2d6276f20bd11c88fdf0aa13b6862"}},{"ruleId":"D2","level":"warning","message":{"text":"context_compressor.classify_layer (cognitive 18): context_compressor.classify_layer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, ternaries 2 (4 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":"backend/context_compressor.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"78903adca13a184f55225825d4dc5e2f94e1b4c9422a54f5854338ead6717695"}},{"ruleId":"D2","level":"warning","message":{"text":"delete_ops.find_locking_processes (cognitive 18): delete_ops.find_locking_processes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, loops 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/delete_ops.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5dfc771b7835685d69b40b9f125025851e1e2131bdb388c8c1552bc0cf9565"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._emit_completion_visible (cognitive 18): ProjectEngine._emit_completion_visible has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, ternaries 3 (5 pts), if/else 4, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":2699}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fec3eb9a68c9ba18a7be15aef1ca8e87c3c27fcb2bd652cce7f97e419d75e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.submit_dm (cognitive 18): ProjectEngine.submit_dm has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":3844}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b404138721658c91dbfa26d0adf1ac819efe5cd5a7cc9873e3aefc2695d7f2"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.write_handoff_report (cognitive 18): ProjectEngine.write_handoff_report has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (7 pts), if/else 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":4060}}}],"partialFingerprints":{"codehealthFindingId/v1":"71db1508ce3729cc83a369e473dd84f9096a054876b1d4840e572ed8bcd076d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderModelAdapter.from_legacy (cognitive 18): ProviderModelAdapter.from_legacy has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), ternaries 2 (4 pts) (nesting depth added 3). 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":"backend/knowe_adapters/model_adapter.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8826362a0dbe718e9ecec1f333d3d0db366d51cbbce842af064478d91bbf6e17"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderModelAdapter._explicit_outcome (cognitive 18): ProviderModelAdapter._explicit_outcome has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, ternaries 2 (4 pts), if/else 3 (nesting depth added 2). 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":"backend/knowe_adapters/model_adapter.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0da3ca91494c847214484728bfd67f5882312621a872d7d4e3561be63aa79f5"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic_codec._tool_use_blocks (cognitive 18): anthropic_codec._tool_use_blocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 3, error handling 1 (3 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/anthropic_codec.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e242b89f397f37e8663daed07d1f3b3872bef12d3da6090be26febe20591473e"}},{"ruleId":"D2","level":"warning","message":{"text":"provider_identity._clean_response_detail (cognitive 18): provider_identity._clean_response_detail has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_identity.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c9d77532e4754e095e5b071f9c73388830134932197a443e055befe6d49a2c"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_protocol._remove_trailing_commas (cognitive 18): tool_protocol._remove_trailing_commas has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/tool_protocol.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c730db33a9b15c7b798420e02ac89a3480be7f2dc560e8c8114dc5e405495a86"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionProjector._task_state (cognitive 18): CompletionProjector._task_state has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/projections.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"22478db673d419475e9ab23031d043777e1ec8d20fb48b1d26487da6a6be97f8"}},{"ruleId":"D2","level":"warning","message":{"text":"mentions.resolve_mentions (cognitive 18): mentions.resolve_mentions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 5, boolean chains 2 (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":"backend/mentions.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09a4320d9b04c50546d18acfaae9af614c64ba2541c899c74ce3e6a60bc6988"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._dm_channel_name (cognitive 18): KnoweServer._dm_channel_name has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":2827}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b6c488c16e5ff852930a99bf06bd63ce0dd1762d04c8f566d4143332117c45"}},{"ruleId":"D2","level":"warning","message":{"text":"server._pending_approval_snapshots (cognitive 18): server._pending_approval_snapshots has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":6790}}}],"partialFingerprints":{"codehealthFindingId/v1":"c422c530c740889ee5c6fd159ec635516a9ea69af4d11a96cc843a6bbfb01d95"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge.toSkillPack (cognitive 18): knowledge.toSkillPack has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, ternaries 6 (8 pts), if/else 1 (nesting depth added 2). 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/store/knowledge.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ae67ea94849421f3391c4ccf9e43868c416f8c569e5eb1bb64cefbda44e23c"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsView.SettingsView (cognitive 18): SettingsView.SettingsView has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 8, error handling 1. Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 5 function items inside it that branch (restartBackend, a function literal at line 754, a function literal at line 759, \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/SettingsView.tsx"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"57602046a8bdcdda38cc4e973b81a682bf7b50a5fbdbdb9088229e601911397c"}},{"ruleId":"D2","level":"warning","message":{"text":"_UsageTrackingClient.chat_stream (cognitive 17): _UsageTrackingClient.chat_stream has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/agents/knowe_agent.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7061c2ad0dde0bb3d5fe8923c130baae4d8336799d23d2a5c55ddb9465d81e"}},{"ruleId":"D2","level":"warning","message":{"text":"attachments.replace_file_blocks_with_text (cognitive 17): attachments.replace_file_blocks_with_text has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/attachments.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abac0dd029adc3db501aa6ca55ed3528b30bd27098b9121929f82f0db0d05c9"}},{"ruleId":"D2","level":"warning","message":{"text":"contract._check (cognitive 17): contract._check has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/contract.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae862299081c1434f488cbf82326aa48ceb64d0602bfe716553ac314e74a4222"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine.rename_project_references (cognitive 17): ProjectEngine.rename_project_references has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, error handling 1 (2 pts), loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25665ba73a69343c36fd478385141637f09703b76e098cb6fcb45b6d7d21239"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._run_feedback_flight (cognitive 17): ProjectEngine._run_feedback_flight has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4, boolean chains 3, error handling 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":4341}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bd6e80529bd3a0c283c1ecc2f5faa7674df3c6fe66c4a4997c57460c550792"}},{"ruleId":"D2","level":"warning","message":{"text":"model.recorded_provenance (cognitive 17): model.recorded_provenance has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, if/else 3. 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":"backend/knowe_provenance/model.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc74591b5718a29ef48d9e9a7d898a901ac9fc0475640f2c3caf6de3df1df8d2"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager.distill_task (cognitive 17): KnowledgeAssetManager.distill_task has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, error handling 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"backend/knowledge_assets.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"3016bc62e194a9ac50b663c988e1e2e67c252b7d0e5f522ce773fe5be0827eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._check_evidence (cognitive 17): KnowledgeAssetManager._check_evidence has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 2 (4 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 4). 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":"backend/knowledge_assets.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0152c1e7f70702da803cadd7457678926cda81366fc70715deb3dfd673914dea"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager.resolve_step_decision (cognitive 17): KnowledgeAssetManager.resolve_step_decision has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 3, loops 2 (3 pts), error handling 2, ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97a9d1090d38767c15d4969274fd0778e9459ec882ec3b32b8a5f65985309be"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._pass_dedup (cognitive 17): KnowledgeAssetManager._pass_dedup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ddc980522de4b509a26e21d655e4c706af23f9b9e058c0781116d611a81124"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager.read_node (cognitive 17): KnowledgeGraphManager.read_node has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"12587115acd96e9deba74d69de35181060ef76e5bd073635ad43d285d11ce495"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager._resolve_node (cognitive 17): KnowledgeGraphManager._resolve_node has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, 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/knowledge_graph.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3a674c52a7931af7e67ce61d6fdeacb7371c36bd48342ce5082fa287e1881b"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeGraphManager._add_lexical_links (cognitive 17): KnowledgeGraphManager._add_lexical_links has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a56f4743453f87f8d2b1997bd261b2d837fd048ee3cfef0aeeff2c7c74e7b70"}},{"ruleId":"D2","level":"warning","message":{"text":"memory_manager._valid_record (cognitive 17): memory_manager._valid_record has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, ternaries 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \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":"backend/memory_manager.py"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2514de98f81d50183b162a3ff24457189b6bed51b01a95b25cb0ea5b4d91a08"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskRun.from_dict (cognitive 17): TaskRun.from_dict has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 16, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/runtime.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"a260d98a7301038ef43ec9a6972d020315269091c7c334dc843028b8ceef4e60"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer.create_project (cognitive 17): KnoweServer.create_project has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, error handling 3 (5 pts), boolean chains 4, loops 2 (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":3407}}}],"partialFingerprints":{"codehealthFindingId/v1":"4784fb769076318369ab56a54a57a47f59dfd131a41979d06bb755dc8402fdd2"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._delete_path_candidate (cognitive 17): KnoweServer._delete_path_candidate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 4, error handling 2 (3 pts), loops 2, ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":4417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abe365eb9e20f79b12dc4273fbdb056d2235637cf6d1316e767ca04feb11017"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._stage_delete_paths (cognitive 17): KnoweServer._stage_delete_paths has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 4 (6 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":4507}}}],"partialFingerprints":{"codehealthFindingId/v1":"877b2bc1ba5f78a86ac5800d6c44bfaab9cf3327161d4485720cf0b503c9d183"}},{"ruleId":"D2","level":"warning","message":{"text":"main.migrateLegacyDataRoots (cognitive 17): main.migrateLegacyDataRoots has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/main.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b81f43db6a0950b252b54bb78de2af657dd4c8d055448b49da946b34b955f53"}},{"ruleId":"D2","level":"warning","message":{"text":"main.pruneOldLogs (cognitive 17): main.pruneOldLogs has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 2 (6 pts), if/else 3 (5 pts), error handling 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/main.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"41658895b41f88efbfa1203b208f76d3b46be17b46fe4b16504eefac9717693b"}},{"ruleId":"D2","level":"warning","message":{"text":"main.createPreviewWindow (cognitive 17): main.createPreviewWindow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 3). None of this is in the body itself: all 17 points belong to 7 function literals inside it that branch (lines 1356, 1346, 1349, \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":"electron/main.ts"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc080c39b6ab12dbfe0dfe2abcef296a883a8df14c60baa11a80d0cd78478bc"}},{"ruleId":"D2","level":"warning","message":{"text":"store.projectMenuJson (cognitive 17): store.projectMenuJson has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, ternaries 3 (6 pts), if/else 3 (4 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/store.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d024edb187524ecbc8820905279aa3033d32f4ba3948fd73cf29055ce75f0488"}},{"ruleId":"D2","level":"warning","message":{"text":"records.groupFileHistory (cognitive 17): records.groupFileHistory has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/records.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"544d74e7fdfc43c3b13eb950dd98ddf9fc8c748a676d320582bca96faaade913"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextMenu.openConversationMenu (cognitive 17): ContextMenu.openConversationMenu has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 7, boolean chains 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 428, 438, 448). 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/ContextMenu.tsx"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a3491f299905ada3d1c4f5a996e48e320f1e878aab34f61b666454b0eed77e"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextMenu.findConversationDom (cognitive 17): ContextMenu.findConversationDom has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3, boolean chains 2, ternaries 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f6757ace4ed6fec2777cfcd07ecad9ba9e5938691c5df412da17948e7df5df"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryPicker.DirectoryPicker (cognitive 17): DirectoryPicker.DirectoryPicker has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 5, if/else 4 (5 pts), ternaries 3 (5 pts), error handling 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 88, 68). 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/DirectoryPicker.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6b6f8e4d21dcbbfda4d49cdadb9eafab16e5dc987c5141e91f1af203631332"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryRecoveryCard.FullCard (cognitive 17): DirectoryRecoveryCard.FullCard has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 5, ternaries 4. Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 133, doConfirm, a function literal at line 189, \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/DirectoryRecoveryCard.tsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1782d4c8482f7f1f6ffde4257e1d79402b250fdb66942bafc157e3a1a66eee"}},{"ruleId":"D2","level":"warning","message":{"text":"tiptapMarkdown.parseInline (cognitive 17): tiptapMarkdown.parseInline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, loops 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/tiptapMarkdown.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9509e2ad04e94b2dbf4876459049b2bdee30d72b9703bce81e220fcdc3ef70ba"}},{"ruleId":"D2","level":"warning","message":{"text":"SheetPreview.SheetTable (cognitive 17): SheetPreview.SheetTable has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (8 pts), boolean chains 6, if/else 3 (nesting depth added 3). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 100, a function literal at line 64, a function literal at line 67, \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/preview/renderers/SheetPreview.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e67da2366aa5c9f2b3ed48e3d9858de02b225edd56ac4574dbe86b3f0cd51f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._recover_waiting_completions (cognitive 16): ProjectEngine._recover_waiting_completions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":3071}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93e32e1be6b8da65bdd5cddce0a8cba3f6dc34bb8f1dbf975639960cc9570a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectEngine._probe_clear_interrupt (cognitive 16): ProjectEngine._probe_clear_interrupt has cognitive complexity 16 (threshold 15). Drivers by points: error handling 2 (6 pts), if/else 3 (6 pts), loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":5051}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a36303e96995c351df6054a2c5ef726f9e6b352a0820bd8cada9cb1e338cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"file_ops._apply_line_range (cognitive 16): file_ops._apply_line_range has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 3, ternaries 2, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/file_ops.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdea4c54e1a3caabbf32b3e65ec160c152acbaaca0303d1130a0bf271f0c8c0a"}},{"ruleId":"D2","level":"warning","message":{"text":"Hub.replay (cognitive 16): Hub.replay has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/hub.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9715445b1739ac406b5e102bbcc5d00a7a675a912715e5154763905b994ac45"}},{"ruleId":"D2","level":"warning","message":{"text":"Hub.emit (cognitive 16): Hub.emit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/hub.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"358910494b33de7c97849ba5cf69ca90f76470ae2d8753440699748eb510345f"}},{"ruleId":"D2","level":"warning","message":{"text":"IdentityStore.load (cognitive 16): IdentityStore.load has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/identity_store.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8931344326b826b81f3a0bbd9ba83790521a8fcf8eaa3f33a92520955b564dd"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic_codec.decode_response (cognitive 16): anthropic_codec.decode_response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/anthropic_codec.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"604cf77c268642336260105dcf5670fdf197225d6fe03953d993bf9b53ef43fa"}},{"ruleId":"D2","level":"warning","message":{"text":"WaitToken.from_dict (cognitive 16): WaitToken.from_dict has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. 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":"backend/knowe_harness/completion.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"aede0e53a04ba0e57356bb8128b7166c0a7f25497ee1fe02ca0811b61a56f308"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager._merge_into (cognitive 16): KnowledgeAssetManager._merge_into has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af6f261e047d2cac4efbf7f3ab7e47f2dda2baeb55560313877ec824a0ab31e"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager.record_usage (cognitive 16): KnowledgeAssetManager.record_usage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 4, loops 3, error handling 2, ternaries 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1c3861e216a4a235c21da24e01b3c5f6a048eda05724595e0528bc927bb085"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager.match_for_task (cognitive 16): KnowledgeAssetManager.match_for_task has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 3, loops 2, error handling 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"927e010624b5bdd4da55281d36b0b76a2901bcda87b1040ef68348900a050753"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeAssetManager.purge_skillpack (cognitive 16): KnowledgeAssetManager.purge_skillpack has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d07f0d371967c4fc63d17fc6d2a0a2ed8d57eb7cd2767e586141183c274756"}},{"ruleId":"D2","level":"warning","message":{"text":"memory_manager._match_snippet (cognitive 16): memory_manager._match_snippet has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, 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":"backend/memory_manager.py"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee9523bab8b6b2637194f604a27e7c1584011f7eb05889ed1870777bb01950e"}},{"ruleId":"D2","level":"warning","message":{"text":"PlatformManifest._scan (cognitive 16): PlatformManifest._scan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 1 (3 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":"backend/platform_manifest.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbe41059c428116857d39f45cdad5451836eedb0006ede5548c8036009074c0"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._cmd_set_project_directory (cognitive 16): KnoweServer._cmd_set_project_directory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, error handling 3 (5 pts), boolean chains 4, ternaries 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":2940}}}],"partialFingerprints":{"codehealthFindingId/v1":"45eb272b7966ddbb8a38caf990a7f6a5b1f986f8aba091c599099ff108bb8542"}},{"ruleId":"D2","level":"warning","message":{"text":"KnoweServer._serve_preview_tree (cognitive 16): KnoweServer._serve_preview_tree has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 5, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":6101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41dd9e858ebad41af7729378f886401968e97575a675fb7fb0a655024fa704b"}},{"ruleId":"D2","level":"warning","message":{"text":"server._safe_read_any (cognitive 16): server._safe_read_any has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 1, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":7206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6c24a2b24bfb279f12d471fa6af88a3bf746c96fb4df7455fb44d72a71f14f"}},{"ruleId":"D2","level":"warning","message":{"text":"storage_migrator.migrate_task_runs (cognitive 16): storage_migrator.migrate_task_runs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/storage_migrator.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"affede8dbdca213bd5f8c4c0f8990f51e65970be06c38bc36b63a60b6b5d9d96"}},{"ruleId":"D2","level":"warning","message":{"text":"tools_knowe._copy_external_atomic (cognitive 16): tools_knowe._copy_external_atomic has cognitive complexity 16 (threshold 15). Drivers by points: error handling 5 (7 pts), if/else 5 (6 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"7120cb91f7798b86fdc5ddd66450aed155d1af372cb79261c08a340d2d9e013f"}},{"ruleId":"D2","level":"warning","message":{"text":"fileKinds.kindOf (cognitive 16): fileKinds.kindOf has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 6, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/fileKinds.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f289a71981d5dd6bd711696b388c5b1b4eb3dd94647a83e1afd5656bdf2b58b"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordsDrawer.RecordsDrawer (cognitive 16): RecordsDrawer.RecordsDrawer has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 25 (40 pts), if/else 28 (32 pts), boolean chains 24 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RecordsDrawer.RecordsDrawer::renderBody) 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/RecordsDrawer.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1c4e2057f5bda915321b62450d312674e2b2d3fbeab1fa2345c8919196b213"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/engine.py: FileTooLong \u2014 6525 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 6025 over it, 13.05\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/engine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37be1f62f8d346bb11b4196c427f7bfe2eae054852b998b0b82ff2f8caae5276"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/server.py: FileTooLong \u2014 5371 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4871 over it, 10.74\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: ChatStream.ChatStream: FunctionTooLong \u2014 ChatStream runs 982 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 882 over it, 9.82\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/ChatStream.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1fa1b93c7f80c69914c86af0a683fe7ef9b0bd64923500ce2fa735d408e3b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: KnowledgeView.KnowledgeView: FunctionTooLong \u2014 KnowledgeView runs 720 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 620 over it, 7.20\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/KnowledgeView.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1840bfb970a6e525f692fa75ee75ec05c7b69f4ec69560deb4ff3ce3bf569e64"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProjectEngine: TooManyMethods \u2014 204 methods. The bar is 30 methods; this is 174 over it, 6.80\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/engine.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dc06c841422cbb48ef26973415da6194d2fbd4e50b123a1506e9016dd05ada"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KnoweServer: TooManyMethods \u2014 178 methods. The bar is 30 methods; this is 148 over it, 5.93\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":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8aff5b60911419a8b220bf6b58c85a8a78d201ad19463109b54f986d1363508"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Composer.Composer: FunctionTooLong \u2014 Composer runs 575 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 475 over it, 5.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/Composer.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c791536c2d8d9aaa39f658fdf1ec27a4b415d0e9af67e26ea1fb3a1f9c1efeb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/tools_knowe.py: FileTooLong \u2014 2673 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2173 over it, 5.35\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/tools_knowe.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"183d13d45884281a47be1dc83ee259d2a6dda928ac5b946ecb245b3fab8ecb4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: socket.createSocket: FunctionTooLong \u2014 createSocket runs 460 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 360 over it, 4.60\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/transport/socket.ts"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb9b2d198261ccaccdfea85bb96fe0e873651e0aad05c973aceb05867836419"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: knowe_harness/completion.py: FileTooLong \u2014 2116 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1616 over it, 4.23\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/knowe_harness/completion.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee2a52bcfbf9ff99aae6a76c87b0a8f5bfbce7f2ab858f8ebca76d587015ebe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TokenUsagePanel.TokenUsagePanel: FunctionTooLong \u2014 TokenUsagePanel runs 383 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 283 over it, 3.83\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/TokenUsagePanel.tsx"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e828e6a8dc3b8fed9b6a007c453c184e6c5a6dd6e582c883474540b9fa7c046"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/knowledge_assets.py: FileTooLong \u2014 1806 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1306 over it, 3.61\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/knowledge_assets.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5bbca971d24dd3ca2ab570b78bbd0b322fe79c2d05599cddb718532a8bfd6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/knowledge_graph.py: FileTooLong \u2014 1786 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1286 over it, 3.57\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/knowledge_graph.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"881701efad46be8e5b011df6fa19c0518ad47d44c4e29e965f8baf68e6a8f593"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.App: FunctionTooLong \u2014 App runs 338 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 238 over it, 3.38\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/app/App.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"195d2693beb3983c064367fed42bc87c8db1d35f9700989c197b4621b074eaf4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RecordsDrawer.RecordsDrawer: FunctionTooLong \u2014 RecordsDrawer runs 332 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 232 over it, 3.32\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/RecordsDrawer.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ee4807e78f51da69c47849625db0276eab077b31135d8c5336e2598de63115"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ApprovalCard.ApprovalCard: FunctionTooLong \u2014 ApprovalCard runs 330 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 230 over it, 3.30\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/ApprovalCard.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5fbf87e3c51cbd059dcbe9689338ff4f30dba534ef1022f24bad82b2959b20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/memory_manager.py: FileTooLong \u2014 1589 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1089 over it, 3.18\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/memory_manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad618fd93b24e3ee82ba09c9b3e63f201693bbacaf90e2333435d112bc7dc559"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: store/state.ts: FileTooLong \u2014 1364 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 864 over it, 2.73\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":"src/store/state.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"201996e01cd6ef03443630bde40fccc6ab74a5db896d0f735849bae0bfbfce1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/ContextMenu.tsx: FileTooLong \u2014 1355 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 855 over it, 2.71\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":"src/components/ContextMenu.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5146194ba0409781b78f7302e4141c97779e78e4eee8087a4a391e7779919b3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ModelBindingModule.ModelBindingModule: FunctionTooLong \u2014 ModelBindingModule runs 257 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 157 over it, 2.57\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/ModelBindingModule.tsx"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3660cd039abafd28f6262dd1cd81d9325f826914ba184da796b43a5483be25c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ContextMenu.ForwardModalBody: FunctionTooLong \u2014 ForwardModalBody runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\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/ContextMenu.tsx"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"3082603a3f4e6c2f6be414e01329cf358d60cc7746cb43d6198b36274b8116a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: store/store.ts: FileTooLong \u2014 1243 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: useKnoweStore (809-2180). The bar is 500 significant lines; this is 743 over it, 2.49\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/store/store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53845b8fa4b32ff0620c5f335edb4b823458b19e4b0a42676c1a862e9ffd472c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/runtime.py: FileTooLong \u2014 1232 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 732 over it, 2.46\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/runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9902bea25ab3b9f9e73678d28241b0928a5e6af00fabeb9c806a62741b2e5d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatStream: ClassTooLong \u2014 982 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 582 over it, 2.46\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":"src/components/ChatStream.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"331e88cdecf9f6188762bdef0779c3a6a17d05358cebe451695a00d23c493721"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FavoritesView.FavoritesView: FunctionTooLong \u2014 FavoritesView runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\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/FavoritesView.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7f6a9e9b315718da8a06e5d9bd888e6db4da255cafae3685367d5554ff5e9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PreviewApp.PreviewApp: FunctionTooLong \u2014 PreviewApp runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\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/preview/PreviewApp.tsx"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8c6bad0bcccfecfafc7b23dfa6be6bebe250667e8cef5a5dc7dcd91f0d8984"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/ChatStream.tsx: FileTooLong \u2014 1122 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: ChatStream (212-1679). The bar is 500 significant lines; this is 622 over it, 2.24\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/ChatStream.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15b5255725996c3749d8275a58f67a138467851fe2e04fbc9ef3e825547cf1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ConvList.ConvList: FunctionTooLong \u2014 ConvList runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\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/ConvList.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54124bb5acc1980ba08b1b74596b00b9548209e4f64880c81ec3b6d6beaeb70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: electron/main.ts: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 585 over it, 2.17\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":"electron/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6967a62d3ed993eb51cc1378fab45a3851fd16f0e92428f403545df72dd3365"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: KnowledgeView.KnowledgeModals: FunctionTooLong \u2014 KnowledgeModals runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\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/KnowledgeView.tsx"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"63eae0154eea4a3acf83f69c81cc67c715d0d6cdd91e7d567ea0c63551f0c6fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/KnowledgeView.tsx: FileTooLong \u2014 1007 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: KnowledgeView (169-1037). The bar is 500 significant lines; this is 507 over it, 2.01\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/KnowledgeView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a56d294c2fb940e4e34120b8dd357dd633542c64d30004cd60d26574c93e00"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ContactsView.ContactsView: FunctionTooLong \u2014 ContactsView runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\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/ContactsView.tsx"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c3f96bf195dc6bd841a4cde5f44955934750ed8ca34886e4bb25dfb490dc3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TokenUsagePanel.TrendChart: FunctionTooLong \u2014 TrendChart runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\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/TokenUsagePanel.tsx"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"06af6d6f4704e5d8f12e40241ce34ccfa729f656bb726b8d7797355c38cf39f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: KnowledgePreview.KnowledgePreview: FunctionTooLong \u2014 KnowledgePreview runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\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/KnowledgePreview.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21a5acdea4a850e782064d68bd308219d34ea34f3bf4f78eede8a183a01eddd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SQLiteCompletionStore: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\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/knowe_harness/completion.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8368458e68da77481cb822c933fcba956f2e3ebde1c713e1a117e0393280e80"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KnowledgeAssetManager: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\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/knowledge_assets.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdbb925e2855f4b2991a7d406f6e4437390167b02cc995be274ca110bf2e167"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SettingsView.ModelsPane: FunctionTooLong \u2014 ModelsPane runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\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/SettingsView.tsx"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f665029ffabb5fe3330c6673a852848f827a5d286478b9ff4cd421b55b680a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.registerIpc: FunctionTooLong \u2014 registerIpc runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\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":"electron/main.ts"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b81e39f2fd460f30e87d148505aca471e024f935630eae15a53536e409986e5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KnowledgeView: ClassTooLong \u2014 720 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 320 over it, 1.80\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":"src/components/KnowledgeView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b2517a0728667d389ec39c7ad97b96f16a9405de3dd2d6b1635cb7c0cadd0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ContactsView.AgentProfile: FunctionTooLong \u2014 AgentProfile runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\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/ContactsView.tsx"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0cbf80b5ef7e8472b4f40d6f60e00fa4b4e82157f4e23d8a80ffc059e9b705"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agents/zinnia.py: FileTooLong \u2014 899 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 399 over it, 1.80\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/agents/zinnia.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fefbf2477b992ffecbfd6b94cb3bfa21f330fbc9d5602b48e51e775372a5889"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PdfPreview.PdfPreview: FunctionTooLong \u2014 PdfPreview runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\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/preview/renderers/PdfPreview.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4305fff37875b211332df5cd1770c491264b149f8e36695de100a6bb9ebf11"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: knowledge.useKnowledgeStore: FunctionTooLong \u2014 useKnowledgeStore runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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/store/knowledge.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce567ccbc1bfdfce2beca10d78a647ef22c5291279c4bf5fc620e74c77cfef8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RosterPanel.RosterPanel: FunctionTooLong \u2014 RosterPanel runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\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/RosterPanel.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4faf3aaef8edd3cf4b67c190c53a8e48b1d25ffd3779608b88fbd2ede4c050f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: RangeCalendar.RangeCalendar: FunctionTooLong \u2014 RangeCalendar 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/RangeCalendar.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0bebcbdaa907875d9827d0cb5a256e495cada51f4b7eb48064f21b31e894e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: store/settings.ts: FileTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 305 over it, 1.61\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":"src/store/settings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"106140125f8cf4e1ea936ba9c3a6b1467419aed831f20fef92cdedc9b0856ae1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/TokenUsagePanel.tsx: FileTooLong \u2014 797 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 297 over it, 1.59\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":"src/components/TokenUsagePanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"656bab995c3e3cdbef4813cb5c9e54135e2e36e2d1742632ce9e60cbc22da1f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ConvList.ConvListItem: FunctionTooLong \u2014 ConvListItem runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\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/ConvList.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"622574e7143463abc14a02dc6c814de7d6904145a007a94fc14b91d71304d98d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: knowe_core/provider_client.py: FileTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 233 over it, 1.47\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/knowe_core/provider_client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"758ab87c19fde6634d6606bbb47bf4b4812a43e82642a95b12b293fbd6f8bf4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/runtime_settings.py: FileTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 232 over it, 1.46\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/runtime_settings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cc9b821155ea581855bde925c5d48b64c425d210e60b68cc0ad7aa6f7ccbe9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/ContactsView.tsx: FileTooLong \u2014 731 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 231 over it, 1.46\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":"src/components/ContactsView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54e583eb2717d8ed8de8ad8b45d9b978f6b9432b109cfcc17451962d904cd30"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: trayCard.buildHtml: FunctionTooLong \u2014 buildHtml runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"electron/trayCard.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad030696718397c7eee36c0e740e64a26f7042bc41f73f295a161a296d8ae4f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: contract/envelope.ts: FileTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 218 over it, 1.44\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":"src/contract/envelope.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22e99bf0f3d4e9880b3572d24bbc119ac7f764cff598d9cc2503fb5fe63ff21"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Store: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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/persist.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f7de3d81ecc727b9d21dfdb17c99fd098959bc8395a6ad25ce5dc7843a018b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MarkdownPreview.MarkdownPreview: FunctionTooLong \u2014 MarkdownPreview runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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/preview/renderers/MarkdownPreview.tsx"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddbcd10af64471aa3c4bdb8daf1e5eb66b04cc4acfb3409d6fdc1d1c67f6bdb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ReasoningPanel.ReasoningPanel: FunctionTooLong \u2014 ReasoningPanel runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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/ReasoningPanel.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"de24ddccc5667ccf1e1121564d42ddcada5b2d12362ff5e8d59b91854bfa1613"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ZoomPan.ZoomPanViewport: FunctionTooLong \u2014 ZoomPanViewport 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/ZoomPan.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"091494f3d934b80ade00f3778080a56f24f5ecfe2cbe78a27d1e2f3dc8c9ab75"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/Composer.tsx: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 149 over it, 1.30\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":"src/components/Composer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23eaaccff96ab75d99f0765292a76b147c3be32f483cc9efa2d73fd576c93d79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/SettingsView.tsx: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 141 over it, 1.28\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":"src/components/SettingsView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a360187e8f2100aa38d7dd660de34f12a77f110d99cc6ed4f81475edd8b7d1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FirstRunModelGate.FirstRunModelGate: FunctionTooLong \u2014 FirstRunModelGate 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/FirstRunModelGate.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9c2fe88839813b2bb022c2f7fe1fde2c78fa24f9d82c6fae4e874000bc7f82"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PreviewTabs.PreviewTabs: FunctionTooLong \u2014 PreviewTabs runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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/preview/PreviewTabs.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eccbb2b034b4243d4247e290d6de9098b1d2dc1e608967f4021fa29f32e1177"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/persist.py: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 106 over it, 1.21\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/persist.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45076ec74ea5693148563c09393c0978b8565e6fa9fa4e3a0607a9a132d852a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: knowe_harness/projections.py: FileTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 105 over it, 1.21\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/knowe_harness/projections.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7972fcec8825c155a27af15921861f29ac7727621e5236f05f603fd5c9c0b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: GlobalSearch.useGlobalSearchGroups: FunctionTooLong \u2014 useGlobalSearchGroups runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\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/GlobalSearch.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"92359beab2d9dbf8ccc0d2eb8c84191ae91b7eaa117d0ccf705a8d9a4af03bbc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KnowledgeGraphManager: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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/knowledge_graph.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0792d6a2af6f6649842e5cb1291f9388ccca0606cc63ccdc605a9cc9360c2ae4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transport/socket.ts: FileTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: createSocket (262-1035). The bar is 500 significant lines; this is 70 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/transport/socket.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8769682df2df7e82549ac499435e70cb26b931804b30fbee154c4be59c1473c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryManager: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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/memory_manager.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f177245ee5d0eda3ee6b9a58fb92fb15bb611fa87778f1f00ee19d7f44aa11ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ContextMenu.FloatingLayers: FunctionTooLong \u2014 FloatingLayers runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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/ContextMenu.tsx"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"1559302a87186b5f5a5ad13df96e4cb24e42edb89d2bbc20b0552417e2883dce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: knowe_core/tool_protocol.py: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 12 over it, 1.02\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/knowe_core/tool_protocol.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5268722b209af4412940c9e098d9b961b1425b1bc612734aa2767d49e2aa454"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: renderers/PptxPreview.tsx: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 8 over it, 1.02\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":"src/preview/renderers/PptxPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5a8b688ae380e44db92f73d379a6e78c60f6ba296e456f5113bb70827b3799"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (51 shared lines): backend/tools_knowe.py:391-555 | backend/tools_knowe.py:1716-1994 \u2014 These two members are variants of one another: 51 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":"backend/tools_knowe.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"169f84c657a6634845aed1f69d735cb363af5a2963e2a86eff49e11347a747e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): backend/knowe_harness/completion.py:345-372 | backend/knowe_harness/completion.py:511-541 | backend/knowe_harness/completion.py:584-600 | backend/knowe_harness/completion.py:692-709 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/completion.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e83331f3f640ee65f5a7182cb712fa628d85c78d7b4d460115cb0c5edf44c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): backend/hub.py:313-337 | backend/hub.py:342-374 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/hub.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9ee9b551c151d047fd2446ffdd06e57a18cf822229474966e2c779940462cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): backend/knowledge_api.py:124-142 | backend/knowledge_api.py:146-171 \u2014 These two members are one piece of code written twice and then edited apart: 19 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/knowledge_api.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c97f8f1a156f329e9dd316f919167282049f9a4c7bfcf7e1e4539001c363037"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): backend/server.py:3047-3091 | backend/server.py:3095-3140 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":3047}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2315f1d3f17579e2ffe1b6c3a8b9ee83dc3700ab6e612639b6c7fcf0878264"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): backend/server.py:865-885 | backend/server.py:948-987 | backend/server.py:1337-1356 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b569564c9a209fe95047bdb7957eaa1e4550f8b6c97a18d73c728e12eb9b04d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): backend/server.py:663-679 | backend/server.py:849-862 \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/server.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e138f4c899cd37ea50cd9b59de059c2716d67d9e43b88f6f040cd267a7e041"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): backend/knowe_adapters/model_adapter.py:374-390 | backend/knowe_core/provider_client.py:974-993 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_adapters/model_adapter.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2a8d97ca78ff25b8f26e59482db10559d63fa3646a8de4c088bd17354e4861"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): backend/knowe_harness/completion.py:2541-2573 | backend/knowe_harness/completion.py:2623-2641 \u2014 These two members are one piece of code written twice and then edited apart: 19 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/knowe_harness/completion.py"},"region":{"startLine":2541}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11c64f916f27d4fee664984f5de03629652c766ad86aaff85aec91431ded44a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): backend/server.py:5582-5595 | backend/server.py:5607-5631 | backend/server.py:5636-5649 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":5582}}}],"partialFingerprints":{"codehealthFindingId/v1":"379321071022e78fe09934b2dfa0ad06b78fab5806dad895e0becd1b472f6cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): backend/engine.py:3126-3133 | backend/knowe_harness/projections.py:70-77 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":3126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9fb74d6ab183832161aa653748f62fb6b0417ef32329f818cb7be7a09295b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): backend/knowe_harness/contracts.py:25-33 | backend/runtime.py:65-75 \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/knowe_harness/contracts.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"30632526ea9eb3df3282f5dd2febed8c828fc1e56c179f371d1530d30bb08530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): backend/knowe_harness/completion.py:2312-2329 | backend/knowe_harness/completion.py:2343-2379 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/completion.py"},"region":{"startLine":2312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20da34ec2630ed9cf71c1029b5fb8b6339c20723e47435621158331befc735b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): backend/gate.py:92-128 | backend/gate.py:334-359 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/gate.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad90d7f7e56e8bbb5e7b692353d400430f63597583dde8f4fbea2e095f114f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): backend/prompt_resolver.py:56-71 | backend/prompt_resolver.py:75-87 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/prompt_resolver.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"47197fddab29e27b49b309f12a50aded355620379e898ab7841fb704a0f99708"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): backend/persist.py:474-487 | backend/persist.py:526-534 \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/persist.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"2944ea455e2fe8a2cc2f0d03993e34de008e9eb406499ea0f9f2a407de26101a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): backend/engine.py:1088-1097 | backend/gate.py:140-149 | backend/memory_manager.py:1905-1914 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe7032ec142678a4df3b709c054ddba803b16480312a7890f87454837a093d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): backend/server.py:4543-4551 | backend/server.py:4555-4563 \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":4543}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e045116720e1d743c371882ce80adcacc87d8e0ee17d9c255b28ab0c2bdd16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): backend/config.py:79-86 | backend/config.py:90-97 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/config.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f933e87c9d6307f6659a0d77ac7d11cfbccbe47e4f565ee35b93c2c8b6ebc60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): backend/server.py:550-560 | backend/server.py:741-750 \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/server.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0b5f2d54b82f46f1c6cce8e5dd4750296083ac41917d5541ebeb079736d830"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): backend/engine.py:113-119 | backend/worker_gateway_runtime.py:61-65 \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":"backend/engine.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6839213968d1044260f1ca6930ee5cea4afa3cf5431a86334e7c72a9bc39429"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): backend/server.py:3022-3030 | backend/server.py:3845-3853 \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":3022}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb545f9845a791bc1891da46b1f4832359c59dfe5275ba35fd32095c80e7bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): backend/knowe_harness/completion.py:2475-2480 | backend/knowe_storage/task_run_repository.py:155-160 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/completion.py"},"region":{"startLine":2475}}}],"partialFingerprints":{"codehealthFindingId/v1":"b894d316e9cef811b589c5a6d812ef01defbe83f144f25c5f3b42aa4560fe6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): backend/agents/zinnia.py:473-490 | backend/tools_knowe.py:2419-2429 \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":"backend/agents/zinnia.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efc1c7b2467d030e6e1022dbda2d36fbfee3f4cf88bea703af8c7c62c9d48d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): backend/knowe_harness/completion.py:2382-2387 | backend/knowe_storage/task_run_repository.py:141-145 \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":"backend/knowe_harness/completion.py"},"region":{"startLine":2382}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7aeed57bda2278f6e7e2cbced87f792bd0b18446e402884224893b247ff9ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): backend/knowe_harness/completion.py:2660-2671 | backend/knowe_storage/task_run_repository.py:148-152 \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":"backend/knowe_harness/completion.py"},"region":{"startLine":2660}}}],"partialFingerprints":{"codehealthFindingId/v1":"d848eb8055bcc9a863b272a7a2737463ddf49a0363d181e4bcf11aa4b11a1f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): backend/engine.py:882-886 | backend/memory_manager.py:1223-1226 \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":"backend/engine.py"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfe3f55b3a50b2c8adb25ad78d59306df1afa519b9e9790963b1265e510748a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): backend/engine.py:9604-9608 | backend/knowledge_graph.py:2188-2191 | backend/platform_manifest.py:244-247 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":9604}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea24cd40091981dcd1a0162100a105478aee5435784b5aaa2be6ec6df48bf4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): backend/knowe_provenance/schema_registry.py:91-93 | backend/migrations.py:84-87 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_provenance/schema_registry.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38d5f6e9362b7c133a08c6a65ab6fbe54c63a378b6b9b7d0020a0d867c79d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): backend/engine.py:876-878 | backend/knowledge_graph.py:2175-2176 \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":"backend/engine.py"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3a7a10617e5957c3e733d8dd686f101525a7c21e34a912dd32beaf3b07eb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): backend/agents/zinnia.py:855-856 | backend/runtime.py:852-853 \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":"backend/agents/zinnia.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"504b35332670eebf9fefaaafd4bd057e00729e3695e8f30e53ff4d715070a0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): backend/engine.py:9600-9600 | backend/persist.py:92-93 | backend/server.py:7125-7126 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":9600}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f63e7e0854f9e446038cb13f6bfd4ac73798fa722242d96bad22fc7eceaf8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): backend/knowledge_assets.py:2145-2148 | backend/memory_manager.py:1135-1138 \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":"backend/knowledge_assets.py"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcfe8475ea451bdb22e4cdec8c4180d2246770cf6f0ccb0b134208fbf54edee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201344 lines \u00D7 2): backend/knowledge_graph.py:770-810 | backend/memory_manager.py:1052-1095 \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. 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/knowledge_graph.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"1250f760b9f36bb817f86589078192c2a8ba7cbbe25ccef80fb8e03b1198344b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201343 lines \u00D7 2): backend/tools_knowe.py:2548-2579 | backend/tools_knowe.py:2602-2644 \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":"backend/tools_knowe.py"},"region":{"startLine":2548}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65dbada1277f4e10a69b8af0bf851761fe6db79bb66c993deeec2949a99de41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 2): backend/tools_knowe.py:2674-2711 | backend/tools_knowe.py:3131-3170 \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/tools_knowe.py:3131\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/tools_knowe.py"},"region":{"startLine":2674}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ad20c998d9e996c82e2d3b8c573b3d84c113a66a0927609bb2ebc2fc55ed04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): backend/tools_knowe.py:2848-2887 | backend/tools_knowe.py:2908-2946 \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/tools_knowe.py:2848\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":2848}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd2481fa7b3abe67b8a9065deaf1b118d6bda2cfb633e61fe3168f8bba32c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): backend/engine.py:7700-7730 | backend/server.py:2648-2678 \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. 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/engine.py"},"region":{"startLine":7700}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66169f3372cbcab448aaef2b5d41366e724e9014435fa113433bd596acddbbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201330 lines \u00D7 3): backend/tools_knowe.py:781-810 | backend/tools_knowe.py:817-843 | backend/tools_knowe.py:854-877 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060backend/tools_knowe.py:781\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060backend/tools_knowe.py:780\u0060 calls \u0060msg\u0060 and \u0060backend/tools_knowe.py:816\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e12b6b424d2fc61747a2922c34224c7d038b45d4833b163143e4e1502b067f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): backend/tools_knowe.py:3092-3120 | backend/tools_knowe.py:3148-3177 \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":"backend/tools_knowe.py"},"region":{"startLine":3092}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe8271eb75223d04191dc14c299f3f5f4301e3958b3b372ed99c0c219cb0357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 2): backend/knowledge_graph.py:292-316 | backend/knowledge_graph.py:340-367 \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":"backend/knowledge_graph.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5d3a47a3025b71efdf6962b8138288965caa4fe9722b04b57b6f353057ac47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): backend/server.py:3487-3513 | backend/server.py:3639-3661 \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":"backend/server.py"},"region":{"startLine":3487}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5fcbbe827c661aef78e29e5e20c66340d618ce79c11af053561487c8e80259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): backend/context_compressor.py:289-313 | backend/context_compressor.py:332-357 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/context_compressor.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bbdc9e454875a45602d06c2e640ddd4a39d47b2cf60077b96b96fb17263524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 6): backend/tools_knowe.py:2515-2539 | backend/tools_knowe.py:2689-2712 | backend/tools_knowe.py:2761-2789 | backend/tools_knowe.py:2862-2886 | backend/tools_knowe.py:2921-2945 | backend/tools_knowe.py:3147-3171 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060backend/tools_knowe.py:2515\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":2515}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b51cdc1875f6b0a33c9ab88029e37b65b975a365c62df8482806bb7e9a2c751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): backend/tools_knowe.py:464-487 | backend/tools_knowe.py:1805-1828 \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/tools_knowe.py:464\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c512322bc4d0b349ae6d472f52ed0b61c90b440a6e40da107030efeca1b984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201324 lines \u00D7 2): backend/tools_knowe.py:644-650 | backend/tools_knowe.py:852-875 \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/tools_knowe.py:644\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d0175a3aea05bc2461503bb6e1ba19f43183d7437a6c981197b708f4b797fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): backend/tools_knowe.py:1949-1967 | backend/tools_knowe.py:2738-2761 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b5e18f5ad5a5e6cea0b424d05bb3b0876013e6c17001d595912718ce67a90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): backend/tools_knowe.py:467-488 | backend/tools_knowe.py:813-840 | backend/tools_knowe.py:1807-1829 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"9079298a7d8d3a65087febce30e993ecdb8e3c0ce07e41720b8333e39396971e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): backend/tools_knowe.py:449-470 | backend/tools_knowe.py:526-543 \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/tools_knowe.py:449\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060backend/tools_knowe.py:471\u0060 calls \u0060msg\u0060 and \u0060backend/tools_knowe.py:543\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baebf2f9f63b0b82df72edf884cc2981f316bb2c9717162d989a1d76043ba37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 5): backend/tools_knowe.py:2559-2579 | backend/tools_knowe.py:2620-2644 | backend/tools_knowe.py:2764-2789 | backend/tools_knowe.py:2865-2886 | backend/tools_knowe.py:2924-2945 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":2559}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81206ffe6f5b25a4bfbd411fdad153431d1aa8dc48c16a6047a1d42c27af460"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): backend/tools_knowe.py:3094-3114 | backend/tools_knowe.py:3150-3171 | backend/tools_knowe.py:3401-3424 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":3094}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c81db7f81129aa9d0797e82c71b8aeb1ea92a32b25c970b1aa7ef4d2f14bd5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 3): backend/tools_knowe.py:2814-2829 | backend/tools_knowe.py:2870-2889 | backend/tools_knowe.py:2929-2948 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060backend/tools_knowe.py:2814\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":2814}}}],"partialFingerprints":{"codehealthFindingId/v1":"1726bb23a514fab1ca92c7c92eae3cf4d1d255e61608a36ec19108e69e31b24e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): backend/agents/deepseek.py:249-266 | backend/agents/zinnia.py:782-798 \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":"backend/agents/deepseek.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dd99fd6c05c62f1d568ed6514fc9b529b9a9c5e3b7a581af6b5887dbb9154e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): backend/server.py:3064-3078 | backend/server.py:3116-3129 \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":"backend/server.py"},"region":{"startLine":3064}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d25322c9c66324dbc63e5d947edff293a949b8c448385dadb4e2aa9fcd72d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): backend/engine.py:2579-2599 | backend/engine.py:2784-2806 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060backend/engine.py:2807\u0060 calls \u0060dict\u0060, \u0060get\u0060 and \u0060backend/engine.py:2600\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":"backend/engine.py"},"region":{"startLine":2579}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd87d8e871d1b2f8be84fa837f78c0aff88b1c03be20add29ed8d053d138ed52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): backend/runtime.py:1171-1184 | backend/runtime.py:1202-1215 \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":"backend/runtime.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6616e3703f9b708ece97216c13a01eda8e87c77091d057c6a7528e72b5febea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): backend/server.py:2782-2795 | backend/server.py:2925-2936 \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":"backend/server.py"},"region":{"startLine":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"42965502935f8c058b9e8f11fc45bae98544eddbac65c225712660946700029d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): backend/tools_knowe.py:521-534 | backend/tools_knowe.py:2673-2687 \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/tools_knowe.py:521\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f79be991915ac1583156c385a6ea054f83d59613b8ea58672ca36bdbe35aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): backend/tools_knowe.py:519-532 | backend/tools_knowe.py:1776-1794 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060backend/tools_knowe.py:1795\u0060 calls \u0060sorted\u0060, \u0060set\u0060, \u0060msg\u0060 and \u0060backend/tools_knowe.py:533\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/tools_knowe.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90f2a70675dad9ca0719e199ae452ead74514b8c99c38df739c8eca64d86c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): backend/engine.py:6319-6331 | backend/engine.py:6486-6498 | backend/engine.py:6552-6564 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":6319}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c3fd2fdc591f85dc32db85a483bcc883c35041d9b049eed416d9afd3bf451c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): backend/migrations.py:96-108 | backend/persist.py:270-282 \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":"backend/migrations.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6a2773689e08156143cd3a12b0451c1aa3fc132ad8157948f55b8e3d08be7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): backend/server.py:2752-2764 | backend/server.py:2893-2905 \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":"backend/server.py"},"region":{"startLine":2752}}}],"partialFingerprints":{"codehealthFindingId/v1":"163db4c6f35b66ce4a5275e826cec1c4c80e2e714f9ed7f4cb04d59cccad6ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): backend/server.py:5986-5998 | backend/server.py:6225-6236 \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:5986\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060backend/server.py:6224\u0060 calls \u0060stat\u0060 and \u0060backend/server.py:5986\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":"backend/server.py"},"region":{"startLine":5986}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8b3ec17e7a1c52e7a2351eb7ec558f8e645d4b6eb45115f4d277aaaf460dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): backend/engine.py:1885-1896 | backend/engine.py:1969-1980 \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":"backend/engine.py"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37193441b0289ac275f55eabdf2e4e5a3f73e27e65d098e19b335a761cc2698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): backend/server.py:874-885 | backend/server.py:1345-1356 \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":"backend/server.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6665c1af836c7d39b2e862baecc618e018d514d9100483641981b0e90277b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): backend/server.py:4508-4515 | backend/server.py:4569-4580 \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":"backend/server.py"},"region":{"startLine":4508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41a56ea442da7423460f49399e26a99e3065f7a4883c648f1b2e92dd5c4ca25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): backend/tools_knowe.py:407-418 | backend/tools_knowe.py:1718-1730 \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":"backend/tools_knowe.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4f099ae61c55135112165e5a213a077f4c2039ad06df3eb4eee4ef109b5ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): backend/agents/deepseek.py:528-538 | backend/agents/zinnia.py:1288-1298 \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":"backend/agents/deepseek.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b8b794e08bf337b83ac96acde2d1e3e7c52690db51f96b1846b7c314004acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): backend/knowe_core/provider_client.py:451-461 | backend/knowe_core/provider_client.py:578-588 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060backend/knowe_core/provider_client.py:463\u0060 calls \u0060_stream_started_error\u0060 and \u0060backend/knowe_core/provider_client.py:589\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_core/provider_client.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb3e43653e61f277a9c6109358921293a3a560b126c6cbc480a84955fc021fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): backend/knowe_core/provider_client.py:461-471 | backend/knowe_core/provider_client.py:474-484 \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":"backend/knowe_core/provider_client.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b923fb945e1ccae2c3c7a29ef5fa4a70229a5659eb059265efce9c8972b01b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): backend/knowe_core/provider_client.py:464-474 | backend/knowe_core/provider_client.py:589-599 \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":"backend/knowe_core/provider_client.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b13f8a6107a30eb81e3f43719d8e3785682ab3e158a4905d67221ba958ef9ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): backend/server.py:1956-1966 | backend/server.py:2322-2332 \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":"backend/server.py"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"178f1638e099e755cc5c4786030acb62a7ea10f14fb3078fa18f3e0228f6f4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): backend/server.py:621-630 | backend/server.py:964-971 \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":"backend/server.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"2455fceb73c4cd04ab672dabac57a8aaefcebfbb17409138e8ab970adb113e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): backend/server.py:5587-5595 | backend/server.py:5640-5649 \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":"backend/server.py"},"region":{"startLine":5587}}}],"partialFingerprints":{"codehealthFindingId/v1":"004969b0d36381b4247177990031b57876026890408bdd5228c840d410f4de2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): backend/server.py:1942-1950 | backend/server.py:2309-2317 \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:1942\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bcc751085a34e141fb813cc0ca40fc267041693f81f67fdc7b0c320e123493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): backend/tools_knowe.py:417-425 | backend/tools_knowe.py:487-495 \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":"backend/tools_knowe.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acf0580676e9bcdceb5ae530f36d3b12ea272354e71ab45b553a1fee88236d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): backend/knowe_harness/completion.py:2584-2591 | backend/knowe_harness/completion.py:2625-2632 \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":"backend/knowe_harness/completion.py"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"368ff6a120f48925863e48c41e59b462dc655728eaa4226228179db99f6de50b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): backend/knowledge_assets.py:1643-1650 | backend/knowledge_assets.py:1698-1705 \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":"backend/knowledge_assets.py"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6ac5cebd49a186ff3c312dc3780d5410da2a60274aba3fcde634573c52037e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): backend/knowledge_api.py:247-253 | backend/knowledge_api.py:255-260 | backend/knowledge_api.py:263-268 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060backend/knowledge_api.py:247\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/knowledge_api.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e55c9aa0cc948e52c2794d0757b0730f448e4bbae0d09d2ea67c19392eb1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): backend/hub.py:415-423 | backend/hub.py:525-533 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060backend/hub.py:424\u0060 calls \u0060isinstance\u0060, \u0060setdefault\u0060, \u0060dict\u0060 and \u0060backend/hub.py:535\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/hub.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e3f94704e0d297ed03654e9db002050c91ca92df47a3a9460b016ac61de415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): backend/knowledge_assets.py:1611-1617 | backend/knowledge_assets.py:1644-1651 \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":"backend/knowledge_assets.py"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d6f826bd691d4360e1a67dbe0558b9b887c570a3c29c489de1b443c21e02a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): backend/server.py:665-671 | backend/server.py:851-857 \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":"backend/server.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87838095d4afaf811ec2628162892a13543391c57177992950b2640d6328574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): backend/knowledge_graph.py:1341-1346 | backend/memory_manager.py:1408-1413 | backend/memory_manager.py:1651-1656 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"540c9c09cb642a65cf5a52953ff037d310a6a1a3799cd9ceb2f0e6348687652c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): backend/engine.py:3128-3133 | backend/knowe_harness/projections.py:72-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":3128}}}],"partialFingerprints":{"codehealthFindingId/v1":"21452fa6b1fb6780e92f80f47a6445f11812e59bd6ac0b4b428f91988c3dfcbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): backend/knowe_adapters/model_adapter.py:198-203 | backend/runtime.py:1369-1374 \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/knowe_adapters/model_adapter.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"747e3ad46273901debe92a445fc99b44152d634c53969294887cb201340280b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): backend/knowledge_assets.py:795-801 | backend/knowledge_assets.py:841-847 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cd99752782e7c429cf940b5a46847895d422fb99a21803f388217b6a702967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): backend/knowledge_assets.py:1625-1631 | backend/knowledge_assets.py:1658-1664 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_assets.py"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa557eded604f751256153a5c35a374a712a5074ca5047aca66fa485a84b622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): backend/server.py:4520-4525 | backend/server.py:4582-4587 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060backend/server.py:4526\u0060 calls \u0060stage_delete_path\u0060 and \u0060backend/server.py:4588\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/server.py"},"region":{"startLine":4520}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16a98464c60b2334909c9f13f55a4413801476bd62695883326e7486f82a42b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): backend/hub.py:300-304 | backend/hub.py:325-329 | backend/hub.py:357-361 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/hub.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d68f774b7d229bc7e72181d2a826f4717b0623b122a633d9a4682d5309a00f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): backend/agents/zinnia.py:1051-1055 | backend/agents/zinnia.py:1142-1146 \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":"backend/agents/zinnia.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6ec93026cd4cd4d0cd4d0e024b5c8c2211463ed484ad77c087f1fb9b133f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): backend/knowledge_api.py:276-280 | backend/knowledge_api.py:284-288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/knowledge_api.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea87f2fdb8a98fce8c0569113a01678bd4ec966dc52f849fcc7a1b1d3a8860ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): backend/knowledge_graph.py:1462-1468 | backend/knowledge_graph.py:1719-1725 \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":"backend/knowledge_graph.py"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"665b98c98241df9b5527be52a78d1fa9abf1ae05130291277b794946b63b247b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): backend/knowe_provenance/build_manifest.py:40-44 | backend/tools/create_wave0_forensic_baseline.py:35-39 \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/knowe_provenance/build_manifest.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc29ecb9c2739283d7ad1b4ab6472d5b4b56a2cebebfdc086c8a14971ebe378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): backend/engine.py:2569-2575 | backend/engine.py:2772-2778 \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":"backend/engine.py"},"region":{"startLine":2569}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6ba1d6839ed11829f35ea03450219f042a79f08563ef6c179225578b1c39a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): backend/knowe_harness/completion.py:348-352 | backend/knowe_harness/completion.py:514-518 | backend/knowe_harness/completion.py:586-590 | backend/knowe_harness/completion.py:695-699 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060backend/knowe_harness/completion.py:346\u0060 calls \u0060str\u0060, \u0060get\u0060 and \u0060backend/knowe_harness/completion.py:584\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/completion.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a21eda96bedca11aa723dc2b7e5afd852fa493147420b6e9ef4102bd5a08054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): backend/tools_knowe.py:582-586 | backend/tools_knowe.py:698-702 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools_knowe.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"54589c73460e72fabe179be6d309588fa27cea11d6a55e7bcfcb3abcdff124a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): backend/tools_knowe.py:2645-2649 | backend/tools_knowe.py:2716-2720 \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":"backend/tools_knowe.py"},"region":{"startLine":2645}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3aa2c90de0a2e23373ba50818a1e03e204dafff7cd5c3eedd7a8de9b1715a7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: KnowledgeGraphManager (LCOM4 5): KnowledgeGraphManager\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowledge_graph.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"903d96a6cf66fbbf26e961845a185919643242fa6793598904676193c789a8a2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MemoryManager (LCOM4 4): MemoryManager\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/memory_manager.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8163b55d0216da111f91d29a3ac6cc07c1a55b8a179abe6ab437d7913d403a"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the repository root runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: \u670D\u52A1\u5668\u7EA7\u4E8B\u4EF6\uFF08\u65E0 seq \u767D\u540D\u5355\uFF09\u90FD\u8FC7 Zod: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/contract/parity.test.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"14880733461c5f9adf7c5c0995f6ad616d33708cfcc6d80a7bc407292102668b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/ChatStream.tsx: src/components/ChatStream.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 307 in ChatStream.ChatStream at line 212. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- src/components/ChatStream.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/ChatStream.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4666a939c9aff9da81492ca582d3ed6740a476a60990d6c8fa287a3a5b2a3a31"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: electron/main.ts: electron/main.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in main.registerIpc at line 1433. 3 of those changes were fix/bug commits, and the other 5 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- electron/main.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":"electron/main.ts"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"da84325a4362f8481fe0668e06ebf3c13a017a3586709daea483482dc2ce3aa2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/store/state.ts: src/store/state.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 232 in state.applyEvent at line 830. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- src/store/state.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/store/state.ts"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5bf94250a9c2e2e823fd7fa12d69bfc0b8f3ba6a9aac203b210a99e4ed2316"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/Composer.tsx: src/components/Composer.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 130 in Composer.Composer at line 141. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- src/components/Composer.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/Composer.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0a2e0d3b3c17e1568d864c6caa610fdace91a0edcb99e3436f390fced7407e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: backend/engine.py: backend/engine.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in ProjectEngine._persist_token_usage at line 1767. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- backend/engine.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/engine.py"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8d0f2d7338a80fe190312480c3931dbeb49e0d8656eab1ade1e4a7ee9fefd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/app/App.tsx: src/app/App.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in App.App at line 155. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- src/app/App.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/app/App.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f2ca0d968bb22e4aaf3f2e0b07c5a75b422303a1599e5c5aa546a21b0065ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/components/TokenUsagePanel.tsx: src/components/TokenUsagePanel.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 75 in TokenUsagePanel.TokenUsagePanel at line 559. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- src/components/TokenUsagePanel.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/TokenUsagePanel.tsx"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2efbacc3fbeffbc2f280d19a7ef7a567da3ec0e37b946946abcf2bef28c5e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: backend/token_usage.py: backend/token_usage.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in token_usage.aggregate_token_usage at line 354. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- backend/token_usage.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/token_usage.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79571184e3ec364504172a701dee59129e306e0bda7e7e9b181814d1ac65bc6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: backend/knowe_core/provider_client.py: backend/knowe_core/provider_client.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ProviderClient.chat_stream at line 375. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- backend/knowe_core/provider_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/knowe_core/provider_client.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8adc5bc2b233efd536c69590493a4afdc58ebad87bb82fce1a9afb4454d5fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: backend/knowe_adapters/model_adapter.py: backend/knowe_adapters/model_adapter.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ProviderModelAdapter.from_legacy at line 61. 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-28..2026-08-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-28 16:15:30 \u002B08:00\u0027 --until=\u00272026-08-26 16:15:30 \u002B08:00\u0027 --full-history --no-merges -- backend/knowe_adapters/model_adapter.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/knowe_adapters/model_adapter.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"315b614e8d1656ffe6f2bf23f4e6d59b76adb26335216cbf16ebeb4a67c7a3e8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: favorites \u6301\u4E45\u5316 API\uFF08\u540E\u7AEF\u5C31\u7EEA\u540E add/remove/setTags/rename \u6539\u53D1\u547D\u4EE4\uFF0C\u542F\u52A8\u62C9\u5168\u91CF\uFF09 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/favorites.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b79bafcd7407c26c1d86d82aa2764b4f9aa0b5d67f64ee6b0186a93c2e9d3c1"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060backend\u0060 (51685 LoC, 237 module-visible types across 8 directories) overshoots its size bounds. 2 of 2 build unit(s) (Python, npm) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/requirements.txt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7e2844976764d6254b8fc0618108ed5e1b7936d716b5f0302a7d20397e0db7"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (38004 LoC, 280 module-visible types across 15 directories) overshoots its size bounds. 2 of 2 build unit(s) (Python, npm) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2d5244dbb9040f0ef9a41721fc246c38399605a5b233c47266a2093207fec1"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 70 % of calls cross a namespace and only 49 % 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":"96c21c8b5e4f9d96ff3d507a029d2da9aa49602f418739336fdec835deca80af"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"2a4ea1129c9be04c6d201dcf0a02bfa28add29a65675d0193bb362ff5532b3b0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"79c338f7ba448559393b5b8a91d10222d91ef3ec2bfff03d5de19c6e6aaa245a"},"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":"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":"668515ea74cf6bfed85460a29d174e400978ff2771d06d533c7b30db5ade9e63"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"d145c4674c6e30044464167ebda56e83cb1cdff4bcbe9f8708937a6491050f7f"},"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":"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":"c76a2eaed8ab62dfada61e3b605e03976d977a6a378eea90f6bcb55f5b1fb275"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"6353ba364b79b8288523c9906a7ba7e974e8014c650b2b262c7d0de0edde7bbe"},"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":"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":"78fcac3267a1f4d8bb81123af7a3d41ebed13a5446e780dc7f802ddf69a3af43"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"7f27723e9a8b9dc33f9e39626a82be2116d3a8a15d91bad509e4a3aa66156dda"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"f29ae27956c0f6f8b5bf2af578d243c9be61a4fc201ae49034ca420223d1342a"},"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":"989d8a7b5c93dc16fe4f313dfe96a6967d696c67b77835992ed9a627a4409750"},"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":"e48eb36c77e2cc55d508b2a69cfc4af38ee27e0bbd782e38b7d03ff9048c91fe"},"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":"d1521d4df38892c8360f4021e3e60a84abee4ddb3bd9a9223f7ca0d504e933c2"},"properties":{"dependency":{"package":"tinypool","version":"0.8.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"critical","fixedVersion":"2.1.1","relation":"transitive","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":"d3882d8f5ede49b4559d7821267f317a4d93792aa6769c400b1a3b03bef6989f"},"properties":{"dependency":{"package":"vitest","version":"1.6.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"critical","fixedVersion":"3.2.6","relation":"direct","declaredRange":"^1.6.0","reachability":{"kind":"test-or-tooling","file":"electron/previewNavigation.test.ts","line":2}}}},{"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":"4cc50b8422bee61543975bb77e6bb568d3e4c189ab9ac330cc0540cdaeba61da"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.1.19","relation":"transitive","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":"a4529d912c0d0254854488c3fa485422003c68a1077a8bab70eba435843b306d"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.1.19","relation":"transitive","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":"2f7cd5cf1a3a248278f873327bb35cfad3fd5668f9c4643ca2938644179063af"},"properties":{"dependency":{"package":"@tiptap/core","version":"3.30.1","advisory":"[GHSA redacted]","aliases":["[GHSA redacted]"],"severity":"high","fixedVersion":"3.30.5","relation":"transitive","reachability":{"kind":"production","file":"src/components/Composer.tsx","line":45}}}},{"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":"769e9d2248cb98851adbaf62aa7f78db3f94886ca662e318699216e6f9e92bbe"},"properties":{"dependency":{"package":"@xmldom/xmldom","version":"0.8.13","advisory":"[GHSA redacted]","aliases":["[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]"],"severity":"high","fixedVersion":"0.8.15","relation":"transitive","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":"56ddef23deb1ad3fdaa2ccda005a70724673a1ed332190ea9603c49244b47952"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"5.0.10","relation":"transitive","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":"14fc1fb7f9a3ddbbe0855e79b49c99b03eb89e0422f204a2b95b4343e7160f86"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.1.5","relation":"transitive","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":"d43b4625d06fc3ca9bb7773dc55cf7b8ec417f6f9eba51aa5205e47ad2816181"},"properties":{"dependency":{"package":"electron","version":"31.7.7","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]","[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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"39.8.1","relation":"direct","declaredRange":"^31.2.0","reachability":{"kind":"production","file":"electron/main.ts","line":13}}}},{"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":"dd5b5bb5ff8737ef29043af986439961876b394145dd0284a62660211f33da4a"},"properties":{"dependency":{"package":"extract-zip","version":"2.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","relation":"transitive","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":"9d861d97c9e6c69cb47d2f5bc645ecdddee4776c7500c34080ca158cbba2b714"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.5","advisory":"[GHSA redacted]","aliases":["[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]"],"severity":"high","fixedVersion":"3.1.6","relation":"transitive","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.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"4.3.2","relation":"transitive","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":"a92f1ce5ffaf971104e483aacfa297fc5f787a0d1a55a75a80361f080c8d6553"},"properties":{"dependency":{"package":"nanoid","version":"3.3.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"3.3.18","relation":"transitive","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":"11241f1db61f3caa5a6c0d56d144fa682ffc3d4b5f8123aea6c32620f88f8eb9"},"properties":{"dependency":{"package":"picomatch","version":"2.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","relation":"transitive","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":"4016868b4e5cf3d85ee3dabacf5c3006162fe00c5cef06c6e5e010cc41ab672e"},"properties":{"dependency":{"package":"prosemirror-view","version":"1.42.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.42.3","relation":"transitive","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":"df1a1d5a96e1f71683e8375e1a77ef4334deca2304cd0d2f136bd08974fa3f13"},"properties":{"dependency":{"package":"sharp","version":"0.35.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"0.35.4","relation":"direct","declaredRange":"^0.35.3","reachability":{"kind":"production","file":"scripts/make-icon-icns.mjs","line":21}}}},{"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]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","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":"83ee6b156d134719b75fd9cffcca549a8865f3f685a0eafb099be5eaa8a1976d"},"properties":{"dependency":{"package":"picomatch","version":"4.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","relation":"transitive","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":"6532f69593dd3d2ea46577ad478f1657ba969b6919f855a6261cf5feb9c06e85"},"properties":{"dependency":{"package":"undici","version":"6.28.0","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]"],"severity":"high","fixedVersion":"6.29.1","relation":"transitive","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":"b694dace86fb7d15873b2ddd65002632093db12bc6146d23cde087273cc549f5"},"properties":{"dependency":{"package":"vite","version":"5.4.21","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]"],"severity":"high","fixedVersion":"6.4.4","relation":"direct","declaredRange":"^5.3.4","reachability":{"kind":"test-or-tooling","file":"electron.vite.config.ts","line":20}}}},{"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":"2b9b00d660261d2fe7323e76aa9681210c466a35cccb162ce9d388c79c186a16"},"properties":{"dependency":{"package":"xlsx","version":"0.18.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"0.19.3","relation":"direct","declaredRange":"^0.18.5","reachability":{"kind":"production","file":"src/preview/renderers/SheetPreview.tsx","line":28}}}},{"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":"87acedc051cb89a8ce4b5f36de7264e8d1c5c5fd3ed662cda178e80e0c31f9d8"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.6.6","relation":"direct","declaredRange":"^3.23.8","reachability":{"kind":"production","file":"src/contract/envelope.ts","line":54}}}},{"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":"d3db70fff4ea685f067881e0ec56dfa41a196da2b1af9486eba50bb3b7514790"},"properties":{"dependency":{"package":"python-dotenv","version":"1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2270"],"severity":"medium","fixedVersion":"1.2.2","reachability":{"kind":"unknown"}}}},{"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":"5827fff645d43c7b5976c5e77e28167ca9866bca4e7139bf399de410aafd18cc"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","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":"79774950b11c13badfe51153eefb3ad2cb480422137f4bdf1ad6297206761e7f"},"properties":{"dependency":{"package":"esbuild","version":"0.21.5","advisory":"[GHSA redacted]","severity":"medium","fixedVersion":"0.25.0","relation":"transitive","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":"02e8b35bd6efd2534aa3ea35f7632990c0e4cd2480f7c705f3b4c478c5131036"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","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":"d2a2e81b64deab4073aa30651853da1479d71e5f75649e42f94698e3c4a514f0"},"properties":{"dependency":{"package":"katex","version":"0.17.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"0.18.2","relation":"direct","declaredRange":"^0.17.0","reachability":{"kind":"production","file":"src/components/markdown.tsx","line":60}}}},{"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":"bb99291c2426614b5d0d8b70a5a50b2e53245486916114a97bea5787c7dbe8a0"},"properties":{"dependency":{"package":"katex","version":"0.16.47","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"0.18.2","relation":"separate-copy","declaredRange":"^0.17.0","reachability":{"kind":"production","file":"src/components/markdown.tsx","line":60}}}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/PdfPreview.tsx"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc56f312e8ce3b5692765172740dd7788755455d0f3dbd1484bffbc1d03ec0a"}},{"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/ApprovalCard.tsx"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"8910c0fc0a0a56bf7fbba9d948d137dc43a61cf114ccc94c39c6f51f1d2844fd"}},{"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/ApprovalCard.tsx"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c3597ed5ca9cff2504ab7d3ece2352d74a6d54fb00ddb0dbc56bfe8869141b"}},{"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/ContactsView.tsx"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e5c6506c322c6c1729200335cc18c100f58344fa751d6c013a66174458de00"}},{"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/ContactsView.tsx"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5044eb9986b73abf5d7b482e1640f657011ae32b94a738d150a9b59004bb62"}},{"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/ContactsView.tsx"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4af0c7e0027ef33d1b405feb58ccf58acd3591efcb724cd135bf573514298d0"}},{"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/ContextMenu.tsx"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a69713590376d57a5618dcd3915a1e9db716e517da7e87e4423f8b1499ae8f"}},{"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/ContextMenu.tsx"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6a6a2f0283a2ccf186b28710982543a723abaaa01f7fc07c7244e3054064a5"}},{"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/ContextMenu.tsx"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d79654a77c66f4e1efa5fefdad71ec683ae4c1ecf163e1d3a68fc2b08e8c0c"}},{"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/ContextMenu.tsx"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c080832a6729891d26439a5479d16ffa59960a92647b16a2affca2603890676"}},{"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/ContextMenu.tsx"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"571fe42f25fd2ce8ea4212299116b01d2a4b5552cbf5cf5441d4c77433eb7b02"}},{"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/ContextMenu.tsx"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aec9a1019a00c2ef359edebe542a96306bb571f48d351a4d105f56b66ef136a"}},{"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/DirectoryRecoveryCard.tsx"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f994c4e1671c83e887ff2d25b808f9340ed7fe87f32a7241391fef4cf1d394ee"}},{"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/AddAgentsPopover.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1307ecd98bf8a915f7d85900d01a0b99bba183dda273f2dbc703455df95eb8"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"297e7fb653b69f50b90d93069fa87ff5b0c27c4c345db7e21c87a3dd4958719c"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd1528dcaded7f338a6c3ab8fb3ce590a9a94524ec5727bede340ef681b97cd"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .navrow with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c860ce0ee0d8052a64a988af24c1603a4ab41bcb7b6ce38bc3f2cf580a7ff4"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af9641db5ff93890ec60a3c6447d4726cf0c4aa98c35c5165de736a81e62f04"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .navrow with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04d52f83d1ba16f099b7279636983e270d249ccff05ac8fe15f97583c549f13"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"48906bdbf99ec0b3269eada80f42e7e46e7a7424189387da36bd9100bbe2455b"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c58d3b529f6fc4a17225d4b7838c32840974951f64f2f7817eaebbd8d42778"}},{"ruleId":"AC4","level":"error","message":{"text":"Focusable \u003Cdiv\u003E isn\u0027t keyboard-operable: This \u003Cdiv\u003E carries tabIndex={0}, so it is in the tab order and a keyboard user will land on it \u2014 but its behaviour is bound to the pointer only, with no key handler. A tabindex makes an element focusable, not operable: Enter and Space fire a click on a native \u003Cbutton\u003E or \u003Ca href\u003E and nowhere else, so this can be focused and never activated. Use a \u003Cbutton\u003E, or handle Enter/Space in a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0824505f7f72f8a973e3391629ac6d800187185c6688ee8fbe5a0cb61859ee"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"893969e4aa35f78d3e52dc5e1f0e930a14ded254110cd73a8bbd2ccc2dc938a3"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ce88fe81ee07d7b0361c62f45060fdc1c40cffead6e01b104a2c0cb82518a0"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"474df719a9be934fee21f5877bd74bf8d165e3f6f46735f3968bcb7cf462ae0e"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5a38250c10a4a3ed5b61730fd894acdae7c888249f7f6e1a59ed9b56dc0e9d"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5169be445d67acf04117f1878ac996f0f9db360285c978e3cbb38d222fe1c6"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4698347bab0c52e46670e2b7644e000bdacd049314fc2434d6057282f487204"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .cal-day with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DateCalendar.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61d46bdbf05c709b494779d5272b548c004c0758305a4abf65e631e83e3b3af"}},{"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/DevDrawer.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd47751fea22c93ea1a89bcaea92f02170368cfdd3a76e546e87221971922651"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .sec-head with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FavoritesView.tsx"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb27e61a497de720437f4c95ef2af6c2eeba6fef593cec4afc23849f172cb71b"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .navrow with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FavoritesView.tsx"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"018b5e00dae24a7ab39ee4f16eb227c836afae58d76067c97fcfe6050e480ccc"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds double-click and nothing else. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FavoritesView.tsx"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"21021dc96ce85a4e2a03172863f7b11159372339ae8bdb5e15e2f799dc762e97"}},{"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/FirstRunModelGate.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1152903afc0cea22d55a95a5e29fdc64e2b37c482e627a44fd2cc68fd1f0ed91"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, 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/GlobalSearch.tsx"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"340fcd5f9e7768fba5821fb0fe2f0e79f0e9f7ce9446be9e256b44a3b62fb5d0"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022separator\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022separator\u0022 and is operated by pointerdown, pointerup and pointermove, but nothing can put focus on it: no tabIndex={0}, no key handler, and nothing in its scripts moves focus. A keyboard cannot produce a pointer drag, so the control cannot be operated at all (WCAG 2.1.1). Give it tabIndex={0}=\u00220\u0022 and move it with the arrow keys in a key handler (with aria-valuenow for the position it holds)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgePreview.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3c0f7780e15d9074afc847de6a34090d82d21f72586e5cd7d4911e21de5b76"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022option\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022option\u0022 and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022option\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/MSetSelect.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"591b43b248b6cb142e9de84de73168efe1d24921fb7e5812b66e1eedddcd831c"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/MessageBubble.tsx"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fce62c3e21355ee84a285ee9857e4c7d5648e021dde2c0c810709472a20bd8"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .mrow with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/MessageBubble.tsx"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b396ccf7207c5290e15ff386b6584a823c4dcf216906bfd2ced11f4f62048c"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0}."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/MessageBubble.tsx"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b04f33c1d0ed9b3c979cec3c5a5de63069e252ecb32ebbdf90af773739be72"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds double-click and nothing else. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/MessageBubble.tsx"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1864680e2a3b6bfb6a9426646358ebfb6066ca3822aef69fbccc6d2a32c1bf4"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022option\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022option\u0022 and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022option\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelBindingModule.tsx"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75a9bf3fa06db9e46de07a5577993f6a33bdb7a8ed0d39290b68c38cd9a8f92"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022option\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022option\u0022 and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022option\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelBindingModule.tsx"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc76d9437835b626426f60f8bdf81debc214ca4b6fa4730b93c3d141c3f8847"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022option\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022option\u0022 and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022option\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelBindingModule.tsx"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0537c70342224e59148f9af99683ba2ca4ec6cdfbf4840c5efd0200df299009b"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022option\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022option\u0022 and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022option\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelBindingModule.tsx"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8542cb744a51337f748952dd3a543f68b907bcb7367e17641f89cd9c5fc980"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022option\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022option\u0022 and binds a click, but nothing can put focus on it: no tabIndex={0} in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabIndex={0}=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022option\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelBindingModule.tsx"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b32cc6f0ac5c732532f4aa8b21977e8654778e2b3a0570c89a4b9a03af8be98"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, 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/NewProjectModal.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f0ed1f4583d1c36b6de9a84bba1e87f3ed24ff2d8c30833231555b918ee622"}},{"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/RangeCalendar.tsx"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0f4bfcecdd383577690259401d43bee1c93ce626167071fb0db8ca3e1d86a7"}},{"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/RecordsDrawer.tsx"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9cb55b78f8b741f635025b323bc759666fd43178c77ec0fb2517a73bb885b9"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds double-click and nothing else. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/RosterPanel.tsx"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc35f232cde6bf48aca499cd613af996ddde53a256a454ff6281352530f90f80"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .dm-pressable with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabIndex={0} and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/RosterPanel.tsx"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c13cdb8f724f5dc5375d1e51bf14fce1650386b70b2131e5fee1da0456b2882"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds pointerdown, pointerup, pointermove and double-click \u2014 pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ZoomPan.tsx"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1e0cc52556ab3959cb2ad44a2b3233ca759cf334bc7c227da6a4e5f283d4f0"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds wheel, pointerdown, pointerup, pointermove and double-click \u2014 pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/ImagePreview.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a469c01741e4c7c337894e0daa7f538afe51ea3bcfc9c854e89fd6b859a4c82"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and outline:none/0 in its inline style removes the focus ring with no chance of a :focus replacement (an inline style outranks every stylesheet rule). Keep a visible focus indicator."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85a0a288da96a25f1bc4726817eb5e3a861cd33cfab6c5e4fe7dec701860cfb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.3:1): \u0060.citem .unread-pill\u0060 sets color: #fff on background-color: #ec5d62 \u2014 3.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/styles/knowe-components.css"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e4ee384b5fbf38e236748005f7b07a4e1c3256b165b4747aaf85d6ff16d0d2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.4:1): \u0060html.dark .md pre code .ln\u0060 sets color: #565771 on background-color: #1e1e28 \u2014 2.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/styles/knowe-components.css"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba396892201095119b3be1ae01a37b2c50ad56dedc39c6a55e1ef6c50d0993e2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.3:1): \u0060.frg-enter\u0060 sets color: #fff on background-color: #b08752 \u2014 3.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/first-run.css"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"24acb2a573887fcb52007e039326a4a459e994cc4382e506cd539998f05e3c49"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.3:1): \u0060.plm-apply\u0060 sets color: #fff on background-color: #b08752 \u2014 3.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings-view.css"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad6a382774b474b303c523c916bccd47d3b4dba436c9c4a3386574ca27a8138"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.7:1): \u0060.set-update-install\u0060 sets color: #fff on background-color: #4f7cff \u2014 3.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings-view.css"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc3faf5de6625da9e71f52cd06446a3f7b60544957abf20b69410264be39d51"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.4:1): \u0060.conn-dot.fail\u0060 sets color: #a9564e on background-color: #f6ecea \u2014 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings-view.css"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"13160ffc70408e3ea8b40ba6f424bafaf2f6d047b9524a648664039f6f60397f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.4:1): \u0060.table-card .icon-btn.del:hover\u0060 sets color: #a9564e on background-color: #f6ecea \u2014 4.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/settings-view.css"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41ff78e79c41ad2fa4333dacb1d3a160ac9b0ab6db59592c25bfcaeff6bc284"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.composer .tiptap-input\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/styles/knowe-components.css"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b8f8c96586f04c8672382fd41d4edf93867aafa960b9169589bd651b342817"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.temp-slider\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/styles/knowe-components.css"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"9402d37732484cb8668374533661cd226ca7e5d8c8e97d1c2a8eaef2e9226097"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060input\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/styles/knowe-tokens.css"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec0f5a2930b43f4040e35640b026162b588d38380a1b6741602b93599236a61"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.grid-list\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/components/role-picker.css"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbb2c6831d36a1a1162e027263ee3d3e9eea32d73d04eff16d95a9ade51d80f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.mset-field input\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/components/settings-view.css"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f532d8259d10b97722c2745086de04452eb253d4aada3b06c0b8fb81fb82f0c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.reasoning\u0060 moves (\u0060animation: r-rise 0.72s 0.02s var(--ease-out) both\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/styles/bubble-reasoning.css"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f111015a5881aa004fc7639f950c0154e4dd54e7e2fbda0ece144321b08c977d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.reasoning .chev\u0060 moves (\u0060transition: transform 0.52s var(--ease-inout)\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/styles/bubble-reasoning.css"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d4f7c474e613941ab55e996c732feab562cddacac4357ef5528c396fd2e086"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.reasoning-scroll.live\u0060 moves (\u0060transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1)\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/styles/bubble-reasoning.css"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4527d818609a777bb9eed31e44bf1637011516efd497e91b18df1b0944dfec4f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.reasoning-stream\u0060 moves (\u0060transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1)\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/styles/bubble-reasoning.css"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5862336eb3b8edf2f743ba2174fc44e6718ebdf8c34b9dc2e51454fa920b41c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.bubble.agent\u0060 moves (\u0060transition: max-width 800ms cubic-bezier(0.77, 0, 0.175, 1),\n    max-height 800ms cubic-bezier(0.77, 0, 0.175, 1)\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/styles/bubble-reasoning.css"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6774ce45999af51d55742e0b77b1dd36deb02dae5eb97318ed78b1206fdbc4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.reasoning-scroll:not(.live) .reasoning-stream\u0060 moves (\u0060transition: transform 0.3s ease\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/styles/bubble-reasoning.css"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6cf56a9c0422cbc251d90e5d789b2dc4aa0bd56a5a56c7777f5ad3752242ce"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.suggestions\u0060 moves (\u0060animation: r-drop 0.6s var(--ease-out) both\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/styles/bubble-reasoning.css"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66a2a54be700bf2ef20a1e7fe29bd482a43d6e5753b7b398362ddb265c47867"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.suggestions\u0060 moves (\u0060transition: max-height 0.48s var(--ease-inout),\n    margin-top 0.48s var(--ease-inout),\n    opacity 0.3s ease,\n    transform 0.48s var(--ease-inout)\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/styles/bubble-reasoning.css"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"75073d55f27084a99739915ee83edf9d0554ab12d11fbb3d29dbe16e2d948b87"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.suggestions .suggestion\u0060 moves (\u0060transition: transform 0.42s var(--ease-inout),\n    box-shadow 0.28s var(--ease-out),\n    background 0.24s ease,\n    opacity 0.28s ease,\n    filter 0.28s ease,\n    height 0.38s var(--ease-inout),\n    margin 0.38s var(--ease-inout),\n    padding 0.38s var(--ease-inout)\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/styles/bubble-reasoning.css"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fde4a171b037fbe236448c1117eabca7d32da3f6e38df275689352592818518"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.bubble.agent.morph-in\u0060 moves (\u0060animation: r-bubble-morph 0.6s var(--ease-out) both\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/styles/bubble-reasoning.css"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77acd10e7113ee4f528ec73a059f58befe05e31404504749c29888adf4a252e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.msgs\u0060 moves (\u0060transition: opacity 140ms var(--ease-out),transform 140ms var(--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/styles/knowe-components.css"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8ef0f32c4f7400e4cdd06d27996b63989c644ba5d7f7ecbeee5eb33953979f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.banner\u0060 moves (\u0060animation: msgIn var(--dur-soft) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf7506b34dedbaded2fd1491c987a03519e5246fc6cecd2b298280f2fddc66f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.typing i\u0060 moves (\u0060animation: softWave 1.3s var(--ease-inout) infinite\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/styles/knowe-components.css"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80b5739114a3915dfa5d4914c25106d06cf3d7df2a7bf0da6851ab1fde25d70"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.approval-slot .approval.enter-soft\u0060 moves (\u0060animation: card-unfold 800ms cubic-bezier(0.77, 0, 0.175, 1) both\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/styles/knowe-components.css"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adaa0dc101c87700c8d83300895fbdb734030adde455af855268cafbbb9c3c8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ap-task-resize::after\u0060 moves (\u0060transition: background var(--dur-soft, .2s) var(--ease-out, ease), width var(--dur-soft, .2s) var(--ease-out, ease), opacity var(--dur-soft, .2s) var(--ease-out, ease)\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/styles/knowe-components.css"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8b8ee66b2af51e5b700ca96ef593b2337f4819763191d304a6d7f43d7daefa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ap-task-md\u0060 moves (\u0060transition: max-height 260ms var(--ease-inout)\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/styles/knowe-components.css"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9719340552988b0af0b8b1952a879b178d064b5030be5930564b1f75990bf7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ap-task-md \u003E .md\u0060 moves (\u0060animation: knoweActIn 240ms var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d92652bb3a933b90d6b96e7dfc5fc6a30b001837176210ffcb898ad21047cdf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ap-adjusting\u0060 moves (\u0060animation: knoweActIn 220ms var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32ad8a923e4a610e0a5fdadb98ad3114ac2bf6e48b7398435e563b144462163"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ap-progress\u0060 moves (\u0060transition: transform 1s linear\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/styles/knowe-components.css"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd7696ffbc45c849c085854e16e05e13412439407f8cd04a4435c86b8091147"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.ap-resolved-bar\u0060 moves (\u0060animation: msgIn var(--dur-soft) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"e211e05a1b058264609885cd2aebce27cc3c1482c4625ae66a1d8c875597b9ea"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.quote-bar\u0060 moves (\u0060animation: msgIn var(--dur-base) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cdc921d627d0f4c636c4182dd3f078f16aa8032c687f63a1e71991e142aafe"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.attach-strip\u0060 moves (\u0060animation: msgIn var(--dur-base) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08ef8c82593bb0dcd6b01b216c58642f8725b89b1a04136a584593645fbae0d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.attach-chip\u0060 moves (\u0060animation: msgIn var(--dur-base) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faf47c8518b4c946d0813345cb44d8cc1343756cf47299171105376b4256af2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.dropzone .dz-card\u0060 moves (\u0060animation: modalIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cb07f6201dbefd48cfc725888fab78d608ed34f5f84dd3c9442f9983feccb5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.at-pop\u0060 moves (\u0060animation: menuIn var(--dur-base) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4e6675c548819ae6b5cddc677cde8e3660d1e739907cc31b172b29f60b0517"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.r-av.busy::before\u0060 moves (\u0060animation: breatheRing 1.2s var(--ease-inout) infinite\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/styles/knowe-components.css"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"5435b41aec2f46f3bbd0d3d97dfb9c2de28067e715fbeb8743c6050a6f19a630"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.hovercard\u0060 moves (\u0060animation: menuIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec71b2a6abb9fd1d00828dc719c1da2634b4641058a5c8b8d6ffe17117fee7ce"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.selbar\u0060 moves (\u0060animation: msgIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2b9fcdf20e3ccc48da6aa0a90deb4936e317bd3dc453040e54fc2322fe70a9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.spinner\u0060 moves (\u0060animation: spin 0.8s linear infinite\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/styles/knowe-components.css"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6913333f985e19dbabaa9012562681eb79371fbd04cc2e1f65e5851453a40415"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.menu\u0060 moves (\u0060animation: menuIn var(--dur-base) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd4408b9361cd056666ba87b994a9ae60939154a77574c68b3aef97b9a11f05"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.menu.closing\u0060 moves (\u0060animation: menuOut var(--dur-micro) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1972c29eaa408ba7b6f563fffbbedfbb48e5b09e3ed09bb82fb43fbcfa6db216"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.modal\u0060 moves (\u0060animation: modalIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5087c30de9d8aff9a80b63f58eef22a12fb0222827e5b160e5a9c696eea9a28d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cmdk\u0060 moves (\u0060animation: cmdkIn var(--dur-soft) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6626575522ccfa48d1c92fd09a80f9606fb539c635b0bf8b8d812421fca4c381"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.inbox\u0060 moves (\u0060animation: menuIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ff1de9f4919c3b362ea8f7967d3bdf29afdfeb155281b0f7c93e88a61d3d48"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.toast\u0060 moves (\u0060animation: toastIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be595a180a088b2f7f0cdf2b97b18f36de54b64aec5172b0ba8483b43f6f37f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.toast.out\u0060 moves (\u0060animation: toastOut var(--dur-base) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21fc611584c562b3996ea12d0d9b576539e383799ff09a0c468d80b6aa99bbf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.typing-dots i\u0060 moves (\u0060animation: knoweTypingWave 1.3s var(--ease-inout) infinite\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/styles/knowe-components.css"},"region":{"startLine":1985}}}],"partialFingerprints":{"codehealthFindingId/v1":"962e972b30222d793c34084f6f71d7d908004dc57bc3aaa67cfe0c93190327a5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.typing-stage-current\u0060 moves (\u0060animation: knoweActIn 220ms var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"670d636f7908a8e376ea80f72ba24038bb13ddea164c2a6b4023451f8f2b3639"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.typing-stage-done\u0060 moves (\u0060animation: knoweActIn 220ms var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7c20305c69854d7a1dec7d988d9eb1f4b1e2e02d5667423df081f2f86891bf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.typing-act\u0060 moves (\u0060animation: knoweActIn 220ms var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":2018}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ec960328dee00547bbbd0956eb490bdf60a1928f0870449ba57e66ab6d91d4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.dm-pressable\u0060 moves (\u0060transition: transform 150ms var(--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/styles/knowe-components.css"},"region":{"startLine":2104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aabe727e024687dff12460457be3407ca0305351f2aa5e754bcde594028bb40"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.dm-panel\u0060 moves (\u0060animation: dmPanelIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb03cafa021cf90e81bc0eaaed82dfc66f55217bc7becd83b46e68146249331"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.dm-member\u0060 moves (\u0060transition: background var(--dur-micro) var(--ease-out),\n    transform 150ms var(--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/styles/knowe-components.css"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a136b2a166941320c186d7fd9de3b7e2b539b8d4c4e795108f9f0d1c736c67ab"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.dm-member\u0060 moves (\u0060animation: dmRowIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2b93db7889038973df81543c7443c07b1d1ac5e4e49b07d4854cfeab524388"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.drawer-wrap.open\u0060 moves (\u0060animation-name: drawerMorphIn\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/styles/knowe-components.css"},"region":{"startLine":2200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68834b541a84da12159bf609b3795861182fcdec226ee3d645074177bd82504"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.drawer-wrap.closing\u0060 moves (\u0060animation-name: drawerMorphOut\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/styles/knowe-components.css"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a5215f0536c49555f58932ee4bbc378de04832dbcb4aa60729441d9596bca5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tk-wrap:not(.closing)\u0060 moves (\u0060animation: tkSlideIn 600ms var(--ease-inout) both\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/styles/knowe-components.css"},"region":{"startLine":2577}}}],"partialFingerprints":{"codehealthFindingId/v1":"8145a801b3ac6a2a91e4c1192aa6011d4653222877a2619463fbbad89830c949"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tk-wrap.closing\u0060 moves (\u0060animation: tkSlideOut 400ms var(--ease-inout) both\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/styles/knowe-components.css"},"region":{"startLine":2578}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eea5830bed27793f43a207649c2fc84974e05a32f9cff5d432df3fcd094bff4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tk-card\u0060 moves (\u0060animation: tkCardIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":2666}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6490e07ce23cbc8c4102d73708315820ba1207367cf66dc31b26d0bd747e5e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.tk-trend-tip\u0060 moves (\u0060transition: opacity 0.2s cubic-bezier(0.23,1,0.32,1),visibility 0.2s cubic-bezier(0.23,1,0.32,1),\n    transform 0.4s cubic-bezier(0.23,1,0.32,1)\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/styles/knowe-components.css"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbf01cad4d412bc20e825fb0924a97aaf5de1b9bbfc3e1c2b3f5b9eb8dbac44"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.rc-calendar\u0060 moves (\u0060animation: rcPop 200ms var(--ease-out) both\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/styles/knowe-components.css"},"region":{"startLine":2831}}}],"partialFingerprints":{"codehealthFindingId/v1":"389c80825a7e4007dc114066e235f7b0f008d2fb8d6f835e1099bb7f24ddbefe"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.effect-btn\u0060 moves (\u0060transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out),\n    color 300ms var(--ease-out), transform 140ms var(--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/styles/knowe-components.css"},"region":{"startLine":2949}}}],"partialFingerprints":{"codehealthFindingId/v1":"847b123ec34417755e03528d55361c7ed73bdbae6692cc8c973a38bcbb035096"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pv-spinner\u0060 moves (\u0060animation: spin .8s linear infinite\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/styles/knowe-preview-window.css"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6786123aa0c3011d9ec9c28b22fd7c7a77f69c79f3220d080b4e77a4060d128e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pv-image\u0060 moves (\u0060transition: transform 60ms linear\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/styles/knowe-preview-window.css"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2340c1d92d13413dadec2250e6acdf089c634a81aea974034c2716ae7a220ed"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.file-card-list\u0060 moves (\u0060animation: msgIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-preview.css"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7715dd017397b9643252b8e1337878cc1fa3f84397e133db013104910c2e2a2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.enter\u0060 moves (\u0060animation: msgIn var(--dur-enter) var(--ease-out) both\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/styles/knowe-tokens.css"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"554a32bd1f3557dc8505c4b3d442e170836aa6421ddd29bb72f5dc1b431cfa5b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.enter-soft\u0060 moves (\u0060animation: msgIn var(--dur-soft) var(--ease-out) both\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/styles/knowe-tokens.css"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"178b60a238f124b16d11556ccd885dc1ab09624529fb4a3aa43167bd983705a8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fc-reveal.busy svg\u0060 moves (\u0060animation: knowe-file-action-pulse 900ms var(--ease-out) infinite alternate\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/styles/knowe-v0452-file-actions.css"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e629cb83d052485fc6030866be16dc4dcfd5417f3296cfdcd88cdebaaa452ed"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.fc-reveal-error\u0060 moves (\u0060animation: menuIn var(--dur-base) var(--ease-out) both\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/styles/knowe-v0452-file-actions.css"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"19233962c01cb58a3b589e704d1fd19dc72661be68beeba770df22aa2f4ba5d0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pop-add-agents\u0060 moves (\u0060animation: pop-add-in 600ms var(--ease-out) both\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/components/add-agents-popover.css"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c374d3a7d21ca01927a411c32dcf00dfd6e0cb3925239444917620f46e3aea0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pop-add-agents.closing\u0060 moves (\u0060animation: pop-add-out 450ms var(--ease-out) both\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/components/add-agents-popover.css"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b210f21a8380e6de9e73f1154f85b66aa745de7113810c034ba90c1f31e0698c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.frg-card\u0060 moves (\u0060animation: frg-pop 260ms cubic-bezier(0.22, 1, 0.36, 1) both\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/components/first-run.css"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdac311c646b1cfd1a6fda9e5c167d84fdba88f23a6eca2abe4e7e27e329747c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.grid-list-item\u0060 moves (\u0060transition: background 120ms var(--ease-out), color 120ms var(--ease-out),\n    transform 120ms var(--ease-out), box-shadow 120ms var(--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/components/role-picker.css"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1d4d9ab85dd51f3376291ddfc9bc1244826640949f427df204ad821580c820"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pick-check\u0060 moves (\u0060transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out),\n    color 140ms var(--ease-out), transform 140ms var(--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/components/role-picker.css"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"993e471e8799bd32e7618980ab5ddfd0e61f499e032851be7c752ded19156c63"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.spinner\u0060 moves (\u0060animation: knowe-set-spin .8s linear infinite\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/components/settings-view.css"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72a32a29881eaf0bd97482aa42ece10b48a573bd57b9baafbf687795d06b5cc"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SocketAPI (19 required operations): \u0060SocketAPI\u0060 declares 19 required operations: \u0060connect\u0060, \u0060disconnect\u0060, \u0060sendMessage\u0060, \u0060approve\u0060, \u0060reject\u0060, \u0060feedbackInstruction\u0060, \u0060stopWorker\u0060, \u0060createProject\u0060, \u0060addAgents\u0060, \u0060updateAgentProfile\u0060, \u0060setProjectDirectory\u0060, \u0060cancelProjectDirectory\u0060, \u0060requestSnapshot\u0060, \u0060requestHistory\u0060, \u0060sendCommand\u0060, \u0060noteIncremental\u0060, \u0060_debugReadyState\u0060, \u0060_getHandshakeBuffer\u0060, \u0060_getPendingEchoes\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/transport/socket.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2329a368b0bf3715ec2b510fa2f7a17ebea477cf844c3275a54eca151b9268aa"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: KnoweStore (60 required operations): \u0060KnoweStore\u0060 declares 60 required operations: \u0060getConv\u0060, \u0060getActiveConv\u0060, \u0060switchProject\u0060, \u0060enterDm\u0060, \u0060exitDm\u0060, \u0060syncAllProjects\u0060, \u0060populateFromCache\u0060, \u0060removeCacheStaleProjects\u0060, \u0060buildSessionDirCache\u0060, \u0060markSessionDirDirty\u0060, \u0060setWindowFocused\u0060, \u0060markRead\u0060, \u0060reportRead\u0060, \u0060registerProject\u0060, \u0060getProjectList\u0060, \u0060syncConversationStates\u0060, \u0060setProjectPinned\u0060, \u0060setProjectMuted\u0060, \u0060setProjectFolded\u0060, \u0060renameProject\u0060, \u0060deleteProjectPermanently\u0060, \u0060deleteAgentPermanently\u0060, \u0060togglePinnedCollapsed\u0060, \u0060toggleFoldedOpen\u0060, \u0060handleEvent\u0060, \u0060applyIncrementalEvents\u0060, \u0060ackTransientFrame\u0060, \u0060setConnStatus\u0060, \u0060sendMessage\u0060, \u0060approve\u0060, \u0060reject\u0060, \u0060feedbackInstruction\u0060, \u0060stopWorker\u0060, \u0060createProject\u0060, \u0060addAgents\u0060, \u0060updateAgentProfile\u0060, \u0060setDraft\u0060, \u0060clearDraft\u0060, \u0060addAttachments\u0060, \u0060removeAttachment\u0060, and 20 more. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/store.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a807f6552583a94e839e034c497739e9d2442ff24dfbd4d3e046482bed2fe0"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SettingsState (30 required operations): \u0060SettingsState\u0060 declares 30 required operations: \u0060setUserName\u0060, \u0060setAvatar\u0060, \u0060saveMainModel\u0060, \u0060editMainModel\u0060, \u0060saveAuxModel\u0060, \u0060editAuxModel\u0060, \u0060clearAuxModel\u0060, \u0060saveAgentModel\u0060, \u0060editAgentModel\u0060, \u0060clearAgentModel\u0060, \u0060addModelProfile\u0060, \u0060updateModelProfile\u0060, \u0060removeModelProfile\u0060, \u0060moveModelProfile\u0060, \u0060toggleProfilePool\u0060, \u0060setConnState\u0060, \u0060clearConnState\u0060, \u0060testAllConnections\u0060, \u0060setNotifyDesktop\u0060, \u0060setCloseToTray\u0060, \u0060setApprovalTimeout\u0060, \u0060setGroupApprovalTimeout\u0060, \u0060setAppearance\u0060, \u0060setFontScale\u0060, \u0060setLanguage\u0060, \u0060markModelBindingStale\u0060, \u0060clearRestartRequired\u0060, \u0060applyModelBinding\u0060, \u0060reconcileFromBackend\u0060, \u0060pushToBackend\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/settings.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"835679338a79d55fcf37dd4eb99dd0697e4f8c44e45e5dd9e8e90739c5080e68"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"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":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execSync\u0060 in \u0060afterPack\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/after-pack-sign.cjs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc2f8a7abf4c9fa29ad3d2bb1de1a43e1f2d3480c8eb9946cacfdc5193ca5f9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execSync\u0060 in \u0060afterPack\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/after-pack-sign.cjs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6324def893c1d3e81b8a1d6c96a6618c8d9436c69bc0478fbd6242f136978021"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (6 clone groups): 6 duplicated blocks under src/ have copies in at least two of the sibling directories app, components, preview \u2014 4 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"823cca4afd2621849de47271f765eb2e6f2cd2234adc510367510c449296dbff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): src/store/messageCache.ts:58 \u00B7 src/store/sessionDirCache.ts:74 \u2014 the 2 copies are spread across 2 files, 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/store/messageCache.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f9b2aae0654476e4b2aab1ca83dfa58e4002e6215fb80ca489c632f414bc84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (30 matched lines \u00D7 2 locations): src/components/ApprovalCard.tsx:379 \u00B7 src/components/DirectoryRecoveryCard.tsx:152 \u2014 the two spans are one implementation copied and then locally edited \u2014 258 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/ApprovalCard.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b36ae722961a6ba21cff28cecaadc05beac6f8c2d8dcca2c075430980859663"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): src/store/filePreview.ts:115 \u00B7 src/store/filePreview.ts:155 \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/store/filePreview.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f218bec5a0e72876f57ad663514496b791b8a9d4af5ca6443f7c08e2256bc18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:405 \u00B7 src/components/KnowledgeView.tsx:444 \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/KnowledgeView.tsx"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2071dda60a419124dd15f763cd05b2baeff946970bdc56b1456d346ecb10c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): src/components/MSetSelect.tsx:48 \u00B7 src/components/ModelBindingModule.tsx:246 \u2014 the two spans are one implementation copied and then locally edited \u2014 161 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/MSetSelect.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e6b20200eb73726e4980513bd3c22aebf8ca555bc8193341a98b3eb735fe23"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): src/components/MessageBubble.tsx:384 \u00B7 src/components/StreamBubble.tsx:43 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/MessageBubble.tsx"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce584cc1e40821fdee961f9f4e50046eaf9e619fabb6b88e0ff4163755e3e4b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (22 matched lines \u00D7 2 locations): src/store/tokenUsage.ts:200 \u00B7 src/store/tokenUsage.ts:227 \u2014 the two spans are one implementation copied and then locally edited \u2014 201 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\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/store/tokenUsage.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e55819bd0e5f8cc14cb1663e74a0dbb56222585aefb44a525d936014ed53c51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3 locations): src/store/store.ts:1198 \u00B7 src/store/store.ts:1220 \u00B7 src/store/store.ts:1247 \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/store/store.ts"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"70475e205e6b86800a5b66aca7be6734014180f79635fbc40b5eb7899e3e3b33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (20 matched lines \u00D7 2 locations): scripts/make-icon-icns.mjs:51 \u00B7 scripts/make-icon-ico.mjs:32 \u2014 the two spans are one implementation copied and then locally edited \u2014 172 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":"scripts/make-icon-icns.mjs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0005113cfcee758285e2324268f24c6cea4a9d3a1ad12cf0b06a7373bb9685f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): src/components/ConvList.tsx:226 \u00B7 src/components/ConvList.tsx:281 \u2014 the two spans are one implementation copied and then locally edited \u2014 132 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\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/ConvList.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b546053da6b9f4dbd8be868718d5135935b6aa12f5f93af68cac212411d4de66"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:600 \u00B7 src/components/KnowledgeView.tsx:682 \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/KnowledgeView.tsx"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abebbb70ad666ba52f742f7be4869d694f9b719e1e2c66030c86b0778599fae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:1180 \u00B7 src/components/KnowledgeView.tsx:1199 \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/KnowledgeView.tsx"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae2235068556a50b558237f1d295dae5688cbcefb4395c077e6ebd57b683d9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/contract/envelope.ts:1026 \u00B7 src/contract/envelope.ts:1281 \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/contract/envelope.ts"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a3a9f1819baf8619122b9c94739c1bc2f0d416bdf35f0e2c737515c52657d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/store/state.ts:1233 \u00B7 src/store/state.ts:1277 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/state.ts"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0bfd984fb58aa4eb554621a94b1800e62cd99b50ec333fa65721113e63140c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): electron/main.ts:431 \u00B7 electron/trayCard.ts:32 \u2014 the 2 copies are spread across 2 files, 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":"electron/main.ts"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3302f8f2bb4923842c63156ac3a43548b292b056c490735c93902d049991a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): scripts/make-avatars.mjs:46 \u00B7 scripts/make-logo-v4.mjs:31 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/make-avatars.mjs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa8d074a2216b31887da866670f4aa73bb65bf36a9f779d49a2b494d4ac6555"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/components/ContextMenu.tsx:1174 \u00B7 src/components/ContextMenu.tsx:1229 \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/ContextMenu.tsx"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a287be600df9924fc816535362eea527ed259a322193bf570828d873ad9c0c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): src/components/FavoritesView.tsx:309 \u00B7 src/components/FavoritesView.tsx:337 \u2014 the two spans are one implementation copied and then locally edited \u2014 105 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\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/FavoritesView.tsx"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"c781268cb2a4dcd9e9ae93e91fe1fc15a2b1ea2bafa7e867a7fa1c8d6de1d88f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/store/knowledge.ts:423 \u00B7 src/store/knowledge.ts:441 \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/store/knowledge.ts"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c4f6f8d6a606a0697c82771b9474b0c376135dc93e556944748bc8cae9e9dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/ApprovalCard.tsx:486 \u00B7 src/components/ApprovalCard.tsx:502 \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/ApprovalCard.tsx"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac2d47d7df5f10f967eb2ebf076d9d8a3669a4fbefb13ad9e9da3bd77d5aa4a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/FileCard.tsx:36 \u00B7 src/components/FileCard.tsx:61 \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/FileCard.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a83a1e771b591fa9db5290979ff32483fc5abdabcb7de60021ba7ab07096f99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/components/TokenUsagePanel.tsx:735 \u00B7 src/components/TokenUsagePanel.tsx:756 \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/TokenUsagePanel.tsx"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a0481b11220d92a2240d7bb815a77e433a1fb32fa4257203597f596cf66cb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): src/preview/renderers/PdfPreview.tsx:82 \u00B7 src/preview/renderers/PdfPreview.tsx:161 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\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/preview/renderers/PdfPreview.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb50e60ee87429d77bac6694503a34714e67d3b82209bc3425d6871c6808abde"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/ContactsView.tsx:388 \u00B7 src/components/FavoritesView.tsx:126 \u2014 the 2 copies are spread across 2 files, 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/ContactsView.tsx"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffdd54e97293c45776139c6feaae2aa196da1c7751fa9e7f74f030288ad56de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:782 \u00B7 src/components/KnowledgeView.tsx:796 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgeView.tsx"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e54b52043ef43729b92234b0dab24a2fc51128c3ebeef6c9b93612fe26b2b07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/RecordsDrawer.tsx:301 \u00B7 src/components/RecordsDrawer.tsx:387 \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/RecordsDrawer.tsx"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"d728988b0f86fe71530436e5dc11f3bbb210d069cb260468778edf238b69092b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/components/RosterPanel.tsx:134 \u00B7 src/components/TokenUsagePanel.tsx:654 \u2014 the 2 copies are spread across 2 files, 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/RosterPanel.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"937fcd43b919f4b39126595731e96f28a99707a6af7a4bc46519ba13b2447443"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/ChatStream.tsx:40 \u00B7 src/components/ChatStream.tsx:440 \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/ChatStream.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3bd82a9c829045433ef90faf94e189191c147484caa6debdf7fdb1b56c35e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/ContextMenu.tsx:881 \u00B7 src/components/MSetSelect.tsx:30 \u2014 the 2 copies are spread across 2 files, 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/ContextMenu.tsx"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"346d9b139d16d7b9942b4ba2b4963606fefd2c007a49c72d8031bb1c12c8a954"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): src/components/ContextMenu.tsx:1132 \u00B7 src/components/ContextMenu.tsx:1186 \u00B7 src/components/ContextMenu.tsx:1318 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"901f746a344fa105e64a9b197b97fe9b39f98dd8f26fc3ed14aa0f4490281516"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): src/components/ContextMenu.tsx:734 \u00B7 src/preview/renderers/FallbackPreview.tsx:20 \u2014 the two spans are one implementation copied and then locally edited \u2014 70 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\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/ContextMenu.tsx"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a90a25f7e2778c5c38a7bc6297ea7bce7b6f9dbad0f7c2954e82bc5f6656c64"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/FileCard.tsx:86 \u00B7 src/components/FileCard.tsx:235 \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/FileCard.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11b71c4ddf5af06713505d8090a8cfe1323a934a6737d1a6bef1c9b215ab122"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:528 \u00B7 src/components/KnowledgeView.tsx:1147 \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/KnowledgeView.tsx"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced3df2f647010eccdf1e812aeebfe2d9ea1f995ed0ab454bfdd7374eb1019d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:1126 \u00B7 src/components/KnowledgeView.tsx:1171 \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/KnowledgeView.tsx"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f42c38d8d2e40da93a68d37defcc04d4c4041bb545f0b5f6cdea511b4c3ed8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): electron/previewNavigation.ts:140 \u00B7 src/preview/renderers/MarkdownPreview.tsx:82 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/previewNavigation.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd47aaf9c2f43da1bc1c3b11b045f445106b0cb60164e742f267fadcafd7cee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/ChatStream.tsx:538 \u00B7 src/components/ChatStream.tsx:577 \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/ChatStream.tsx"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e8f62587c90ab162c92148de40d7ac1a6e8cc4d39d367b88ec8e593da314fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/components/FileCard.tsx:21 \u00B7 src/preview/PreviewApp.tsx:176 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 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/FileCard.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c005cbbba5da7b1246162e41c55d44058ff221ea19357e9a06afe661f67e8a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/components/ModelBindingModule.tsx:269 \u00B7 src/components/ModelBindingModule.tsx:364 \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/ModelBindingModule.tsx"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a3eee3f67006ddaa9bc2470cbdd6f3b3d88032625663d324e76c6d733f15f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): src/components/RangeCalendar.tsx:88 \u00B7 src/components/RosterPanel.tsx:136 \u00B7 src/components/TokenUsagePanel.tsx:656 \u2014 the 3 copies are spread across 3 files, 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/RangeCalendar.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa94ca4781ade9d301f32f77ba891731fd790de46bc64f48d625fe296e55434"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): src/preview/renderers/PptxPreview.tsx:554 \u00B7 src/preview/renderers/PreviewStates.tsx:53 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/PptxPreview.tsx"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e26fa5fe7e20d48dd440e722bb3e4007ba7ea001ab8561bd2b8a7b9e9fa964e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): src/preview/renderers/codeSyntax.ts:184 \u00B7 src/preview/renderers/codeSyntax.ts:220 \u2014 the two spans are one implementation copied and then locally edited \u2014 211 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\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/preview/renderers/codeSyntax.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"356d9358382e45adc7b73247f1bf1c4b356f382469b9c8f4711baf8739f41d84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/make-avatars.mjs:70 \u00B7 scripts/make-logo-v4.mjs:129 \u2014 the 2 copies are spread across 2 files, 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":"scripts/make-avatars.mjs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b2bad61e1faefd3e1964eada7b19177fa741a51afc835255d24cb01ced94da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/ContextMenu.tsx:585 \u00B7 src/components/ContextMenu.tsx:668 \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/ContextMenu.tsx"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c8284c7492b3df7e9455942eb22de5edec965c4f23a626be49ccfc2517c230"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/ContextMenu.tsx:969 \u00B7 src/components/ContextMenu.tsx:1167 \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/ContextMenu.tsx"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"481dd473a48e96bd412867502052c9cc1d0beaf36d4fab85b1c044aa41ca3bb4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/components/ModelBindingModule.tsx:312 \u00B7 src/components/ModelBindingModule.tsx:396 \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/ModelBindingModule.tsx"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80fad7f851cb09958ea693a2c1679d9fa1a1b10563e1b6aecbaab6b9b6d96eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/contract/envelope.ts:968 \u00B7 src/contract/envelope.ts:1005 \u2014 all 2 copies are in the same file, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/contract/envelope.ts"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6006177018eb35c94bb5c4575d01a8595f29613dc3e48a808507f915b92fcf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/preview/PreviewApp.tsx:88 \u00B7 src/preview/PreviewApp.tsx:102 \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/preview/PreviewApp.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2d4380b26b672d7b1077fa38cc4274e2afcf4fea11161aa39325eb5fba3880"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/shared/tiptapMarkdown.ts:162 \u00B7 src/shared/tiptapMarkdown.ts:175 \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/shared/tiptapMarkdown.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edea8362d5826dbd68db731c219a5a528f8594a1018ccb5c18a3e1f60c0a094"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/store/knowledge.ts:523 \u00B7 src/store/knowledge.ts:542 \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/store/knowledge.ts"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea3b6efcda87be49213ca2519d78a10770294be34a7218281c0848f664276f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/store/state.ts:1048 \u00B7 src/store/state.ts:1813 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/state.ts"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"edda7d78190da4fc8c2183ab029b7ed443436f982ab399d1a28ff6ad04d4b76c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/transport/socket.ts:666 \u00B7 src/transport/socket.ts:685 \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/transport/socket.ts"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f88f6c3427b606a4145740a4d1b0549b8b51b88b2b1b58c140e4ec1399340d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/components/ContextMenu.tsx:597 \u00B7 src/components/ContextMenu.tsx:687 \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/ContextMenu.tsx"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"22db868313aedb8a1059d5dee337318ce33156620bda8f1097f49e77c26e415b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/components/DevDrawer.tsx:21 \u00B7 src/components/RecordsDrawer.tsx:204 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 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/DevDrawer.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc674a65f22cc294fd3fb53bff2bcf6e778f669d7b8a0a3aa91ed58a5e6624c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/components/KnowledgePreview.tsx:105 \u00B7 src/components/RecordsDrawer.tsx:210 \u2014 the two spans are one implementation copied and then locally edited \u2014 74 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/KnowledgePreview.tsx"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cab692cfbc3bc7a2d043478fe18fdf628bf7332316bbe169dc19787d1f19a10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:646 \u00B7 src/components/KnowledgeView.tsx:656 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgeView.tsx"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc51f3eb4c3fbe51e27e52d0de75caef9277b0fa165be02eddfe4bada6ab526"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/components/SettingsView.tsx:488 \u00B7 src/components/SettingsView.tsx:498 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SettingsView.tsx"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1840d433dfe947a9decf948ad8c761a9d60426f351119d7258a4d3ddf34079"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 10 locations): src/components/icons.tsx:20 \u00B7 src/components/icons.tsx:33 \u00B7 src/components/icons.tsx:68 \u00B7 src/components/icons.tsx:86 \u00B7 \u002B6 more site(s) not listed \u2014 all 10 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/icons.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4ff7d1c3108d4c7b9132632b9fda39e4ce23dcdfb0b522f0b5348977fcccdb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/contract/envelope.ts:293 \u00B7 src/contract/envelope.ts:462 \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/contract/envelope.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"0649ee8d519a0abcb99d8e5d50bb0f28a3a491b3d02915fce983bc1dd5c646d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): src/preview/renderers/CodePreview.tsx:27 \u00B7 src/preview/renderers/MarkdownPreview.tsx:44 \u00B7 src/preview/renderers/TextPreview.tsx:24 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/CodePreview.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5a731d3198195d66a206ce2c877b4069b043eb43a9a102afee7aa6d0b2148c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): src/preview/renderers/FallbackPreview.tsx:17 \u00B7 src/preview/renderers/HtmlPreview.tsx:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 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/preview/renderers/FallbackPreview.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f0630ea26274d4685eee14ff754a2c237598ccb5f6dc162e1431d2eeb3293a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/store/filePreview.ts:326 \u00B7 src/store/filePreview.ts:347 \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/store/filePreview.ts"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b956d74ab200bfcc0693833c674a87afa525fce94a014f9d864f7f17b2a5627"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/components/ContextMenu.tsx:821 \u00B7 src/components/ConvList.tsx:402 \u2014 the two spans are one implementation copied and then locally edited \u2014 72 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/ContextMenu.tsx"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a55ec47c33e06abce09acad42d7d961b4639b0e63b4d3791053e3eb59b15ac4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/components/DevDrawer.tsx:21 \u00B7 src/components/KnowledgePreview.tsx:105 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 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/DevDrawer.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f0538182ac4924b6177b09ef25db1250c7494ca62c867d2b3da79d4b3ed285"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/components/EmptyState.tsx:28 \u00B7 src/components/KnowledgeView.tsx:924 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 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/EmptyState.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d14cdf8c3706fb2b1aed601dfcbb214ee7e81173d9e692b68ece56089142180"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/KnowledgePreview.tsx:25 \u00B7 src/components/KnowledgeView.tsx:85 \u2014 the 2 copies are spread across 2 files, 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/KnowledgePreview.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e98d9f98690aa7e3057ea4f9bc671886ef22dbb7d3b4605ca48bfe033e521ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:98 \u00B7 src/components/KnowledgeView.tsx:109 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgeView.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecd22dc2cd56a4614043b71cbe695542509914c042cb860acf7763beeb6f100"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:319 \u00B7 src/components/KnowledgeView.tsx:368 \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/KnowledgeView.tsx"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"96709bf4ec1585975402cce7ec8f6e5ad5faeb596f37e38b160e3d2d5a84b197"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6 locations): src/components/icons.tsx:40 \u00B7 src/components/icons.tsx:81 \u00B7 src/components/icons.tsx:97 \u00B7 src/components/icons.tsx:194 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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/icons.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fed6f192f3f5037c914a2edd78edf7808f1ad4783f86d1ee9e2d36485d24ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): src/preview/renderers/DocxPreview.tsx:101 \u00B7 src/preview/renderers/SheetPreview.tsx:134 \u00B7 src/preview/renderers/TextPreview.tsx:36 \u2014 the 3 copies are spread across 3 files, 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/preview/renderers/DocxPreview.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78b34da1d5004c57d0fe99f2bdf06a8bc455bdefb4db47d41f403f5edb8a0a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/store/selectors.ts:147 \u00B7 src/store/selectors.ts:259 \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/store/selectors.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b3a92b4fd2f0d6a8183b4201cc10f0923e71e51fba14797d564da9f9775e6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/store/store.ts:1939 \u00B7 src/store/store.ts:1958 \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/store/store.ts"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"9082b33686da14fcf091883b6d40a6c5b59d92214860b0e944e31e40be207c69"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): electron/main.ts:980 \u00B7 electron/trayCard.ts:130 \u2014 the 2 copies are spread across 2 files, 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":"electron/main.ts"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc0d5b66349e76cb8a77792d5622b071a91981384f92ebbf654dcd4352ac856"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): electron/main.ts:1347 \u00B7 electron/main.ts:1828 \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":"electron/main.ts"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"86217fc2e5007099655f08517a782dfa8fb4e97d1bfdb03b57173f3cc40e02be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/FavoritesView.tsx:277 \u00B7 src/components/KnowledgeView.tsx:510 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FavoritesView.tsx"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf68eea43f0317b71dc4aa4b31ffc49f87372e5505f89a5f5aff2a9ff0cec8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/FavoritesView.tsx:403 \u00B7 src/components/KnowledgeView.tsx:975 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FavoritesView.tsx"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"4136d0c893fce0d599c1a153928e12a2515a19e15040143d5c67283ae462460f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/components/KnowledgeView.tsx:545 \u00B7 src/components/KnowledgeView.tsx:604 \u00B7 src/components/KnowledgeView.tsx:686 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgeView.tsx"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"66badc6def80c97d4dbcd4a4058af938764e85618267fbac638709484712db9a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/RosterPanel.tsx:202 \u00B7 src/components/RosterPanel.tsx:273 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/RosterPanel.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c222b2b024032ef41392eca91435e0f6c9bbbe5f95a715bd5b5331e757816f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/components/icons.tsx:190 \u00B7 src/components/icons.tsx:211 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/icons.tsx"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade1976b7bbf61a5339eddbe96ca4bdc01eaa0e17bd42353b3d05a4a9ecbe13d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/contract/envelope.ts:151 \u00B7 src/contract/envelope.ts:175 \u00B7 src/contract/envelope.ts:204 \u2014 all 3 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/contract/envelope.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"125e05a6c36d7b86a7e82e2417aff507bdcae8ce535997eed9d7095f2f6d1076"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7 locations): src/contract/envelope.ts:506 \u00B7 src/contract/envelope.ts:530 \u00B7 src/contract/envelope.ts:547 \u00B7 src/contract/envelope.ts:562 \u00B7 \u002B3 more site(s) not listed \u2014 all 7 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/contract/envelope.ts"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3c0002213abc051d112ca9558ca4860a39827409f29dfbe3ec66a2d049b3ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/contract/envelope.ts:824 \u00B7 src/contract/envelope.ts:858 \u00B7 src/contract/envelope.ts:1247 \u2014 all 3 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/contract/envelope.ts"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ddb6623925c225e3343956565a01d25c7a53e4b6236187e7a42619f87773d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/preview/renderers/PptxPreview.tsx:300 \u00B7 src/preview/renderers/PptxPreview.tsx:318 \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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa654c75380f4701eb8b80283121d94be054c2fe7cea720efa3332e5d20397b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/shared/roleLabel.ts:17 \u00B7 src/shared/roleLabel.ts:25 \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/shared/roleLabel.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"62eeefce9ae69eec66e155e9b7e5b12048aa9ddddbdc6a72775cd53146f08e1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): src/store/filePreview.ts:356 \u00B7 src/store/filePreview.ts:366 \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/store/filePreview.ts"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ea6046d97053a07366cb80952ec45a3a57c892ec308d61b19ca4c12efff651"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): src/store/tokenUsage.ts:178 \u00B7 src/store/tokenUsage.ts:200 \u00B7 src/store/tokenUsage.ts:227 \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/store/tokenUsage.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"140cc0d83a4133c1fc0a05f2883b244b40bb53f530e24018dd26be3e6ad808c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/components/ChatStream.tsx:1564 \u00B7 src/components/ChatStream.tsx:1593 \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/ChatStream.tsx"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6ee6a831c335004ed4cab198432a877f51e092afe065719091fd8769c8b7f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): src/components/ContactsView.tsx:1039 \u00B7 src/components/ModelBindingModule.tsx:239 \u00B7 src/components/ModelBindingModule.tsx:308 \u00B7 src/components/ModelBindingModule.tsx:329 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"3666f9e897cbf98e16a14d80eb82c8d624d58e243c9934f8c27964d968df7afb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): src/components/FavoritesView.tsx:44 \u00B7 src/components/KnowledgePreview.tsx:25 \u00B7 src/components/KnowledgeView.tsx:68 \u00B7 src/components/KnowledgeView.tsx:85 \u2014 the 4 copies are spread across 3 files, 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/FavoritesView.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb1197ffa6432608415e1e79fe075944cecbf8f143ea7a4733ae7186587b938"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/components/FileCard.tsx:126 \u00B7 src/components/FileCard.tsx:265 \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/FileCard.tsx"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7c392d05dd9b4694c036ac81df78553390d9a845ca8d083575a5413eb75593"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:1236 \u00B7 src/components/KnowledgeView.tsx:1255 \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/KnowledgeView.tsx"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"16185364ce04ca76cbd5fbccfbe913cbb7e35c7d9c9d3f892b2c75aa4a195db6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/components/ModelBindingModule.tsx:203 \u00B7 src/components/ModelBindingModule.tsx:217 \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/ModelBindingModule.tsx"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"1827e05eddd57c59190df320114d25232a9fca7bdfc11522056f3e82adb144bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/components/icons.tsx:163 \u00B7 src/components/icons.tsx:172 \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/icons.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25b9966f60e0391319e022f033fa3c2447e1bdc0e08d2cf69cfc733fa6a182b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10 locations): src/contract/envelope.ts:281 \u00B7 src/contract/envelope.ts:307 \u00B7 src/contract/envelope.ts:320 \u00B7 src/contract/envelope.ts:336 \u00B7 \u002B6 more site(s) not listed \u2014 all 10 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/contract/envelope.ts"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a3e9c868baf0d89ba9c9c0d356991246614414e54044dbc89f1814878e09fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/contract/envelope.ts:986 \u00B7 src/contract/envelope.ts:1022 \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/contract/envelope.ts"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c564028579a7219aa7a51919f9a85a9e3297146384fd1a4e0c974dd61e9480c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/preview/renderers/ImagePreview.tsx:13 \u00B7 src/preview/renderers/PptxPreview.tsx:549 \u2014 the 2 copies are spread across 2 files, 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/preview/renderers/ImagePreview.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e49ca590a2d8e0b827fea7cf6929512bedcb240ddddccd3c0051b6b85630e06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/preview/renderers/PptxPreview.tsx:489 \u00B7 src/preview/renderers/PptxPreview.tsx:510 \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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebe578cd41ea3234b7d62ad8d265567e32a56b6bb5ce48e6f14db59d618baaa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/store/records.ts:220 \u00B7 src/store/records.ts:237 \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/store/records.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4601306a6d715c42dd5a6d1c425072d27c9a5b7fbf3ea2cf57ad2cbbf6bc5e8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/store/state.ts:2251 \u00B7 src/store/state.ts:2347 \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/store/state.ts"},"region":{"startLine":2251}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4d11c1c6324d9476b926a0b230e426b442c9de5f9205724e7732d3715b7715"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/store/state.ts:2266 \u00B7 src/store/state.ts:2365 \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/store/state.ts"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f358df3ffef0f1bac410f7092a3a1eb52d5ade31db805af0fbca76ec4b727d9c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/make-avatars.mjs:81 \u00B7 scripts/make-logo-v4.mjs:151 \u2014 the 2 copies are spread across 2 files, 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":"scripts/make-avatars.mjs"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba969b288ae5ee5cdb4224ba1c879d971d0cbb3b4f6d40770f19e5a82c1ab29"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/ContactsView.tsx:465 \u00B7 src/components/ContactsView.tsx:472 \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/ContactsView.tsx"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f85e0ece171c114bcff330aed3ad91d7dc8bf5eaa3c50e3783cdc3a32f48959"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/ContactsView.tsx:529 \u00B7 src/components/ContactsView.tsx:550 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e1ce686a754b61007a862a4a1c6f875c8cb0cc1efb2ac3d9cca0272eb32b12"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5 locations): src/components/ContextMenu.tsx:49 \u00B7 src/components/ContextMenu.tsx:60 \u00B7 src/components/ContextMenu.tsx:77 \u00B7 src/components/KnowledgeView.tsx:102 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 2 files, 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/ContextMenu.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f89ba24de15ddeaa1554c84fe1d9cd7e4d2c93bd4cc02fe782016a4e11519d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/ContextMenu.tsx:72 \u00B7 src/components/FavoritesView.tsx:43 \u2014 the 2 copies are spread across 2 files, 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/ContextMenu.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb4bb17f694dc10c4d366331810dd5eef08aba513b85eab364a42d00d8fdd02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/GlobalSearch.tsx:368 \u00B7 src/preview/renderers/PdfPreview.tsx:47 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/GlobalSearch.tsx"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8c4d23bdd25d990dd9fcf265dbe0f492f4964d107a42ae594fdea0683bb21b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:65 \u00B7 src/components/KnowledgeView.tsx:74 \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/KnowledgeView.tsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0433af85d7694630a112bf4b259f7002ea2140b6c9ea1f824c3111854523306"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:873 \u00B7 src/components/KnowledgeView.tsx:963 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgeView.tsx"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffac2c564108fb8bfd6a9047959e3dfc099b3f321535fb4b98815730e7d96dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7 locations): src/components/icons.tsx:60 \u00B7 src/components/icons.tsx:120 \u00B7 src/components/icons.tsx:138 \u00B7 src/components/icons.tsx:181 \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/components/icons.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aab2b5a8f3a98b008f1d5cbb3f3b2c8c7e14630c4fbf95f0cb5cb40b932eada"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6 locations): src/contract/envelope.ts:74 \u00B7 src/contract/envelope.ts:147 \u00B7 src/contract/envelope.ts:200 \u00B7 src/contract/envelope.ts:223 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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/contract/envelope.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d726e27a03560371b8b359539598bd4b8a943cc3d11d56d2b3fab0dd7f0fef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/contract/envelope.ts:1216 \u00B7 src/contract/envelope.ts:1230 \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/contract/envelope.ts"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0426d935fa439bfd79efcf9cbbbccfcd37f16243155c0e487d2e9d56ffc3963e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4 locations): src/preview/icons.tsx:28 \u00B7 src/preview/icons.tsx:50 \u00B7 src/preview/icons.tsx:56 \u00B7 src/preview/icons.tsx:62 \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/preview/icons.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"370b09c60e46b8e70a8e54748169de429f8d5f2fa807ea6f8f5c2c94ac6195e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/make-avatars.mjs:95 \u00B7 src/store/avatar.ts:104 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/make-avatars.mjs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1dffe2c95c9f6544b16121f42a670de482aeed861a3201f9cf865099bafd3bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 22 locations): src/app/App.tsx:252 \u00B7 src/components/ApprovalCard.tsx:153 \u00B7 src/components/ChatStream.tsx:717 \u00B7 src/components/ContactsView.tsx:762 \u00B7 \u002B18 more site(s) not listed \u2014 the 22 copies are spread across 14 files, 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/app/App.tsx"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a4d4c3cbf75fe41aa79b04e4e391e0825f000d56c5b07785b8396673718d31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8 locations): src/components/ApprovalCard.tsx:154 \u00B7 src/components/Composer.tsx:188 \u00B7 src/components/ContactsView.tsx:764 \u00B7 src/components/ConvList.tsx:57 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 8 files, 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/ApprovalCard.tsx"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17549f17337fecdb7c93b230a06c04cb2ddab27aca2e01e16ddd2d66369e788"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/components/ChatStream.tsx:603 \u00B7 src/components/ChatStream.tsx:619 \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/ChatStream.tsx"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"6363f36c986be1a8fa88006e5d9d6366b320976e56a47c85c5d5e84cffe7f0eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): src/components/ContextMenu.tsx:848 \u00B7 src/components/ConvList.tsx:58 \u00B7 src/components/GlobalSearch.tsx:366 \u00B7 src/components/KnowledgeView.tsx:175 \u2014 the 4 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContextMenu.tsx"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"218e59050337b3278fef4c3a749440dbae0fbdcc2789c73a0f0fa16cdb5d7c9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/components/ConvList.tsx:284 \u00B7 src/components/KnowledgeView.tsx:607 \u00B7 src/components/KnowledgeView.tsx:689 \u2014 the 3 copies are spread across 2 files, 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/ConvList.tsx"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"018674b1ae5ff41c5e021c6ee9706c8419ea304567238d554728ab4a835d4471"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/components/KnowledgePreview.tsx:85 \u00B7 src/components/KnowledgePreview.tsx:90 \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/KnowledgePreview.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24eaac431ce00cc18233e0d25b2c7f01b76c4273844ed9f27bd608fd87c2a7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): src/components/KnowledgePreview.tsx:203 \u00B7 src/components/KnowledgePreview.tsx:222 \u00B7 src/components/KnowledgeView.tsx:881 \u2014 the 3 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgePreview.tsx"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3815c608a7b8928283229328b957ee028e22e057c8d567c3fff449d959e53ef4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/components/KnowledgeView.tsx:703 \u00B7 src/components/KnowledgeView.tsx:713 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgeView.tsx"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e508422d0859a6945d37bc560ba1a444315bb18dee90222fc605bd850d8da8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/components/TokenUsagePanel.tsx:54 \u00B7 src/components/TokenUsagePanel.tsx:59 \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/TokenUsagePanel.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4d9e07175b9309c719d13784298d6b434b880b27baab0f5c4b906c2d06f5e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): src/preview/PreviewTabs.tsx:95 \u00B7 src/preview/PreviewTabs.tsx:114 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\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/preview/PreviewTabs.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd618414e8b75a41c55604339f53977ba70af7f1a267ffcedc48ea1b0e18af9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: src/preview/renderers/PdfPreview.tsx:10 imports pdfjs-dist/build/pdf.worker.min.mjs?url, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/PdfPreview.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"719ad5d2982ea465ba2eb2749a0ef41d36965d452208085e235d9d9c628d9f10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyEvent (cyclomatic 225, cognitive 403): applyEvent has cyclomatic complexity 225 and cognitive complexity 403; 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/store/state.ts"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf16e62f461096ff81c1c4e3f2715def81547059a88b7f96bb48ba45dacd975"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function KnowledgeView (cyclomatic 66, cognitive 57): KnowledgeView has cyclomatic complexity 66 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/KnowledgeView.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7af5937d2860cf9372f8f2fa4979e5a7ae5f64a17cd948ffea74de1c05decd6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 60, cognitive 94): (anonymous) has cyclomatic complexity 60 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/store/store.ts"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"179a52acea93201a3b4ee09022f5b6806aa9b2b6964d858dcbbbd46ff463a4b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function highlightGenericLine (cyclomatic 58, cognitive 104): highlightGenericLine has cyclomatic complexity 58 and cognitive complexity 104; 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/preview/renderers/codeSyntax.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b0b763cff635547927cec9f759a99171e135861a661237a652e99bcb0df260"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 58, cognitive 58): (anonymous) has cyclomatic complexity 58 and cognitive complexity 58; 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/MessageBubble.tsx"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad39d223ded0238d09c984f2ad9487e61c8dba2a5a932976f0b1278e7798e363"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelBindingModule (cyclomatic 58, cognitive 52): ModelBindingModule has cyclomatic complexity 58 and cognitive complexity 52; 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/ModelBindingModule.tsx"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7282b469d7ce1b3f116da6ebf6b9856fad38587fb5bb7c40fc20859293732a72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 51, cognitive 43): (anonymous) has cyclomatic complexity 51 and cognitive complexity 43; 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/ApprovalCard.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"92af7401d2efd6dd7e9e1d4f03163822e3d71bd8e22a5a441f8fda8eb43b82f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TokenUsagePanel (cyclomatic 49, cognitive 40): TokenUsagePanel has cyclomatic complexity 49 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/TokenUsagePanel.tsx"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0f75b88623ac2b396391003fe58b5b70e13a49c5d35433c483dfe99f2d6590"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function KnowledgePreview (cyclomatic 43, cognitive 41): KnowledgePreview has cyclomatic complexity 43 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 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/KnowledgePreview.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afbf43b22c384033e8c9b82fafaf765e363212e5d63af88d3b8e9163720c313"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChatStream (cyclomatic 40, cognitive 34): ChatStream has cyclomatic complexity 40 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/ChatStream.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e364a6d9e0a576b8fabbd401e7cb285f707562ed77d03592f19f796c2782db35"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 38, cognitive 51): (anonymous) has cyclomatic complexity 38 and cognitive complexity 51; 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/ChatStream.tsx"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4dbbba6f0357bb7061b6777caf9506d0bae906015d78c220b5c999d428a169"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function previewTabsReducer (cyclomatic 35, cognitive 40): previewTabsReducer has cyclomatic complexity 35 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/preview/PreviewApp.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae49ddaf76262f72f402bffca6df9bbd3a01667513eec88880d841a0d4a75ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function highlightMarkupLine (cyclomatic 33, cognitive 66): highlightMarkupLine has cyclomatic complexity 33 and cognitive complexity 66; 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/preview/renderers/codeSyntax.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ea190ad5304aa23e8dfd075a8b048207c81a47546b36fe739ea5737ca6468c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ConvListItem (cyclomatic 31, cognitive 29): ConvListItem has cyclomatic complexity 31 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 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/ConvList.tsx"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3974413e97504a2b9cc36f898f281676c42d8c7382554fb3c7a7ce1f1da58184"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseTextShape (cyclomatic 30, cognitive 41): parseTextShape has cyclomatic complexity 30 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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c60e36129ed0f915891afe9f8c5bcb28beb7587e49c4ccbe16bba97761b234"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function markdownToTiptapDoc (cyclomatic 29, cognitive 47): markdownToTiptapDoc has cyclomatic complexity 29 and cognitive complexity 47; 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/shared/tiptapMarkdown.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3a5221ac5d3122b6da7d37b4dd7b2459528b4df49331c7e07cd2bc4d1b691b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FirstRunModelGate (cyclomatic 29, cognitive 23): FirstRunModelGate has cyclomatic complexity 29 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/FirstRunModelGate.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e735adbe97091b4e7adeeda23efda315fd36b01fb5ee7725bb4f7525dbf7f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 38): (anonymous) has cyclomatic complexity 27 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/GlobalSearch.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b23cd0d10938bbbdc03b8601bff52cf45fc3ed2118037452207f305aa26ce72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteProjectPermanently (cyclomatic 27, cognitive 31): deleteProjectPermanently has cyclomatic complexity 27 and cognitive complexity 31; 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/store/store.ts"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"726d0855f3ad0647844cb658a7186b6e47489d3112f7218416c6cca0c4252d9e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileProjectAlias (cyclomatic 26, cognitive 30): reconcileProjectAlias has cyclomatic complexity 26 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/projectAlias.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d075d9f3967cf74a90f7b3224af0f6d8649cb215f6bd014d3971e2cdde0cae3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleServerControlEvent (cyclomatic 25, cognitive 31): handleServerControlEvent has cyclomatic complexity 25 and cognitive complexity 31; 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/transport/socket.ts"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebebeac84a2f2a9a4c5783ccad79843ba1a31946dc46bfd867a9ea982fba5c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeEvent (cyclomatic 25, cognitive 28): routeEvent has cyclomatic complexity 25 and cognitive complexity 28; 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/transport/socket.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b31cea508f0cfb33338062fb56c8e17bd9af27ef8254f644523610acfd242e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toCard (cyclomatic 25, cognitive 24): toCard has cyclomatic complexity 25 and cognitive complexity 24; 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/store/knowledge.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"42113b6a2101a2c55b8108f7f916abbf90a52c6bdf7fec0d649defadb49c5803"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseSlide (cyclomatic 24, cognitive 41): parseSlide has cyclomatic complexity 24 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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2cd3d0dafc9fab9188d93f1db4fbe5b30394556130080245ce9c98dbb2e48d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 37): (anonymous) has cyclomatic complexity 24 and cognitive complexity 37; 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/RecordsDrawer.tsx"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa1c4b3f1bbd129a34cc006530ba2183f26dcfc53ce10c1c23067282e86409f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decodePng (cyclomatic 24, cognitive 28): decodePng has cyclomatic complexity 24 and cognitive complexity 28; 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":"scripts/make-logo-v4.mjs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"236b72e5c5b5995707c38dcc7238179574330f4bb180f5dd8d29efae7e4a8d04"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 24): (anonymous) has cyclomatic complexity 24 and cognitive complexity 24; 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/Composer.tsx"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1036ac497a9ea12d4d26aff0708e0d89e1aaca17e39e45b2264fd27655b4fe6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function humanizeCompletionStatus (cyclomatic 24, cognitive 23): humanizeCompletionStatus has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/store/state.ts"},"region":{"startLine":2197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c262e7f7badf64f997faa2258cc054479e96827bfbd0dd387cbd5cfd935caf1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function registerMember (cyclomatic 23, cognitive 29): registerMember has cyclomatic complexity 23 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/store/state.ts"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4aa11049694254676d882bd825d68bc0b84a1fbb7a14c8264b35458b7352d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCompletionStatus (cyclomatic 23, cognitive 27): applyCompletionStatus has cyclomatic complexity 23 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/state.ts"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e8ec027c0b9b8c51dc89711e31717f965b321d9b7a020fd36453f220473258"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Composer (cyclomatic 23, cognitive 21): Composer has cyclomatic complexity 23 and cognitive complexity 21; 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/Composer.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"999d1e5cabfe67e29884c25bbf8a6b97248244dfa884325c9d945b851d3e4f22"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 40): (anonymous) has cyclomatic complexity 22 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/store.ts"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ce1cdda7606f801011dfed96f13ebe21951f413e85c3e554e6929162be56fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decorateConversationList (cyclomatic 21, cognitive 30): decorateConversationList has cyclomatic complexity 21 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/ContextMenu.tsx"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"db749dfc57c87f1bceb2181c20808ca10da6ccf69bc820a9c12acc2c96474180"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCompletionViewV1 (cyclomatic 21, cognitive 23): applyCompletionViewV1 has cyclomatic complexity 21 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/state.ts"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0d2b3fb336ff49ced64f475995695edbc3f032c8299860eb0fb314aace8728"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toSkillPack (cyclomatic 21, cognitive 19): toSkillPack has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/store/knowledge.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b3a8c8f296a30a9cba5dd858c5ea60f9b035133eba90fb5105b1e4bd12aec5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendToolActivity (cyclomatic 20, cognitive 28): appendToolActivity has cyclomatic complexity 20 and cognitive complexity 28; 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/store/toolActivity.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1bea0eb010f8bba353b3ae57e8203860b4857395472e2226d2cf0dc6eca311"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function App (cyclomatic 20, cognitive 19): App has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/app/App.tsx"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4c4534aa0bac2970bccceb4953ea1714f5d53aa707153826c0b60d3446220b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kindOf (cyclomatic 20, cognitive 16): kindOf has cyclomatic complexity 20 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/preview/fileKinds.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddcffbd95b767faffb8b5be0a67333d2994ffa1c116c8ff69b3a8e9ccf1a745"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 20): (anonymous) has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/selectors.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc9e1dff18e1337a532647fb9e6e8062cc185e3c82a6d1af09fddaa12995bec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 17): (anonymous) has cyclomatic complexity 19 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 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/KnowledgeView.tsx"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"567f869b56f19f33e4e674ddc18d80d7d2b05e01c1d7383e8db21bc7b0244b3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 17): (anonymous) has cyclomatic complexity 19 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 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/KnowledgeView.tsx"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"b964a1b4bf9a74a6317a8fbe997a10efaa59f717e68ca86a87cec8b3711ca8a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileSettings (cyclomatic 18, cognitive 18): reconcileSettings has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/settings.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"44be890803b23e6e6be5878cee24e053604a87c77f1c77c1a964901a89d7e39a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 16): (anonymous) has cyclomatic complexity 18 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/ChatStream.tsx"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"84beb74cbcc2aa19fa2c98bbae8c26d18c0302c4d4b29f86c3044012d573aad2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ForwardModalBody (cyclomatic 18, cognitive 15): ForwardModalBody 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/ContextMenu.tsx"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfccec3351e24dfc15fa72828ffe81148009284bf4e30ae5ee27aa5485d09939"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 14): (anonymous) has cyclomatic complexity 18 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/ChatStream.tsx"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a625b94ffe02e9ea8873980968f33c6d779cbec7e3144bdb472861eafb492a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function forwardMessages (cyclomatic 17, cognitive 26): forwardMessages has cyclomatic complexity 17 and cognitive complexity 26; 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/store/store.ts"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6667bdc538737f88f9c159e00ea6d74a94787f986883189e68fece4b35e60d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RecordsDrawer (cyclomatic 17, cognitive 15): RecordsDrawer has cyclomatic complexity 17 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/RecordsDrawer.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"79096517b9a2dea4085d824e87d48f341f21ccc3dbb48565ee55973dc16fa4bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testBinding (cyclomatic 17, cognitive 15): testBinding has cyclomatic complexity 17 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/store/settings.ts"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37e6229523fbf90c557eed86a434f6efbc8336bc21d5d4232fa12b01ddacbff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveProjectRelativeTarget (cyclomatic 17, cognitive 9): resolveProjectRelativeTarget has cyclomatic complexity 17 and cognitive complexity 9; 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/store/filePreview.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"442aab88155e9759b25d1b8b0990ebdd55a31e10dbb4cead81db8d7a45ac2f3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addFromMessage (cyclomatic 16, cognitive 27): addFromMessage has cyclomatic complexity 16 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/favorites.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f9a8c698b13e6feeab485271031b0a8a6416b39efdafffdf652e7374dc304d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findRelayPair (cyclomatic 16, cognitive 23): findRelayPair has cyclomatic complexity 16 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/ChatStream.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c529b5405e33aa7c8a8c7d96bee6812bb53af8e6a543bf210989434556be8447"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function postCurrentSettingsNow (cyclomatic 16, cognitive 20): postCurrentSettingsNow has cyclomatic complexity 16 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/settings.ts"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3c8ced7424c87dd4a111868fa7b15ffa19da054132fad6c71672de480b1d33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 15): (anonymous) has cyclomatic complexity 16 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/RosterPanel.tsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2516147a7e63880091ee8797cecd8727beb3cb6c05a7d4fe527f346efaca1bdc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ConvList (cyclomatic 16, cognitive 14): ConvList has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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/ConvList.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"840d085c6279271e312aeec4278d095414f4567f3ca80a183162103c57c74751"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TrendChart (cyclomatic 16, cognitive 12): TrendChart has cyclomatic complexity 16 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/TokenUsagePanel.tsx"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46882b1a977058865b367b6180aa69a44ee1d53edb89bd0919847c7bac84680"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rangeToBounds (cyclomatic 16, cognitive 11): rangeToBounds has cyclomatic complexity 16 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/store/tokenUsage.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b28f4b33162d7a1c5a46ce6272e89d971d1b222c630a9395751008d8a5fc54"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function spawnBackend (cyclomatic 15, cognitive 21): spawnBackend has cyclomatic complexity 15 and cognitive complexity 21; 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":"electron/main.ts"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"928743013318516d15fa9b01f08ad0fe8bd1eb6a91c815311808034327a881c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 18): (anonymous) has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/app/App.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b141d250e688c330a083d681e8b67c9d8aaa3d379163a6d4d2e6152e0686528"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testAllConnections (cyclomatic 15, cognitive 16): testAllConnections has cyclomatic complexity 15 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/store/settings.ts"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3c1aa2e940061bc43ebb33b2ae2152c91d26b97a286b88ecf8d4580cf74a02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeApprovalCard (cyclomatic 15, cognitive 15): normalizeApprovalCard has cyclomatic complexity 15 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 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/contract/envelope.ts"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6b1d2a96aa2365d224dc5a5b8695d1d18a413badc26131bfd3cd01fe5dee11"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function canonicalPreviewPath (cyclomatic 15, cognitive 15): canonicalPreviewPath has cyclomatic complexity 15 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 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/store/filePreview.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae72e3e816b58709248ccebaf87e45e72c69150083c56a44797b6625a5d10501"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FoldableBubble (cyclomatic 15, cognitive 13): FoldableBubble 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/MessageBubble.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e2e19583998d061756869074c48262f6d3cb05883091f090b0b0d9ab2319b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onCommand (cyclomatic 15, cognitive 10): onCommand 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/fakeserver/FakeKnoweServer.ts"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b56c0d9a47eb4cbd89c0cf4ddfb5c9b11e9e75ab5f73f9e689986918ef2dc4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 19): (anonymous) has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/ChatStream.tsx"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e083ea79ce0f565a0faefd05cb0704779ac0920e35947ccc51b35d8855298e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function current (cyclomatic 14, cognitive 19): current has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/Composer.tsx"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe859061ac84a90be8a30c701b3cbc03f13a33e079c1c59bc653aae8c440bced"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function projectMenuJson (cyclomatic 14, cognitive 17): projectMenuJson has cyclomatic complexity 14 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/store/store.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fff2d3c3d64d035b81899dfb19cdc842a9b9c2b5a2023f7502abe83a8a811b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 14, cognitive 16): main has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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":"scripts/copy-chromium.mjs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4414a13f47e2f49a82bdc2347f76751ebe746fc787a560178fd3e2c2c4177d63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseInline (cyclomatic 14, cognitive 16): parseInline has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/shared/tiptapMarkdown.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb360015fde05166a169fb2c2ea7f11cc2081ce2cbb77428f679c1bb0c1c723"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePreviewUrl (cyclomatic 14, cognitive 14): parsePreviewUrl has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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":"electron/previewNavigation.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"36660b9a4a03b9dbc0560485c9668391db33119895d811721091ffff1744256b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isAllowedPreviewFrameUrl (cyclomatic 14, cognitive 13): isAllowedPreviewFrameUrl has cyclomatic complexity 14 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":"electron/previewNavigation.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"33377570b04ef9d8a2faf70e9ef799d2deed20ae2f93290c00bec5ab79420439"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteAgentPermanently (cyclomatic 14, cognitive 13): deleteAgentPermanently has cyclomatic complexity 14 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/store/store.ts"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bd20bb282588051653ceb82e538e4155bbdda8e1d039c07a3420a8f3edd6fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function blockToMarkdown (cyclomatic 14, cognitive 10): blockToMarkdown has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \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/shared/tiptapMarkdown.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff72661849d4ae77ec341359b98d4b74eef6b4fda016ec075247b4d3b4638819"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findConversationDom (cyclomatic 13, cognitive 16): findConversationDom has cyclomatic complexity 13 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/ContextMenu.tsx"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e815cf155079818aad4ef91cbf8d540fa855527deef0e01e1ce485b3ca20a0b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inlineToMarkdown (cyclomatic 13, cognitive 16): inlineToMarkdown has cyclomatic complexity 13 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/shared/tiptapMarkdown.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3030b79ac76022997f8e687c186c8878b71b4882737d07da57043061acdddf5e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dedupeFinal (cyclomatic 13, cognitive 16): dedupeFinal has cyclomatic complexity 13 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/store/state.ts"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e98db1d0bffe3d40e541097047555cabf544e3acefbf61785f46d9deed5fea0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) has cyclomatic complexity 13 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 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/ChatStream.tsx"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c93612a21c3c874c45141790b753db06013819c497c7918ae0533aece9d5c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) has cyclomatic complexity 13 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 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/ChatStream.tsx"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33b228cfd91b7c60eb77dc67ddb3c8c940dd7aeaec5ef8a9ea5e748a1605f4e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyConversationState (cyclomatic 13, cognitive 14): applyConversationState has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/store.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f737a15ef19f3f14c006fa23b0bd5615acbac68fad90abd82c63db668ca64e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentProfile (cyclomatic 13, cognitive 12): AgentProfile 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/ContactsView.tsx"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cc6d8f9c8357260ce7ef0a2e11f2dfce6e482e4a3f7b8c58adda702c74543b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ReasoningPanel (cyclomatic 13, cognitive 12): ReasoningPanel 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/ReasoningPanel.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc3bfdc0374421e4e0c98329604fe41d170ba0db01c4ef62c82355ed50f0aa0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) 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/TokenUsagePanel.tsx"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ac4422e7b53bf8d307726fdf2a3cfeb93fdd4fcebb7631ad11842d9548b62a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadSkeleton (cyclomatic 13, cognitive 12): loadSkeleton 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/store/skeletonCache.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7879b84a5646e0ae202803ce74b50d0a44f16c0af4b82a614db96f0bc1f3dd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ZoomPanViewport (cyclomatic 13, cognitive 11): ZoomPanViewport 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/ZoomPan.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a526eb4446db6b0e856776f0003a57b4b4d5d774a5202376d78f9b34fb29aaa7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DirectoryPicker (cyclomatic 13, cognitive 10): DirectoryPicker has cyclomatic complexity 13 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/DirectoryPicker.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"92af672945bd4ac879df5f87da5dda6432d8851e5c14f18eff6de599e0b4d670"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleEvent (cyclomatic 13, cognitive 10): handleEvent has cyclomatic complexity 13 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/store/store.ts"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a3a781ff60d96f79740e21fa2872369bb8ba7ae35892f977c54f2402d8938e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleTokenUsageEvent (cyclomatic 13, cognitive 10): handleTokenUsageEvent has cyclomatic complexity 13 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/store/tokenUsage.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8348513cb87b3855fbabae207076a13dafee8edff756621aa6b7dad537a87e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupFileHistory (cyclomatic 12, cognitive 19): groupFileHistory has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/store/records.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e81b10844ab2d71dad7868a6ba3031c5ddecbded09b1da0eb1652c8e54cb2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractNamedFunction (cyclomatic 12, cognitive 18): extractNamedFunction has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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":"scripts/test-built-main.mjs"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"996ead5670d0853b4161df7f1488a037a4b25d5da0596ecb4c07675fe615a0db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function migrateLegacyDataRoots (cyclomatic 12, cognitive 17): migrateLegacyDataRoots has cyclomatic complexity 12 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":"electron/main.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"58db99b5994869bbbb596f92e0a3503198e6cdcc6f301379d075ac5afc65189d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderInlineMarkdown (cyclomatic 12, cognitive 13): renderInlineMarkdown has cyclomatic complexity 12 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/components/InlineMarkdown.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d79b98d3b713a9a22f25f1231e2a8da1be72e56f5df9f9078a5bf8cd8f5c4fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function previewString (cyclomatic 12, cognitive 11): previewString has cyclomatic complexity 12 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":"electron/main.ts"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"938c95ca2eefb7454c7acabbda374ecdf5bf692a4142617e9fc4281ced6d5587"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 12, cognitive 11): main has cyclomatic complexity 12 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":"scripts/make-icon-icns.mjs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6283884c50ee14a206742b19e14324a160a177958a924046ebeed4d22a09ae1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function KnowledgeModals (cyclomatic 12, cognitive 11): KnowledgeModals has cyclomatic complexity 12 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/KnowledgeView.tsx"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aaa789eabfa3f091bec1298da4b782f45c44b7fb658e0bd349fd844cc94cb1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PdfPreview (cyclomatic 12, cognitive 10): PdfPreview has cyclomatic complexity 12 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/preview/renderers/PdfPreview.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc2010129c147c4d99c68b2029d92395f3dca618879ac217748c557b8bfb4de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finishAgentStages (cyclomatic 12, cognitive 10): finishAgentStages has cyclomatic complexity 12 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/store/state.ts"},"region":{"startLine":2159}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e54d4e6137b493bfa37973dd7c30f3b62d31f0e930e6e644b0992807530727"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileConversationStateAlias (cyclomatic 12, cognitive 9): reconcileConversationStateAlias has cyclomatic complexity 12 and cognitive complexity 9; 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/store/store.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de998d3f99a61cecde8dd6b1dea5c5113b009762ed346b22e1888990678419a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatZhCompact (cyclomatic 11, cognitive 19): formatZhCompact has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \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/TokenUsagePanel.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a8343c0b58cdb6830b66bc31b0257d297aec09bb999b1281bfae15f24dd586"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function doReplay (cyclomatic 11, cognitive 15): doReplay has cyclomatic complexity 11 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 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/fakeserver/FakeKnoweServer.ts"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac05f34a10b6bafeeb978b6446b41ffc8b1866c906b0540c54b009ef3ed645c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 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/components/ChatStream.tsx"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55a159a60e3301f8c798571d6a29f8e812f38876a10298741225a9f098989df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toolTechnicalDetail (cyclomatic 11, cognitive 13): toolTechnicalDetail has cyclomatic complexity 11 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/store/toolPhrase.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b18b3d26366ca7d4f797107f73747a072f43231aae3b410da752dfc9026b8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) has cyclomatic complexity 11 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 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/store/store.ts"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2e3350872597468ac9bec1e30eda2352e00d1b2ae3e3edc877d703fc50fafc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 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/ChatStream.tsx"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6f6210a69451063d527a0d2ef175b458f304be1cb63364cd8dc848839e521a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAgentMenu (cyclomatic 11, cognitive 10): openAgentMenu has cyclomatic complexity 11 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/ContextMenu.tsx"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"64016a929ca6dbf05b24333d57734390f98f54b5df0a11537c3494a3089b6315"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function colorFrom (cyclomatic 11, cognitive 10): colorFrom has cyclomatic complexity 11 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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c79a7b9451bca3f2f5da971d2ee6d4922a4f8cb956d98987f7c98307ffe75d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function displayInfo (cyclomatic 11, cognitive 10): displayInfo has cyclomatic complexity 11 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/store/state.ts"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"0655b3b8adba27b1e5491908b924f8a5db6228f5edf94d94cdce16ea7269cffc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onClick (cyclomatic 11, cognitive 9): onClick has cyclomatic complexity 11 and cognitive complexity 9; 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/ChatStream.tsx"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02bf5d69c3ca3fbffc2948eb4f5dff1cc54cd5f7964e3987f9a9a86af639a3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RangeCalendar (cyclomatic 11, cognitive 9): RangeCalendar has cyclomatic complexity 11 and cognitive complexity 9; 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/RangeCalendar.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b228d0946913a0a955dda29443cecb507ca36bf98ed5770b7e9f28370eb0ed9f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/store/state.ts: 2379 lines of code: src/store/state.ts has 2379 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/store/state.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edea4310b19e3f2caec1d7f03a90130800d40d40f68b8969ae072caaf06905bc"}},{"ruleId":"R3","level":"warning","message":{"text":"src/store/store.ts: 2003 lines of code: src/store/store.ts has 2003 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/store/store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0f9cc2d660f3d38bc23b881930f59376216c9988088da307ea39efc7b00dc9"}},{"ruleId":"R3","level":"warning","message":{"text":"electron/main.ts: 1791 lines of code: electron/main.ts has 1791 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":"electron/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c72026b419d43828ff37c4eb7522b8ac43c443811174e59a4ff4840a5a2aa0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/ContextMenu.tsx: 1738 lines of code: src/components/ContextMenu.tsx has 1738 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/ContextMenu.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6936f41abbf5b9cfb86d21e7e631070b3a850425b97dc2fb94251017be7b241c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/ChatStream.tsx: 1625 lines of code: src/components/ChatStream.tsx has 1625 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/ChatStream.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58359e22e886ece75d1d9c8e7a31c81fcac6a75152ba103606ae15a599a26391"}},{"ruleId":"R3","level":"warning","message":{"text":"src/contract/envelope.ts: 1354 lines of code: src/contract/envelope.ts has 1354 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/contract/envelope.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f88e8d853a5eeeda19fd5e5ee6bb9f52c884bcc8e16820029e5f799e4cb70c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/KnowledgeView.tsx: 1209 lines of code: src/components/KnowledgeView.tsx has 1209 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/KnowledgeView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca13c1739201798fd7f744de97098632238851eb68bbd8b2648d66a7eeb877c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/store/settings.ts: 1029 lines of code: src/store/settings.ts has 1029 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/store/settings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f230788c24d855a6b70070b603b0fc86cf79be534c1f7826bd08b8b393e0f7"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/ContactsView.tsx: 999 lines of code: src/components/ContactsView.tsx has 999 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/ContactsView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4c0ae9a98b50c39e6bfe363323ae323c13e20893f20e3e62b876f36e8d67ee"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/TokenUsagePanel.tsx: 960 lines of code: src/components/TokenUsagePanel.tsx has 960 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/TokenUsagePanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07ca7b7626d509f9410c6d76d83b760b9ec78d38605111df5b15cec02d24297"}},{"ruleId":"R3","level":"warning","message":{"text":"src/transport/socket.ts: 924 lines of code: src/transport/socket.ts has 924 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/transport/socket.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7549e55120cd866cfc9fa0bb295ba6096906cc344d7da6688fca072c765941"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/Composer.tsx: 835 lines of code: src/components/Composer.tsx has 835 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/Composer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6438cf9305301d47c72e8e05a87c999d5a264a94dca4fab1c5c05fd296f59475"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/SettingsView.tsx: 784 lines of code: src/components/SettingsView.tsx has 784 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/SettingsView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ab3ef381f2f86edfc44a87044e00f8ea7469a074741c9638f537b2f6a87305"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/ApprovalCard.tsx: 705 lines of code: src/components/ApprovalCard.tsx has 705 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/ApprovalCard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af490057a9b92741562f188e907245cef28b3fd065e744a3cce10227f0e83e73"}},{"ruleId":"R3","level":"warning","message":{"text":"src/app/App.tsx: 651 lines of code: src/app/App.tsx has 651 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/app/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe29f07bc2839b3666f938f8c3748a6a420d31002fe7735df64183d07c37b52"}},{"ruleId":"R3","level":"warning","message":{"text":"src/preview/renderers/PptxPreview.tsx: 611 lines of code: src/preview/renderers/PptxPreview.tsx has 611 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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b41d7c9507a455285957f5db16d2d3f8fe66873bb1873291c719cb31c1faa0"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/ConvList.tsx: 583 lines of code: src/components/ConvList.tsx has 583 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/ConvList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d356251146c2e6d9f0889e8230ac82caaeaff95ad9afb1bcabc536548bccbf6e"}},{"ruleId":"R3","level":"warning","message":{"text":"src/store/knowledge.ts: 569 lines of code: src/store/knowledge.ts has 569 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/store/knowledge.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a80d4a78645d75e4a5eb58ac93afd8af663a08bff2d3bb2329a7d5ec822f7c"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/MessageBubble.tsx: 563 lines of code: src/components/MessageBubble.tsx has 563 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/MessageBubble.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7f16e33063bcff45adb9e76dbcd97b1c6cbe3fb52bf52af39aca3b6cfc2dd2"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/RecordsDrawer.tsx: 518 lines of code: src/components/RecordsDrawer.tsx has 518 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/RecordsDrawer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fcc6b1c1b2655c3018a209cf67d986a7fd005d840f6a20b1354ab7d3610e12"}},{"ruleId":"R3","level":"warning","message":{"text":"src/store/modelCatalog.ts: 491 lines of code: src/store/modelCatalog.ts has 491 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/store/modelCatalog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d1c5a02a644e63501d223197769107451e8300db298fc98dc4431c7ecbdafe"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/FavoritesView.tsx: 454 lines of code: src/components/FavoritesView.tsx has 454 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/FavoritesView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef153cdd97257f9ab6f345c500f375d496c212130274de7a8b35f5837dcd629a"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/GlobalSearch.tsx: 439 lines of code: src/components/GlobalSearch.tsx has 439 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/GlobalSearch.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"762b56218d1917917518e57f0a24e6062389d70da1a8dbff60125e1d9a353b89"}},{"ruleId":"R3","level":"warning","message":{"text":"src/fakeserver/FakeKnoweServer.ts: 427 lines of code: src/fakeserver/FakeKnoweServer.ts has 427 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/fakeserver/FakeKnoweServer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cb19dea6e78ec6d6a22de44f11676b2b5817423fb10e9a003e07863bd11769"}},{"ruleId":"R3","level":"warning","message":{"text":"src/preview/PreviewApp.tsx: 425 lines of code: src/preview/PreviewApp.tsx has 425 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/preview/PreviewApp.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e258bc782c953a93b0337ff6567a66cf67e69eb47b5cba497139b596d34a13f4"}},{"ruleId":"R3","level":"warning","message":{"text":"src/store/tokenUsage.ts: 425 lines of code: src/store/tokenUsage.ts has 425 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/store/tokenUsage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c29bc5387334897174a01297ad9d05278d4de4f829f4a2243c81582e9990ede"}},{"ruleId":"R3","level":"warning","message":{"text":"src/components/ModelBindingModule.tsx: 423 lines of code: src/components/ModelBindingModule.tsx has 423 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/ModelBindingModule.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b56a83c2f99062dfac4c11ef4fee8f0fe8b761e60875b63f4bed5f93f02089f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe34464841bd7903f69f7502545f5ec0de95443db3a3a8f69513c22d418abc79"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgeView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d91f5e6ba282fb2d87feed9ba511b2b926c916ba13e3634300e642e0674cad"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ContactsView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2475f8b31a5086c289b80a6ec990700c9bac155dcfe99b260468bd58798eb407"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/SettingsView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9cc13e973fd0e8f8ec2ec61ff13f2a6876a35daa216579aae423df7d1b07d0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/app/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec886b62b6360f84765efde1ced13b90131e3e16156e4209c2e621c9aeea1f9"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/PptxPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e435f6e1377546aae486b177774c9ed683d487d407f6623c1f36e59f5b903f94"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/RecordsDrawer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb3706c66f9b3bc0d9e6754bdcfdd85fe156d28db906e272bf19a9486b00648"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FavoritesView.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9e531eeebe8b2c51aff9a0a64cb92f4cdadda987e21806fdf5fd8f4a46f75e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/PreviewApp.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5245b4b42450aa426802427f7dfd8cf86740802660d9a43934a80e6aa3acfa90"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ModelBindingModule.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabf604e24cd050c502d719a4bf5db729c9dc1dd0e3ec1b4d72f7f69f1bd6913"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/trayCard.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9d6b46421f09aaa7bf7cc1cad455dbcb3000a3ef4e6639e8c73d4bd17cad27"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/nameGenerator.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f76773f54330d8e13a8c07ce2f5109d65f7eac16978fa113fe0e3f29442abf"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/bridge.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc29b3f423bc01dd45408007032e77d95932076d2690210c28c5c64adb826c5c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/MarkdownPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86a12595fd496f214390f297d689f999c52db66a15059e789f6c1893b5f3dfc"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgePreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d452511d619d2596b1d3aeb1c30c351e144c7c96a3725c179aade6c228736e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/codeSyntax.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e76e5b8156b81401cfe96e23e11c0551820021dac693475beab0ad285c9915"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/PdfPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24920c63b339ac667671255f068a48f6d8d165b1ca7f5d99ebc9552c3a13a77"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ZoomPan.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceee943e20f66c4a405007e5a587a7a0a3abf5e3b2fa2ee5e0c19adeee93f14"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FirstRunModelGate.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3d8ccea0be1af9789d1d954666961f6e15c0e142960f8346609904434f78c2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/preload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2117094353520fbe0753ba20b3b5da2aa22a4d290491bff482afccf148900cad"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DateCalendar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac45980cf7230c70df14bc550e74ee58aab2d193efc380e2d6e209d083b0a4d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/SheetPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d31313e94502f3102d9d285469c46a0ec35845f3b9c17c24621f87759961522"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/PreviewTabs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"538ca618d6717ec32b7f3e930cd261ec7aaeb58043387d0909c363faecd529a0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/observe/DevCorridor.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb158b09d51bc2b269b9613c4619968a5e4e7070b30db89923b310030c52c7a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/updater.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df5dae7d826b4f635438b13771948867ae6bc02106f237534a40305b4386d87"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/ImagePreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba0ffbbe62d7e76e2504c8dd5e12d1020a930df015805120a9129383d6503e0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/DocxPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aaa8e56ab7925d70774e77de5670caab4dd05ee3bba5bb732c36955acab4d6a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/CodePreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2667bceec4e4422a37f0db81a8d45025cb21407bfb589a329950318c34df49"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/agentParams.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b94909ca2ceec9b2ae93c5b704e648a2de190fe5e57c04d37620293923a288e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/PreviewStates.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84968943d37f5c4991233a555319aecd5362390d707eb27b7438a72f8d7f8153"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/PrimaryLanguageModule.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2d22b4c8c995e38472973f86217664120ddbecba197443dce37d0edd6b4c63"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/MSetSelect.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af905064b0578b424940a2d2077194e3373a95584c5503d8552f86b7f4c00b03"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/FallbackPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"538c186ec5ec7e8b532741dbcead8c74e60b888128f7e4b802f1ffab7b2eda64"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/PreviewRenderer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadcaff5b70a56a3b541c45dcb04e95ab1082e4cefbbeaf5b733d85f844a70ca"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/HtmlPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d646407f0fb39c66e17fa9ac44361a82cc1af0d281f18abf20f336399bb96c78"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/renderers/TextPreview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04abc8c0d8191433b0c3663b7630bfbd79e918c891a23dfe4e942f9641bfdf21"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/InlineMarkdown.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1a116fef9e84f81ded764d8f43efbf32c9d67c390cfdfd943503134e719fc0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/shared/windowControl.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53b85a28eda9351fb9abacfdeff340d7dc03f62e12d39e21b521ceef6a92be5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/DevDrawer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"292c4930d60f6939431a941cdb000049d7e847d63d49895ebdcbd61f7de5c753"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/trayCardPreload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce85a9ba4c8629370d59404f5018118a9fb6d29add6397b4284605d1666ead3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a520f01fcc93262a0d9800408f0663ba9f124a53540e2dfd2d558a23f4dd00a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/preview/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"679f37768b579aa11caad30c28868a2b7f47d7970a76edf90290715a791c1460"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/test-setup.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7c5ea48a136183823965d9ebf584b14c9911606f052855cd6eb53f8e5f9483"}},{"ruleId":"R5","level":"warning","message":{"text":"Dependency Freshness: 38 outdated package(s); JS/npm CVEs scored in D30"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7de98450603a813bc7a991bc6e60f440c1deac6f9c9bfd4d0da057afed869bcf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~331 LoC): no import path from any entry point (17 application, 5 tooling, 34 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/nameGenerator.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10053d28d114350211dfb0472557e6c3b68223ba11c265919335e36d1aee9dc"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~92 LoC): no import path from any entry point (17 application, 5 tooling, 34 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/agentParams.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7377ec65aabc7a1c7b2bb96c08d5d4dbc4d4c515e4b09a50a430e62d051b7b15"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~41 LoC): no import path from any entry point (17 application, 5 tooling, 34 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/after-pack-sign.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c99aadb9bb001b79bb1b5bffdb676eb8eadb739dd56dadab166af8b4d1aa608"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~10 LoC): no import path from any entry point (17 application, 5 tooling, 34 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/test-setup.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"162b41f8b1c8b23ca472f335b6683c1f5b95f1d0c2249b897846a18d537e90fa"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/Avatar.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"06340edf6a4c016f53fff7d4c4b441b29d98030e0f5bcd357200ae6c7cdb3dc9"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/KnowledgePreview.tsx"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20d98c409b719ad2c8aa3c54d2baef1fbb7364b67eebf56a245704c51576c76"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/RangeCalendar.tsx"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dba7c1a05796c0ec2bfd2e54b6e543f50c2856fa233a9f384878ac821b9070"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ReasoningPanel.tsx"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ccb239bf08a4cb5d035c1deb6442af4ff135a71e500b469a4c6d166a291bd3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/Suggestions.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f31b69c3057fd21dd70f6f8c97e6af569d13683a1bfdadc071e192f9ac1fe7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027useZoomPanToolbar\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/ZoomPan.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1a040ec6faf220d20f37eadf5591fc330ac5f99838be792e1343aeb1131cc2"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027IconLogo\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/icons.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"91598573baddcdfdd39c439b680850a0f668f8b73b6acca8af7652df7708b595"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027IconDots\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/icons.tsx"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb6821cb34ca2084f28638b82bf69dcf377862653f4b5016fa4abc27cca319d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027baseHeightOf\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/virtualList.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc316a1b2bcf148af63f1f96d166228894c2a1f4f00fad7b584f22a36403248e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/observe/DevCorridor.tsx"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b7af71cd0de86cc35a87bf143156f371013269a1400abfd7df2908bb83522a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027resetAvatarPreload\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/avatarPreload.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f9a86051e7ab3d6054411e32d8292211da5b284780112711022de6b6426693"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isGroupChat\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/chat.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ce904d1221d9f04b91f5e805116a4b3da449a686d43ff0a5ba6e6f8f06cccc"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027completionAuthorityRank\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/completionProjection.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e527e7aa0dce66112c67da9720b4238f72296cbcd84521719bdecee99232ffd"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getState\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/directoryRecovery.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3027895fdafda376a4beba781d02c1155f11d5a1c9fbee85b5c09a9171b4a08a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/knowledge.ts"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd7e3f777bc2cc1ad3f2bf10e9ff9656e7c8606f9feb78e1c84cc93a7bb7635"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027providerLabel\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/modelCatalog.ts"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc9ee19d751cf31ee79c9acde7a13a3361c60ce14a599854df47efb463820b8"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027selectActiveItems\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/selectors.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73ff41ecfe35239d1b8b2735940d937954518aad48818287f411746a01f1961"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027selectActiveConvName\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/selectors.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c95c2beb914a025c43f8b68dece6b47bed36f198f4a1b0d13412950689638c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027selectActiveBanner\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/selectors.ts"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eab2e23baa71b589e91c6af69cab131b007039ed02159d484cc118e50f5a307"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027effectiveAgentBinding\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/settings.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f930eaf20ac6527eabd730960bcdd4192d0248182bddd033954ca632de6e655"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027stageLabel\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/toolPhrase.ts"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a82d2635f9d2fe45ad712c94612e5799987b5eb8fe619d3d5ada8fe61996981"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027UPDATER_CACHE_DIR_NAME\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"electron/updater.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"558fca05ece755d4f8a3e8caaa81bdc61761e6cf84966df1d9d86e98149dc11f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027sha256Hex\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/store/filePreview.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"791a2d8ca1aed642f8983e599fccb84be32f378f29081f1a5965c7bac0c29edf"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027@tiptap/core\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/Composer.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"330e0b64d35f6b938ce1bd23bf6fc5f18da5dc923abef6e92aee9eb66df7b2e3"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027@tiptap/pm\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/Composer.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"315023d15145296e08ce80cd0dfc091e009124c9f7bef566c4a7782cb5c2b44f"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027remark-parse\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/markdown.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"de12e2ad157025670c2e7d9e8795bc75071244034ad85c33e3c85d1c3b1b5243"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027remark-rehype\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/markdown.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"68af5b152d8e0cb1d551d3c38b5529df7f0d73f85d6bffef3d3a849054685153"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027unified\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/markdown.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f6019d1ff72d706485afde92eff8042a5b3b2574602a79fe529c28530933c6"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027unist-util-visit\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/markdown.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ce05ffadb49ff2f16420c2a453555ca517c8b8d6649da67bbfca27c2ff7a8e"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.ensure_future\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/browser_tools.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db1ad16d590bdb98a1c388da47048f368bb1663a0aa06e6148166323b84a26d"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/engine.py"},"region":{"startLine":8313}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3896c3c8f01343af496862a180e9a4b4563ec7ec2dc510595e72860db24c8c"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":5275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d305faf13d8da982a99c7d4d5830fa961b9467ae34852e532dff533b6e82ca92"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/server.py"},"region":{"startLine":5347}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5dd84e39df0b269026fab79087b885e09c7f8f4e4b5cec806e86770e4f43f6"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/agents/deepseek.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"31654c08bd802970afaa5d97417bf2059ac51412a6f6102bb50049fd4a33ac19"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/agents/deepseek.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f0540b5db23bf2f449efb5c9c6da84ff637a450d2f4ab95e2dd32ebe07efd1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!parsed || parsed.schemaVersion !== SCHEMA_VERSION\u0060 appears character-identically in 2 files \u2014 src/store/messageCache.ts, src/store/sessionDirCache.ts. 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/store/messageCache.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d50d4aee611930add0278955c9695067ce25350cad21828b2b0a810824334c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!requestProjectId || requestProjectId === canonicalProjectId\u0060 appears character-identically in 2 files \u2014 src/store/projectAlias.ts, src/store/store.ts. 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/store/projectAlias.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc91a0bf5c532cb8143f1b59dca9e59ec4be511f88739e553e6e1b5cce39eff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060/^\\d{1,3}$/.test(part) \u0026\u0026 Number(part) \u003C= 255\u0060 appears character-identically in 2 files \u2014 electron/previewNavigation.ts, src/preview/renderers/MarkdownPreview.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":"electron/previewNavigation.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"26092e393fc8cceb10acf69bb0688c90ed4f20b5613ab64a44f9c197edff88a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060a.getFullYear() === b.getFullYear() \u0026\u0026 a.getMonth() === b.getMonth() \u0026\u0026 a.getDate() === b.getDate()\u0060 appears character-identically in 2 files \u2014 src/app/App.tsx, src/utils/messageTime.ts. 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/app/App.tsx"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51885007ce0d48944d2360cfec341c728f1d1d003bdf645c25ce4bb16d38a92"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.key !== \u0027Enter\u0027 \u0026\u0026 event.key !== \u0027 \u0027\u0060 appears character-identically in 2 files \u2014 src/components/FileCard.tsx, src/components/GlobalSearch.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/FileCard.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b962cb430f6b5b3b10cafe15e8f096edd53968f7f7b97f55dcfef72bec097934"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.key === \u0027Enter\u0027 || event.key === \u0027 \u0027\u0060 appears character-identically in 2 files \u2014 src/components/ContextMenu.tsx, src/preview/PreviewTabs.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/ContextMenu.tsx"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d13bec7735746761650bcd03bf777d23328f36f2f684416ed0eef592fc48d2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existsSync(OUT) \u0026\u0026 existsSync(stampFile) \u0026\u0026 readFileSync(stampFile, \u0027utf8\u0027) === srcHash\u0060 appears character-identically in 2 files \u2014 scripts/make-icon-icns.mjs, scripts/make-icon-ico.mjs. 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":"scripts/make-icon-icns.mjs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"adadbaa71c1021293175878919367fa8e8cb761e0e3f97b711ae8b8356b91108"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host === \u00270.0.0.0\u0027 || host.startsWith(\u0027::ffff:127.\u0027) || /^::ffff:7f[0-9a-f]{2}(?::|$)/.test(host)\u0060 appears character-identically in 2 files \u2014 electron/previewNavigation.ts, src/preview/renderers/MarkdownPreview.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":"electron/previewNavigation.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a255a2b3940fd7afdaad0b6b34ada0f149fb37dd3012f76d4b2fb096ded8d7b0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host === \u0027localhost\u0027 || host.endsWith(\u0027.localhost\u0027) || host === \u0027::1\u0027 || host === \u0027::\u0027\u0060 appears character-identically in 2 files \u2014 electron/previewNavigation.ts, src/preview/renderers/MarkdownPreview.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":"electron/previewNavigation.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2badb0b1ca3e8206cc887a8b87c5fa24df36e16b55ebd5215886e86f3ce6fd2e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it.kind === \u0027user\u0027 || it.kind === \u0027agent\u0027\u0060 appears character-identically in 2 files \u2014 src/components/ChatStream.tsx, src/store/favorites.ts. 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/ChatStream.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3575f5c531e728b597699b65ad4196401225520e4c6f41ba034118d91f7fb4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.type === \u0027user_echo\u0027 || !item.agent_id\u0060 appears character-identically in 2 files \u2014 src/components/RecordsDrawer.tsx, src/store/records.ts. 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/RecordsDrawer.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c087155e36c3411bd177c341bb58e88e108732d5734b1c06119e9fc6de62d54"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060m.status !== \u0027removed\u0027 \u0026\u0026 m.display.avatarUrl\u0060 appears character-identically in 2 files \u2014 src/components/ConvList.tsx, src/store/store.ts. 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/ConvList.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"77725f64313499d7b11356405f38cd2b0680e3f32f0f2ce013b4792933d17570"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pid !== PLATFORM_PROJECT_ID \u0026\u0026 !parseDmId(pid)\u0060 appears character-identically in 2 files \u2014 src/store/selectors.ts, src/store/store.ts. 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/store/selectors.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b54ee59433561339def156f5bf3c322d9e046b25ce5bfbbe808f2c02e3126d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060raf \u0026\u0026 typeof globalThis.cancelAnimationFrame === \u0027function\u0027\u0060 appears character-identically in 2 files \u2014 src/components/MessageBubble.tsx, src/components/StreamBubble.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/MessageBubble.tsx"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ecd4bbb475ba2307c679a1b1b8630d0412fa158273bf7616c74d22c76d7818"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reason instanceof Error \u0026\u0026 reason.message\u0060 appears character-identically in 2 files \u2014 src/preview/renderers/MarkdownPreview.tsx, src/preview/renderers/PdfPreview.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/preview/renderers/MarkdownPreview.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c06aeed9d96c6959985d56a4715c800e6c6592461fd4cda9c3ed5383304547"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060s.convs[dmGroup]?.projectName || dmGroup\u0060 appears character-identically in 2 files \u2014 src/components/ChatStream.tsx, src/components/ConvList.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/ChatStream.tsx"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf617092d4443b5c2d6f673ac479ac3bc3ddcbbda2a4b164f9214157fcfb1ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof ts !== \u0027number\u0027 || !Number.isFinite(ts)\u0060 appears character-identically in 2 files \u2014 src/components/RecordsDrawer.tsx, src/store/records.ts. 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/RecordsDrawer.tsx"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a79c3a29f260e4ade7ed5f54dc8e50c1e67cb334e2c11667c94e7aea836fcc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027number\u0027 \u0026\u0026 Number.isFinite(value)\u0060 appears character-identically in 3 files \u2014 src/store/completionProjection.ts, src/store/settings.ts, src/store/tokenUsage.ts. 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/store/completionProjection.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8d05cf16a105eb96f2cc2bfd2d1939ed705ab6fd57406e9f8a7016f38732f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.protocol !== \u0027http:\u0027 \u0026\u0026 url.protocol !== \u0027https:\u0027\u0060 appears character-identically in 2 files \u2014 electron/previewNavigation.ts, src/preview/renderers/MarkdownPreview.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":"electron/previewNavigation.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c21436581eee4994c139bcc7becce4a8d549e06527bc7c3d6f591afd282691"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022 \u0022.join(str(exc).split()) or exc.__class__.__name__\u0060 appears character-identically in 3 files \u2014 backend/engine.py, backend/knowe_storage/_sqlite.py, backend/workspace_layout.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":"backend/engine.py"},"region":{"startLine":2084}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b42143f13d93dde089cba93f841f443e879caba0cf802af99a21455557debcd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.get(\u0022wait_until\u0022) or \u0022domcontentloaded\u0022\u0060 appears character-identically in 2 files \u2014 backend/agents/zinnia.py, backend/tools_knowe.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":"backend/agents/zinnia.py"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cddc17f6f60499eff646ed8b12505315744c53d47ef265674c9610ec2c17b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060aux and aux.get(\u0022api_key\u0022) and aux.get(\u0022base_url\u0022)\u0060 appears character-identically in 3 files \u2014 backend/agents/zinnia.py, backend/engine.py, backend/server.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":"backend/agents/zinnia.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdca7bf2d634a2692496586d20c1f6828c31874b414d979f070b7e97fd8fe97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060aux and aux.get(\u0022api_key\u0022) and aux.get(\u0022base_url\u0022) and aux.get(\u0022model\u0022)\u0060 appears character-identically in 3 files \u2014 backend/knowledge_graph.py, backend/memory_manager.py, backend/tools_knowe.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":"backend/knowledge_graph.py"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a8b3d35920a61de02afbd60bdb143f1ea9717eb9c3795da80ad9a9a26790ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data[\u0022choices\u0022][0][\u0022message\u0022][\u0022content\u0022] or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 backend/knowledge_graph.py, backend/memory_manager.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":"backend/knowledge_graph.py"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db3909df226ef34b80113b34a170e578057f6ed67e9b5b5cbdedad908fe6d70"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.get(\u0022type\u0022) == \u0022usage\u0022 and isinstance(event.get(\u0022usage\u0022), dict)\u0060 appears character-identically in 2 files \u2014 backend/agents/knowe_agent.py, backend/agents/zinnia.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":"backend/agents/knowe_agent.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13ac1bb5da14a8b59599b0eff6be0d1c20fc0a2a7d67470f0e1152cfdc9a70e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.status is CompletionStatus.WAITING and event.question\u0060 appears character-identically in 2 files \u2014 backend/knowe_harness/completion.py, backend/knowe_harness/projections.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":"backend/knowe_harness/completion.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b48befeda3094890f66182c2edff207e1ee75ecb2e770a90178dad9c918ec38"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(provider_cfg, \u0022model\u0022, \u0022\u0022) or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 backend/engine.py, backend/server.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":"backend/engine.py"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb045df6ab54e1a6d61d021f63a123065ca18b69e0d7bde63aa50115e150c75d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, bool) or value is None\u0060 appears character-identically in 2 files \u2014 backend/knowe_core/provider_client.py, backend/token_usage.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":"backend/knowe_core/provider_client.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"caef125d81925105656e34e258af7495ec7b05bb5489a2a5a125586c90eb29fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not aux_ok and not CONFIG.deepseek_api_key\u0060 appears character-identically in 2 files \u2014 backend/engine.py, backend/server.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":"backend/engine.py"},"region":{"startLine":7708}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1485540e87c8c3f1aabd5c24d9ddd2f8fe73e1e4e3cceab7cd75cc8cf429ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(agent_id, str) or not agent_id\u0060 appears character-identically in 4 files \u2014 backend/engine.py, backend/memory_manager.py, backend/persist.py, backend/server.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":"backend/engine.py"},"region":{"startLine":3855}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae5bcd46185972e7f699d003f9e4daba1ca35612808380ecab1420aba25bd08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(content, str) or not content.strip()\u0060 appears character-identically in 2 files \u2014 backend/agents/zinnia.py, backend/engine.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":"backend/agents/zinnia.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"450fde2d598de92a8d8420c4c078c405da26fb1c85a90e13cda3d4113d14d72d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(instruction, str) or not instruction\u0060 appears character-identically in 2 files \u2014 backend/agents/deepseek.py, backend/tools_knowe.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":"backend/agents/deepseek.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b47cbbd9e321969fa394204f8ca3be415bf1f2aa9cb2d18bb9f234861811212"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(payload, dict) or not payload\u0060 appears character-identically in 2 files \u2014 backend/storage_maintenance.py, backend/storage_migrator.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":"backend/storage_maintenance.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8446e09f05b1258a68dcd50418358b990f9b4ad5efb60730ee9b1b942e4dd663"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(project_id, str) or not project_id\u0060 appears character-identically in 3 files \u2014 backend/memory_manager.py, backend/persist.py, backend/server.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":"backend/memory_manager.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fdc3e79fa9f5c05817534f918fdd553a07b2c6ee823e317ef38b34eebd3f02"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(raw, str) or not raw.strip()\u0060 appears character-identically in 3 files \u2014 backend/engine.py, backend/server.py, backend/tools_knowe.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":"backend/engine.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c30b8a150d6eaf49b48b92b7ea2998095a21fec8e520b4c3eff3c3d34c87135"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(ref, str) or not ref.strip()\u0060 appears character-identically in 2 files \u2014 backend/browser_tools.py, backend/handoff.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":"backend/browser_tools.py"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f58d6e2eaabc1b39a056a46a120d04f7e16f233c31ba6fac0c5048e70ea9db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060row.get(\u0022path\u0022) or current.get(\u0022path\u0022) or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 backend/engine.py, backend/knowe_harness/completion.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":"backend/engine.py"},"region":{"startLine":2597}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce3d3b6e28d23abe3dbd2a1ed0d299d983668a9ee511969729433f6ae843e61"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060sanitize_event\u0060 is public and takes \u0060event: dict[str, Any]\u0060 from its caller, and it calls itself at line 140 (\u0060sanitize_event\u0060) with a piece of \u0060event\u0060 \u2014 and nowhere in \u0060sanitize_event\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060sanitize_event\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/privacy.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac5a4a8f4323e38f866bb56108e9b6cbd7fb9a074fb71e27f29815c1efab66a"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060redact_secrets\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 772 (\u0060redact_secrets\u0060) with a piece of \u0060value\u0060 (and at line 774, line 776) \u2014 and nowhere in \u0060redact_secrets\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060redact_secrets\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/runtime_settings.py"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b056186a847bb4bb76440f547681c323a31ff8769c07c33b3ad56cd7f4d6f6"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060canonicalize\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 91 (\u0060canonicalize\u0060) with a piece of \u0060value\u0060 (and at line 93) \u2014 and nowhere in \u0060canonicalize\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060canonicalize\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/tools/create_wave0_forensic_baseline.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e273f1d1a7e32a35a2271dd15ba13fb58c3ea3832d189554176752e8e746b92d"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060canonical_json\u0060 is public, takes a document from its caller (line 36) and hands it to \u0060_jsonable\u0060, which calls itself at line 28 (\u0060_jsonable\u0060) with a piece of \u0060value\u0060 (and at line 30) \u2014 and nowhere in \u0060_jsonable\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060_jsonable\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_harness/contracts.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0684e974a68729e45a601dda772b70a40c685e757da649655ee3fe9d0ea5ea"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060html\u0060 is text this program did not author, and it is written into the text of an element through \u0060dangerouslySetInnerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/markdown.tsx"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae501be8fa84d2a844715f9af9301e641cbe8beeea8cdbee59488e522b3e0420"}},{"ruleId":"X25","level":"warning","message":{"text":"Option is kept and never read: \u0060createSocket\u0060 accepts \u0060url\u0060 from the caller and keeps it in \u0060url\u0060 on line 262, where only it can read the value \u2014 but nothing ever reads \u0060url\u0060. Setting \u0060url\u0060 therefore changes nothing: every caller gets the same behaviour whatever they pass, and nothing reports that the option was ignored. Read \u0060url\u0060 where the behaviour it configures is decided \u2014 or, if the behaviour genuinely is fixed, remove \u0060url\u0060 from the accepted options so callers stop setting a knob that does nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/transport/socket.ts"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c1c94af3c98a7e2672e7bd1b5b18d14ada494435ac9251d959faf2c7e76e0d"}},{"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/transport/socket.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45681c4adf4d847056dbdb19904d791c35d058fa23ecd307e9964f2feca82b2"}},{"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/transport/socket.ts"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"afad9bf5b9fd18d3b8af85f0bc232b54842115b2fcfef84e4cfde7008dd396a7"}},{"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/transport/socket.ts"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"006d949edeacaaf9d9c471ab75d410c1a05f1a6e02560f4863c8e4299e77b4f0"}},{"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/transport/socket.ts"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8965462658ee0f1c723daac0b3ff7b99285ec39ba003eaa3ae7fe74cb45077"}},{"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/transport/socket.ts"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"49651afd71fc07ba9160c3ede6ef7970e002d093310ba5b92b92326894397644"}},{"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/store/filePreview.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b03bd93b69155977dfd26f02edf3f108901508dc666054274be17bee20e41b3"}},{"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/store/knowledge.ts"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"300597a5baacd23364c4c8ac686bc16c64b7cba14d3d5c9ffbce4b54936933b3"}},{"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/store/messageCache.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46f4cf0d232c4f21441e05ce2fa7827435975eeed925c0ab52a29f2c2d75994"}},{"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/store/messageCache.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5902f3d9790da2f3573d4626e91f7c9bf15ce871bb97edaad78e0464a0c2e240"}},{"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/store/platform.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbef64e2da930f6280f285e73ca6c8cc6f06018c0034415f23a3376c2c51463"}},{"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/store/platform.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84b322c4877f4ba0814986252be02bdcbc5493b9c989643f6fa7125847d78ae"}},{"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/store/sessionDirCache.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d3356ff9b3dc819993087307480339394496f2c5d2c3fdc40e8819a32cab52"}},{"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/store/sessionDirCache.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e4d11ba1a25b735317687ba6ac607f1664387e0ff1553f04b0fc6f2b9de169"}},{"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/store/settings.ts"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"a665b52d2ed1172dce4941d0e65f1602f28d6479c8637d26dfafdc291404d6dd"}},{"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/store/skeletonCache.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"be283f1199584a491de7fa5a912a04ae6801189b739e4a7727e5eae8c5fc19c2"}},{"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/store/skeletonCache.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c06df6a148d2ce970504bde3bc5dccc964d876d2bd5f015eb6dece97b4c042a"}},{"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/store/skeletonCache.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"665c63d42415d074a8a704d8e823c2eb9ab0bf1dcc7137422090cf8b694210c3"}},{"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/shared/featureFlags.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5e5417b12d1954e923ce1c21ac365ef635fe7066052a5d7c2cc662992e2a21"}},{"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/shared/runtimeFetch.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfd5da12281a107af1a0ca7bc7e3db04056dcdaa77acefa8ad21f7ee8b7d736"}},{"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/preview/renderers/PptxPreview.tsx"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"362494c40592d1f12066991bc7cd3c63dbc26d811e10377ee392acabb88b1d25"}},{"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/fakeserver/FakeKnoweServer.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1447867c61305a822a418aa5284f0cc964e12140ebd09a45e8fa8d24aa232c9"}},{"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/fakeserver/FakeKnoweServer.ts"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a7f2e9d14c6bc2133b6aba4b3f92d7e427420a1b47ea5d2c2f787affd1dffb"}},{"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/ContactsView.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"99eaea3625c9505fa630055077de42a9bc3746294d72cf0f888d5a5afd775cb0"}},{"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/ContextMenu.tsx"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea39fd554e73b1fee4222fd4fa5c95605af8a90fd056b52df92ebd2baab15008"}},{"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/DateCalendar.tsx"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"309c0622dc6c4c487b3ea239cc4aae76d6049f8b9577a46df1d9b14a222028e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/FileCard.tsx"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bc8ba9369de7dce7837f544a3a4d73a422cc8faef99f66f2ab131b611953bc"}},{"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":"electron/main.ts"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95fc60ce607af6d4854c7f88cd04cfc4b7b1b0f4cb07b502e36ca5413e457a7"}},{"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/agent_runtime.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82c956720f6cfc8c87008e2a8423151b9750e2fe59bab300176bc85119a98ae"}},{"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":"backend/attachments.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e451bb6e973b752a0f36fae949a05c5cc7cab36c4b58c52e1a191d44f0ba4293"}},{"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":"backend/attachments.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dae24c170030b75cfe58da39e26dd3b41479097807a73bedb08b3ebbf04d47c"}},{"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":"backend/attachments.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff3a6c7e431f9d02e9b948cf1e4081a72999fd13d117c3771f9fe523ee01bc0"}},{"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":"backend/attachments.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98a8acd1cf48e6bcf492d6929f3831db7f0c1f45b4a95536e46dc22320c4730"}},{"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":"backend/attachments.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"587a171094d4a6956fb6dc904f31c20eba4b28cf9a14bbae7909c567d5b621bf"}},{"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":"backend/attachments.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b027f11c21f0ce4f2c5132fc112a0e03ea7aca91eed40b1e87f2e231d10a7016"}},{"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":"backend/attachments.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2484dde6505b0d82abd097dbaad8fa951222922e16e3eeda96c509ed835bf7da"}},{"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":"backend/attachments.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"85890183202ede28820fffb4ac1e5c6fd4da937576cc11806fa9d6e4876e987b"}},{"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":"backend/attachments.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fcb3f860eefb2a2273a7c1248e852cb9cb9756aa85a6f2b5829c26e0746533"}},{"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":"backend/attachments.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6c8c99f8e76894db15994884f640940a9328a57d2d22857d7520d13f2f16ce"}},{"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":"backend/attachments.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"42176125dd4f92a64fd471e7ee30e7c8bf08ecf8a21ec3e5c81f2ea34e29ec3f"}},{"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":"backend/attachments.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d336d3bf8fd389eb3352be735eece94a2c64a46157bbafe38360275d143ae63"}},{"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":"backend/attachments.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c82064a40e7b6fd24d5299d3d28a99579f065c6e63374321827bf823af2818"}},{"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/browser_tools.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e403521abdacdf85cb8be063331e54d65b9ee41cc3b0be26786ccf4620eeb5"}},{"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":"backend/config.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff248bbef9c035e769b2ae65f116dd1da200ef5e9630294cf0723c9af94bebe2"}},{"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/content_compress.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"048ccd08215e7c4269fe1682bea177af3de7b531be719fb82c1ae7c53bacb112"}},{"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/content_compress.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fb0b25c6c8f97bff2f42cfa2863649b518b1ffecffd2aefc89e97e76af7cbe"}},{"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/content_compress.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ace622f83cf2b64742fbe73f81b16450fee5a27f19a53fef84876feef2d519"}},{"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":"backend/delete_ops.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f63f9d2eafe80ef243072ffcdba937991b49d45d7090f54a09afa9c4277eb6"}},{"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/engine.py"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbdf3ebf5b11a64a7eed5b64921706d3c683b3481a445e8e0e82a8c2b359f66"}},{"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":"backend/engine.py"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"642843ad59762684a4569224b232c160507af736ac6dd22c7b92aafb83c7c3c2"}},{"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/engine.py"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf2c3cb30fa72e193153a89878ee494d86a77d249139fe18c0498cb874472be"}},{"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/engine.py"},"region":{"startLine":3978}}}],"partialFingerprints":{"codehealthFindingId/v1":"562ab3a405fe12d3c31577e72a34e66f9764d719bae01680a41d3880a6b83a72"}},{"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":"backend/engine.py"},"region":{"startLine":5079}}}],"partialFingerprints":{"codehealthFindingId/v1":"261cee25ef4f3b274057c282ecc0725bb4589825a045067fb81e2d289362c9d6"}},{"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":"backend/engine.py"},"region":{"startLine":5465}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b40f57d671c37ad7f1bd5a6b8352a1f95b0f3f80ad9be7d49fd1c18edff6d4"}},{"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":"backend/engine.py"},"region":{"startLine":5541}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f8a2c9011ffdb32982af72e025589b4d2c372d282faba8218aac3ccd7aeeab"}},{"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":"backend/engine.py"},"region":{"startLine":5602}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9759c3c2890fb669b5078be0b39a9911d6fbf64c7fa403162ba4ad7c0394199"}},{"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":"backend/engine.py"},"region":{"startLine":6767}}}],"partialFingerprints":{"codehealthFindingId/v1":"a605697bb209cce0ee72a449af51f415b3daaf00105c220137a873a67384e859"}},{"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":"backend/engine.py"},"region":{"startLine":6771}}}],"partialFingerprints":{"codehealthFindingId/v1":"29452b2bfd8e44684e17055c87fea122e773bb993550d277140e4a86b67d4f70"}},{"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":"backend/engine.py"},"region":{"startLine":7425}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da6df44cc745f7f5bbe8b36ce1eee8221f5f69e4b7a5492c04f03b103535e69"}},{"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":"backend/engine.py"},"region":{"startLine":7540}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f04e0efe1091307101ed8666d37afaa287bf6099e6aa8aed6b1bf7090843345"}},{"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":"backend/engine.py"},"region":{"startLine":7729}}}],"partialFingerprints":{"codehealthFindingId/v1":"6647d5826f9c3cc77683ad0427b40f76a52e75eb8f4a53c5bee373ddc48d2ed3"}},{"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":"backend/engine.py"},"region":{"startLine":7884}}}],"partialFingerprints":{"codehealthFindingId/v1":"097d399bd2dc3ce968bf69f3312668ce257e745bd66a4340a8470e48b648808d"}},{"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/engine.py"},"region":{"startLine":8007}}}],"partialFingerprints":{"codehealthFindingId/v1":"6783f2c7240369cb82a3b564e76805a36024aec37234d8b3b1f8ef00c8a15af3"}},{"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":"backend/engine.py"},"region":{"startLine":8735}}}],"partialFingerprints":{"codehealthFindingId/v1":"830e5966a8448f620ff2bc58c482ce57963590d80968250561ea62c175229542"}},{"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/engine.py"},"region":{"startLine":9403}}}],"partialFingerprints":{"codehealthFindingId/v1":"425367b133555c785aea4f99d2d2ae73d420c809ad1fd1ef4a0f53210f1b3d7e"}},{"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":"backend/file_ops.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8702bed3253caf5de389f6fe9354a494ec6a9578f626b314ec9e55b00b7aa35"}},{"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":"backend/hub.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"896add17a1f155575836757bb170e2a596b34c161fe54dc1e124dc7fa4cb7c3d"}},{"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":"backend/knowledge_assets.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f915411285a590756da8bdcdcd9f8a7efd22ae95ddb4662df5780f99ce1c0f5"}},{"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":"backend/knowledge_assets.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f416d124ef08f33756fc993a8e6ca7f071b7d44669912d812e07cf4a3942c70"}},{"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":"backend/knowledge_assets.py"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"5982e7bf854965d00b8977188fdc1b6e848c2e61690094f9a5723fec681f71c4"}},{"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":"backend/knowledge_assets.py"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe68f77eb12c2764e90879a56ac275808afc2ff7e0698fae9a9327ef2fd33a2"}},{"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/knowledge_graph.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8fed428376bf22e4c5a9509555016390f31375b6cf8d44938adf2d0711e383"}},{"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":"backend/knowledge_graph.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f6bf517f32c97cbea282002efc029bdd6a6735b8c90bbd0a1bd47da7faab13"}},{"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/runtime_settings.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbfa97702200935c7c7dccf8ba7df9bfdb16f72d2310768199512aa8edbfe71"}},{"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/server.py"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d8bf1e48b0371f2e3a9ee7a27e7ef4dc14e4515232bc6c555dc214fa5fecb0"}},{"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":"backend/server.py"},"region":{"startLine":2677}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3108d744bcf6bfc56dd8b80ef982698bae860fa0086d28e2f7e2a3e3b55efe8"}},{"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":"backend/server.py"},"region":{"startLine":3732}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2f263e3824bc141826485741cd9339c564a42d11aa0643a6efd2f1270f871e"}},{"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":"backend/server.py"},"region":{"startLine":5000}}}],"partialFingerprints":{"codehealthFindingId/v1":"177abdab58ee9f918a915ba476c939184c2d7ee6b1d0b598144db9f38da039c0"}},{"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":"backend/server.py"},"region":{"startLine":6303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47136aa61ca4a17c4dce067aec394eaa944f8c96dabba7c31e23b83435e13b3"}},{"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":"backend/server.py"},"region":{"startLine":6309}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5666b8f68a5b9f794004647cb12c844fb75ebf7cffc4a5e249ebe453dcb1f16"}},{"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":"backend/server.py"},"region":{"startLine":6317}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f046b0280dab18b95fd5d81a9b34c52ff9f5327a1d2fc9565c0385ab4e745e4"}},{"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":"backend/server.py"},"region":{"startLine":6341}}}],"partialFingerprints":{"codehealthFindingId/v1":"09409ef1c1c09f833643d3e7a7cc3a742b8131f84c32115daf4b26b43a347a6d"}},{"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/server.py"},"region":{"startLine":6411}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52e61d7a525b50fe9854b69689d8af57f891a965e18c9636487941c12cf7d60"}},{"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/server.py"},"region":{"startLine":6417}}}],"partialFingerprints":{"codehealthFindingId/v1":"480a93f6862caa20e72a7838d7a770d6526489b5e136757b63e420ebb3997c64"}},{"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/server.py"},"region":{"startLine":6429}}}],"partialFingerprints":{"codehealthFindingId/v1":"df77be9c69c80beb46c8106587c0dbd99381d9bc0ce59892b3c94ffe96bd8d87"}},{"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":"backend/server.py"},"region":{"startLine":6441}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c9b780e696d68fe29001c66901178cb96a658c8ff87d14806ff2509b4cc881"}},{"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":"backend/server.py"},"region":{"startLine":6454}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6506173734e6eaf311ab54998b30a0b13762661987912eaab8723eace21dfc"}},{"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/server.py"},"region":{"startLine":6463}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc639b31d694cbba438605956cc73bd5a615c13a55e6a698d456bcd50995cbab"}},{"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":"backend/server.py"},"region":{"startLine":6507}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82245340cf9675c12d2786dffc9e95d2fb3a3d30b31365cfb0645230e27140d"}},{"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":"backend/server.py"},"region":{"startLine":7047}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7e337ab0940852bfd93f511c47bde23d31a159f812d75393604ab523834976"}},{"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/server.py"},"region":{"startLine":7052}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b8e4f3e35b97ca2731fbd9cfd6b8e4d0d02fb9db79501721de19b262ebb53e"}},{"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":"backend/server.py"},"region":{"startLine":7059}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a6bf9ae70b04a6d9ae0464cbc28058406587aaf57fb032a4f0fd1ec9368b6c"}},{"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":"backend/server.py"},"region":{"startLine":7202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a53a53b95f6d2821f8e07e01d36ca30290983817bcea124cf1add9d8523a6aa"}},{"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/terminal_tools.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f383c00e5cf8b90ef7b0c09a13964ef0641b322cb831d56fbe748f37e2e6be78"}},{"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":"backend/tools_knowe.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"17091cf8b274f98e95a104a40198f79fedf5f7fb0779f706e0b1983a3f741137"}},{"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":"backend/worker_gateway_runtime.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e977a2deefce5889df43cd764392c9079b60d58fe112e988e162f7f38b1435c"}},{"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/knowe_storage/_sqlite.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0177a8e0bf888d08bc34940dbeccd646985191cc2c5ed0f269350ddde3e95d"}},{"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. On a teardown path letting it propagate is not an option (throwing out of \u0060__del__()\u0060 masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: narrow the catch to the exception this release can actually raise, and record it through whatever this codebase already uses to report problems \u2014 or, if it truly cannot matter, say why in a comment on the catch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/knowe_storage/_sqlite.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"56899a698ffaa780dfa3a9c850c20196ecf2044d6d4a8fc7c1468da2dc1593aa"}},{"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":"backend/knowe_harness/completion.py"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f7fe68f0f77b65e5db81cabdb9a7dcaeeef10825d999d4f15b1c4ba4aa8213"}},{"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/knowe_harness/projections.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bd7fda82227a5b16fa2ccaed81218385af3364a20cef5a36b132b1556d5e09"}},{"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/knowe_harness/projections.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5ca63e04f84e4f59391b6f9945bcd5c132fcc330e5f89ae004b708a1460566"}},{"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/knowe_harness/projections.py"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fda21965ec3297496eaf3607143fcab5f1e880f2d4d139386f216e4420093d"}},{"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/knowe_core/provider_client.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"859d24a615f22796d32559484be5c041a898b49f45b66500ebe4466d5a53ee4b"}},{"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":"backend/agents/knowe_agent.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c2ac907b04bf17eb23ab64ca67150cf913d827cfb0f2875b37393910fe5317"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.8 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 33 assertion(s) across the 39986 source line(s) of the 115 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: src/components/ChatStream.tsx (12), electron/main.ts (5), src/components/TokenUsagePanel.tsx (5). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_knowledge_ctx_block\u0060 swallows every exception into \u0060return \u0027\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":"backend/engine.py"},"region":{"startLine":5541}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b7eb6bfa44c16ed22bacdcb5d92aad86cab80b2d872c4496e0a0d0229bf102"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_agent_memory_block\u0060 swallows every exception into \u0060return \u0027\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":"backend/engine.py"},"region":{"startLine":7540}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d45a7d2a4f16d1c82d6ff3e87befdd1a9868b414807220bdabbb12de5f8a4b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_parse_suggestions_json\u0060 returns \u0060[]\u0060 when \u0060(ValueError, TypeError)\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/engine.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"9850f88ec6e44ae90f5b09ef7386c69db8c1efb5d6f5151ab5cf1e68eb7be996"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_supported_run_kwargs\u0060 returns \u0060{}\u0060 when \u0060(TypeError, 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":"backend/engine.py"},"region":{"startLine":9574}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fdf1e87b07d7414db799b7ad51aa50e73a1a04367149eb5f2c424a3b0406c6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_scan_workspace_deltas\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":"backend/knowe_harness/completion.py"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc525c3ea4388711749a4e6671c7218960523c5bc50d9afe1ff047964a4b9a5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_read_json\u0060 returns \u0060{}\u0060 when \u0060(TypeError, ValueError, json.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":"backend/knowe_provenance/lineage.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"600371997f799a2b83fb8cfad432877a746679b582e806a00e7a67df1650b4e9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_pass_conflicts\u0060 swallows every exception into \u0060return 0\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":"backend/knowledge_assets.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"8324bf68f743d72707f54ab4abde19cdfc81584f2308a27ff755a45b82bbc661"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060context_block\u0060 swallows every exception into \u0060return \u0027\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":"backend/knowledge_assets.py"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e41460523bb834c5e7986a379e0fdc050ec113962ff3acd11f037b382b43480"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_safe_relative\u0060 returns \u0060\u0027\u0027\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":"backend/knowledge_assets.py"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8a0d8a74ca43d75627b56d8879df111553a9f2ff12f0d2a6b2b9f167bace7e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060brief\u0060 swallows every exception into \u0060return \u0027\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":"backend/knowledge_graph.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"b270d393ff326656fc94b01a742baf356253d6cedf3516cee58253d36e2b3265"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_as_nonnegative_int\u0060 returns \u00600\u0060 when \u0060(TypeError, ValueError, OverflowError)\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/memory_manager.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b394d8fae357779f60d29f35e2bf35e1f16e5392858aa2f54bd5aef900f9633"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_ts_to_date\u0060 returns \u0060\u0027\u0027\u0060 when \u0060(TypeError, ValueError, OverflowError)\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/token_usage.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a9f23bc4fe199c4255c88a5230d5058a24d0be2fcdb5837c419062ac37bf08"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060gitCommit\u0060 swallows every exception into \u0060return \u0027unknown\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":"scripts/write-build-manifest.mjs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6e7dc1b24bede7d13247792de0d10f779e3541236ce5fe867124d86c0bfb95"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-611","guid":"1afbae66-ea29-2d59-aaa2-134e3ae2e85a","name":"Improper Restriction of XML External Entity Reference","shortDescription":{"text":"Improper Restriction of XML External Entity Reference"},"helpUri":"https://cwe.mitre.org/data/definitions/611.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-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/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":40,"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."]}]}