{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"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":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"C1","name":"Data Protection","shortDescription":{"text":"Data Protection"},"helpUri":"https://codehealth.canine.dev/dimensions/C1"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"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":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"gateway.gatewayRoutes (cyclomatic 246): gateway.gatewayRoutes has cyclomatic complexity 246 (threshold 15). Most of this is not in the body itself: 1 of the 246 points is its own statement and the rest belongs to 112 function literals inside it that branch (lines 594, 1418, 1463, \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"db897ebd821bc7f4cd7757b919b1f64374539d85373293810f22799428d1d37c"}},{"ruleId":"D1","level":"warning","message":{"text":"workspace-transfers.WorkspaceTransfers (cyclomatic 178): workspace-transfers.WorkspaceTransfers has cyclomatic complexity 178 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 125 belong to 39 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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b475b9138e55b3a264f476822506949ffe00725fbb0d4ed40009d7d4a07a755"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::admit::admit_command (cyclomatic 111): harness::core::admit::admit_command has cyclomatic complexity 111 (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":"crates/harness/src/core/admit.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"099839fa0f350299362f0b7592e1bc9b4d6b5026afc3c16b023ffe7b48867ac4"}},{"ruleId":"D1","level":"warning","message":{"text":"composer.SessionComposer (cyclomatic 110): composer.SessionComposer has cyclomatic complexity 110 (threshold 15). Of this number, 56 points are the body\u0027s own statements and 54 belong to 16 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":"platform/web/src/components/session/composer.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b83298f54b12932ae951c4212591462a5d02a51e3e7efaef165f3a23202f018"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionsPage.SessionDetail (cyclomatic 105): SessionsPage.SessionDetail has cyclomatic complexity 105 (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. This shape REPEATS in the file: one other method here (SessionsPage.SessionDetail::steerQueued) 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0c61728e6f465873a835ce406ac5542392b0884349dc8ac16f9218cfd53e7f"}},{"ruleId":"D1","level":"warning","message":{"text":"McpServersPage.ServerDialog (cyclomatic 94): McpServersPage.ServerDialog has cyclomatic complexity 94 (threshold 15). Of this number, 57 points are the body\u0027s own statements and 37 belong to 11 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d4c6ce39cd6fc1641cce95f4cb8a45bd93fa0ce8aade374d81a0b2e0764f33"}},{"ruleId":"D1","level":"warning","message":{"text":"BotCreatePage.Wizard (cyclomatic 90): BotCreatePage.Wizard has cyclomatic complexity 90 (threshold 15). Of this number, 55 points are the body\u0027s own statements and 35 belong to 9 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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4972d7ece1b850056c1a3dc8a5f2b966c45f6472daf1d17261d232542229f114"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.createAuth.handler (cyclomatic 82): auth.createAuth.handler has cyclomatic complexity 82 (threshold 15). Most of this is not in the body itself: 1 of the 82 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 119, 180). 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":"platform/backend/src/auth.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b0486c3106dec5552f8a2c4a40789076b0609055c9cdfabb25a613ab23d9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"universes.universeRoutes (cyclomatic 73): universes.universeRoutes has cyclomatic complexity 73 (threshold 15). Most of this is not in the body itself: 1 of the 73 points is its own statement and the rest belongs to 30 function literals inside it that branch (lines 250, 524, 569, \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc21c2c20cbd9c336cd831a5347309d5db5ad2aebff8592f2ed384f619c61c3"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionsPage.SessionList (cyclomatic 68): SessionsPage.SessionList has cyclomatic complexity 68 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 29 belong to 17 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a364473988e67c4518b20b0ba02e776bba4451a928b58b7b3a584d549be212a"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.configError (cyclomatic 67): session-config-editor.configError has cyclomatic complexity 67 (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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf90a0c0700f4b32d82ee1f85e253ee100b7449f551dcfcbe664964483893fe"}},{"ruleId":"D1","level":"warning","message":{"text":"session-settings-sheet.LiveSessionSetup (cyclomatic 65): session-settings-sheet.LiveSessionSetup has cyclomatic complexity 65 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 21 belong to 8 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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d45c720d3e7ef3e3fba07c43c4390a5aa09251745c37851bf96f6de371745da"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.normalizeSessionConfig (cyclomatic 62): session-config-editor.normalizeSessionConfig has cyclomatic complexity 62 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 8 belong to 3 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e6d90f7bd56cd913d99a3681977a2c04b6caaa8dc40f2ec51a683151d1eed4"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionsPage.NewSessionDialog (cyclomatic 62): SessionsPage.NewSessionDialog has cyclomatic complexity 62 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 19 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"250710e28fad847bb23a2d9a123a783f4fdbc0ced5449f4345f690a57f86bba2"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreAgentProjector::project_event_kind (cyclomatic 57): CoreAgentProjector::project_event_kind has cyclomatic complexity 57 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/api-projection/src/lib.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1259edac1aafc91b91117a833417c5a0e5d7afb26e39937b58de16cd00432ad"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::codec::core_agent_event_envelope_kind (cyclomatic 57): harness::core::codec::core_agent_event_envelope_kind has cyclomatic complexity 57 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/harness/src/core/codec.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"58aa0641b9a94a3249fc3679c925dd563cec4e7dbc17d32972fb8fafdfc60797"}},{"ruleId":"D1","level":"warning","message":{"text":"session-resources.SessionResourceChips (cyclomatic 53): session-resources.SessionResourceChips has cyclomatic complexity 53 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 7 belong to 3 function literals 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":"platform/web/src/components/session/session-resources.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90d31f21017799c8d4c99b6e6cc4077a640c4d3faa4763014878a483df7841b"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript.applyEvents (cyclomatic 53): transcript.applyEvents has cyclomatic complexity 53 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 4 belong 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6c68b5e676ae85a1007b107a0b1ad73d6ba8b90f7df50be1943b0e709db1c1"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspacesPage.FileDetail (cyclomatic 53): WorkspacesPage.FileDetail has cyclomatic complexity 53 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 26 belong to 8 function literals 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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"636424df5dc04a905219a7251352c3c373e7290192f61ca2f1e97333aba2db5a"}},{"ruleId":"D1","level":"warning","message":{"text":"api_projection::tool_call_display (cyclomatic 49): api_projection::tool_call_display has cyclomatic complexity 49 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/api-projection/src/lib.rs"},"region":{"startLine":2991}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9d8412b5d5165eb1426933d54107febeca8505ebaeaac2e7b5ca7b33696cc9"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminUsersPage.EditUserDialog (cyclomatic 46): AdminUsersPage.EditUserDialog has cyclomatic complexity 46 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 23 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":"platform/web/src/pages/AdminUsersPage.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15b57b384a233b1395dda682d2938ff71cda21adfef2446552f85ce26fff2be"}},{"ruleId":"D1","level":"warning","message":{"text":"setup.OtherBotsSection (cyclomatic 45): setup.OtherBotsSection has cyclomatic complexity 45 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 11 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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"7629c49cd378e0fe2e1e7243d7076126efbb5b0ba56fe543a3047a6f2b73dfe6"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::drive::tool_call_completed_proposals_inner (cyclomatic 44): harness::core::drive::tool_call_completed_proposals_inner 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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffffac1cd50cff1669563dbb57af9c2414628b52de351386d4c765d409a55f6"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-picker.ToolPicker (cyclomatic 44): tool-picker.ToolPicker has cyclomatic complexity 44 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 13 belong to 6 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":"platform/web/src/components/mcp/tool-picker.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92b2f35d7e60ac17c796f7f6b23df9d4538b926586440a9e020ad960656147c"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript.applyNonToolCallItem (cyclomatic 41): transcript.applyNonToolCallItem has cyclomatic complexity 41 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 2 belong 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9beed392ab769725d4750f39b39041332759fd604baad6150f7cca24325108e"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.createAuth (cyclomatic 40): auth.createAuth has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 8 of the 40 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 76, 61, 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":"platform/backend/src/auth.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6451987e5890da0c5a84217b8d6a5de2a3c9e90ced4d7f4adaa2fd046655f057"}},{"ruleId":"D1","level":"warning","message":{"text":"deleted-sessions.DeletedSessionsContent (cyclomatic 39): deleted-sessions.DeletedSessionsContent has cyclomatic complexity 39 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 17 belong to 8 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":"platform/web/src/components/admin/deleted-sessions.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54a92f218dd2743e60e08ff0fca7e45168ad8c37c2ca71c8c4dd3aaab064709"}},{"ruleId":"D1","level":"warning","message":{"text":"tail.useSessionTail (cyclomatic 39): tail.useSessionTail has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 2 of the 39 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 96, 71, 46, \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":"platform/web/src/lib/sessions/tail.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae39fa1e76e5de80005d3420f3ce5794d4824c13b5dd75545e9ff58b26947ec"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::context::apply_event (cyclomatic 37): harness::core::components::context::apply_event 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":"crates/harness/src/core/components/context.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe6802d6c7125bbebe6b66cbb344d4ed0783fd6eedaa4edda3033d66dde51f0"}},{"ruleId":"D1","level":"warning","message":{"text":"bots.botRoutes (cyclomatic 36): bots.botRoutes has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 1 of the 36 points is its own statement and the rest belongs to 17 function literals inside it that branch (lines 74, 182, 218, \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb63ed3dd452cc093e209c31eca0738eefbbb7990e40bbd6db5e6a5dd3eb8785"}},{"ruleId":"D1","level":"warning","message":{"text":"run-sections.sectionsByRun (cyclomatic 35): run-sections.sectionsByRun has cyclomatic complexity 35 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 12 belong to 2 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":"platform/web/src/lib/sessions/run-sections.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"913b6780670daa722278f3cee3572361b062b2e72526cf1ee99255b7d7fe013e"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfilesPage.ProfileEditor (cyclomatic 35): ProfilesPage.ProfileEditor has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 13 of the 35 points are its own statements and the rest belongs to 8 function items inside it that branch (submit, switchTab, a function literal at line 244, \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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5314b3843268a034124a2eb92f9d28e4bb9e7085e64defe4264aa4311f9fb6"}},{"ruleId":"D1","level":"warning","message":{"text":"codemode::engine::run_context (cyclomatic 33): codemode::engine::run_context 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":"crates/codemode/src/engine.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bff4969fcc70d7cc807d77da8a5597933f6b5fa2fab2319e2e2ddb8afd0eae"}},{"ruleId":"D1","level":"warning","message":{"text":"setup.SessionProfileSection (cyclomatic 33): setup.SessionProfileSection has cyclomatic complexity 33 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 12 belong to 4 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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2c5c2f5d17ad8022d501ba2d1ad802d1925af86a534f6d85f259b352954208"}},{"ruleId":"D1","level":"warning","message":{"text":"resize-handle.ResizeHandle (cyclomatic 33): resize-handle.ResizeHandle has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 6 of the 33 points are its own statements and the rest belongs to 8 function items inside it that branch (key, a function literal at line 101, a function literal at line 179, \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":"platform/web/src/components/resize-handle.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f828ea967559ea087e9d77611cbb38a03a1e103441562b09aa9c767a8d01e296"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript.reconcileRuns (cyclomatic 33): transcript.reconcileRuns 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"db87f33298ebe1cc9a6932411546c5baad3cb2ab06a84bde1333719f099f929c"}},{"ruleId":"D1","level":"warning","message":{"text":"EnvironmentsPage.EnvironmentList (cyclomatic 33): EnvironmentsPage.EnvironmentList has cyclomatic complexity 33 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 6 belong to 6 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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2f0df4b199e13cecc2e2deb9f73f9ac7022ad6477e6425a4dab2564ddc728c"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginPage.LoginPage (cyclomatic 33): LoginPage.LoginPage has cyclomatic complexity 33 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 16 belong to 4 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":"platform/web/src/pages/LoginPage.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3ab2f7b1707df87395c682f1721691fb509974fba64f7f92550770ba6bd99a"}},{"ruleId":"D1","level":"warning","message":{"text":"triggers.TriggersSection (cyclomatic 32): triggers.TriggersSection has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 15 of the 32 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 852, 877). 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"276a19d66d292fa13661ce50d6aeda6e9efe94061e45e62ae1092ffa9d9e1fd1"}},{"ruleId":"D1","level":"warning","message":{"text":"add-model-provider-dialog.AddModelProviderDialog (cyclomatic 32): add-model-provider-dialog.AddModelProviderDialog has cyclomatic complexity 32 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 3 belong to 2 function literals 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":"platform/web/src/components/models/add-model-provider-dialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae5b86c25347731041826d8fcd055ef0e45684758a5937da438bd2965ebd2b3"}},{"ruleId":"D1","level":"warning","message":{"text":"composer-model-picker.ModelPicker (cyclomatic 32): composer-model-picker.ModelPicker has cyclomatic complexity 32 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 15 belong to 6 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":"platform/web/src/components/session/composer-model-picker.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17f42675bf6763c0014b7542d37e6c17eef1d42107208da6adaf20cfb0e714b"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript.applyItems (cyclomatic 32): transcript.applyItems 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9eb00b04cc163f77d25d73a0553f87cbaf803f0f5ed25eee695a1df29ea1610"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).outputHelper (cyclomatic 32): (anonymous).outputHelper has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to one function literal inside it that branches (line 100). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemode/src/prelude.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"df66770947f89bc1498b081313532a550db7c67c34b7cf5daf4824a83a5093c2"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptState::apply_chat_event (cyclomatic 31): TranscriptState::apply_chat_event has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/chat/tui/transcript.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ce23974f5642d590890bc3794844379a2805a08ebeee622a6751d83ce0259a"}},{"ruleId":"D1","level":"warning","message":{"text":"env.loadOidc (cyclomatic 31): env.loadOidc has cyclomatic complexity 31 (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":"platform/backend/src/env.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77020e5ea8d4332ba2250cda999b3237a8a0e9db945f7e27f887fe3a9e08706"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::turn::apply_event (cyclomatic 30): harness::core::components::turn::apply_event 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":"crates/harness/src/core/components/turn.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc34f7947341d0c75259f886108f180144e5f0056d9abb6807af5ee0d62d8e8"}},{"ruleId":"D1","level":"warning","message":{"text":"session-resources.sessionResources (cyclomatic 30): session-resources.sessionResources has cyclomatic complexity 30 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 15 belong to 3 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":"platform/web/src/lib/sessions/session-resources.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f54a548839b99f6c85a1fbe225748f1e96167b8b1735463dea7d36b486227e"}},{"ruleId":"D1","level":"warning","message":{"text":"McpServersPage.OAuthDialog (cyclomatic 30): McpServersPage.OAuthDialog has cyclomatic complexity 30 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 6 belong to 3 function literals 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c79b7776975699b482a44fe67f2c7f7b071302c87c456fe01d0d74a03c6e81"}},{"ruleId":"D1","level":"warning","message":{"text":"JobManager::read (cyclomatic 29): JobManager::read 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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"05daeb0fb96980098f5b62b7bd316b5b633aa8f67b21d4be773ce27fb466f93c"}},{"ruleId":"D1","level":"warning","message":{"text":"activity.BotActivity (cyclomatic 29): activity.BotActivity has cyclomatic complexity 29 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 7 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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a637bdc3a7baca8646b909c2601377a7fcf575d00a2091d76d76e91b786a4a5"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.ModelFields (cyclomatic 29): session-config-editor.ModelFields has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 13 of the 29 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 929, 966, 848, \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"5565d324d38cfd909f1063eb88382f229bf41a73abf8c19d380aca88cee7f175"}},{"ruleId":"D1","level":"warning","message":{"text":"environment_daemon::filesystem::scan::scan_root (cyclomatic 28): environment_daemon::filesystem::scan::scan_root 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":"crates/environment-daemon/src/filesystem/scan.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5568e6320ee496220a015b2ea9582cad7e04c2d760a242783225573cd5d5404b"}},{"ruleId":"D1","level":"warning","message":{"text":"connector.createWhatsAppConnector.run (cyclomatic 28): connector.createWhatsAppConnector.run has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 2 of the 28 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 114, a function literal at line 209, a function literal at line 90, \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":"platform/connectors/src/providers/whatsapp/connector.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a1f361b50691b03d68611ce6042bda64eeee3f89336f9f9a23bba587e333b4"}},{"ruleId":"D1","level":"warning","message":{"text":"workspace-transfers.WorkspaceActionsMenu (cyclomatic 28): workspace-transfers.WorkspaceActionsMenu 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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"29948bb9db6031fb889f8c3b442a8e2f8d64965eed8c277c42e5992ed771dfc9"}},{"ruleId":"D1","level":"warning","message":{"text":"cli::connection::handle (cyclomatic 27): cli::connection::handle 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":"crates/cli/src/connection.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"398b3f0af50a59277c3b3e11893678f93bb6b345d3d301bd3e08e5b151d4d386"}},{"ruleId":"D1","level":"warning","message":{"text":"Confinement::walk (cyclomatic 27): Confinement::walk 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":"crates/environment-daemon/src/filesystem/confinement.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"7623b944465b2b1a5d8535aca48d5a746fefc590f96e445bcb1643a1536ee888"}},{"ruleId":"D1","level":"warning","message":{"text":"Publish::append (cyclomatic 27): Publish::append 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":"crates/environment-daemon/src/filesystem/transfer/publish.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c629b14d316bab5069269b311fd12466932a65f1551d87ac7c967b3821c8cde"}},{"ruleId":"D1","level":"warning","message":{"text":"company-identity.companyClaimsReader.\u003Creturned closure\u003E (cyclomatic 27): company-identity.companyClaimsReader.\u003Creturned closure\u003E 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":"platform/backend/src/company-identity.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a67a555475d59a7149a3478f300d0d59ecaefc159eb7b9b5be08a0225ead2a"}},{"ruleId":"D1","level":"warning","message":{"text":"cron-builder.cronBuilderFromExpression (cyclomatic 27): cron-builder.cronBuilderFromExpression 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":"platform/web/src/components/bot/cron-builder.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"08acebeb06e090e3626603734681714ba1e55460db7021bce5852e50a09a9808"}},{"ruleId":"D1","level":"warning","message":{"text":"model-defaults.DefaultModelDialog (cyclomatic 27): model-defaults.DefaultModelDialog has cyclomatic complexity 27 (threshold 15). Of this number, 14 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":"platform/web/src/components/models/model-defaults.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5973ac6949ac7e1765483b543d00cf5318c82aa31d8a8a7756e9c141f6dd33"}},{"ruleId":"D1","level":"warning","message":{"text":"reply-copy.replyFormatted::plain (cyclomatic 27): reply-copy.replyFormatted::plain has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/session/reply-copy.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fa16f1a4be0ea107438125b962b5fd2d73ecedc7e40d940b09f59d94382466"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspacesPage.WorkspacesPage (cyclomatic 27): WorkspacesPage.WorkspacesPage has cyclomatic complexity 27 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 6 belong to 3 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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a2d7b7948e6c0b7e89aa01da1920cfb7e7643bd3ffaaaa292e4d1bd4faf5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::run::apply_event (cyclomatic 26): harness::core::components::run::apply_event 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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"da176c55df5e62410978590662569ef8b6170648dbecd19caba89ccef571ff14"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-trace.ToolCallRow (cyclomatic 26): tool-trace.ToolCallRow has cyclomatic complexity 26 (threshold 15). Of this number, 25 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":"platform/web/src/components/session/tool-trace.tsx"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7aef0b71664905fbd68dd1fb584bf32338ea75ca61610a09a701a15d7b48568"}},{"ruleId":"D1","level":"warning","message":{"text":"EnvironmentsPage.EnvironmentDetails (cyclomatic 26): EnvironmentsPage.EnvironmentDetails has cyclomatic complexity 26 (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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be354ccc2289cab5bcda397601982f4784e9c4fad14cc41f374c7b4cb41992d"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionsPage.SessionDetail::steerQueued (cyclomatic 26): SessionsPage.SessionDetail::steerQueued 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. This shape REPEATS in the file: one other method here (SessionsPage.SessionDetail) 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e3f8c78fe614a0faf5ffcb194909a2acf02ad5a0d0d6f65e9dc79cf4f57c0e"}},{"ruleId":"D1","level":"warning","message":{"text":"SetupsPage.ConfiguratorKeyDialog (cyclomatic 26): SetupsPage.ConfiguratorKeyDialog has cyclomatic complexity 26 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 6 belong to 4 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":"platform/web/src/pages/SetupsPage.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"94390d956a315897616ef6e6f918e198bf0a061f17513b5f5b62e3563ab4b8a2"}},{"ruleId":"D1","level":"warning","message":{"text":"bots::validate::validate_trigger_document (cyclomatic 25): bots::validate::validate_trigger_document 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":"crates/bots/src/validate.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"d892ece69280c6c4c0bfa71f244c598e885fb69b461188d0632e79441b392278"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessManager::read (cyclomatic 25): ProcessManager::read 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":"crates/environment-daemon/src/process.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2d1444c5f7ebee9b80965c9b452e9345da0afd1659f79cd318e5da74db75a7"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlSession::run (cyclomatic 25): ControlSession::run 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":"crates/temporal-runtime/src/gateway/registration.rs"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f6e1703fad066676aac4842eb40f49242275968b01268b0542034b92e21e42"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_workflow::workflows::session::code_tools::run_dispatch_loop (cyclomatic 25): temporal_workflow::workflows::session::code_tools::run_dispatch_loop 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":"crates/temporal-workflow/src/workflows/session/code_tools.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"01843af554b75217a54e22ed3df21fea110ab1095859557bd182f3600cdebf8a"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::definitions::resolve (cyclomatic 25): tools::definitions::resolve has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/definitions.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0c8e619de67ff20d0ad3715622fb9d992a254cc0e0cd5f2b442b320fdbb8ef"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionsPage.SessionLineage (cyclomatic 25): SessionsPage.SessionLineage has cyclomatic complexity 25 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":2518}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2955d112232bb25613ae98e27a9c0c4a97bccf4e7f4b36c3bb2bee7e4e85a59"}},{"ruleId":"D1","level":"warning","message":{"text":"SlashCommandKind::command_with_args (cyclomatic 24): SlashCommandKind::command_with_args has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/chat/tui/slash.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb2275cf308e043f64db61ab958ba3213112d76a1c5c0187d412858eecf6dd8"}},{"ruleId":"D1","level":"warning","message":{"text":"EnvironmentJobWorkflow::run (cyclomatic 24): EnvironmentJobWorkflow::run has cyclomatic complexity 24 (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":"crates/temporal-workflow/src/workflows/environment_job.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ff8fb9ae38d77832dc968c397eb5b43b3aaf79acf5bd54685ee99309bc4ad8"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentExecutionWorkflow::run (cyclomatic 24): SubagentExecutionWorkflow::run has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-workflow/src/workflows/subagent_execution.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8f064aeb27eadcfd556214f718661c392af84eae43d877ca45b7f651498b87"}},{"ruleId":"D1","level":"warning","message":{"text":"detail.BotDetail (cyclomatic 24): detail.BotDetail has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 12 belong to 3 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":"platform/web/src/components/bot/detail.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b60f42dceafd21227c23a42cbe8e026bb3711d5bdab6348663b7c9a8f9b5cf9"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.EnvironmentFields (cyclomatic 24): session-config-editor.EnvironmentFields has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 1970, 2011, 1946, \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c0c4311b2aaf14491d6b51c4a860ccf93b7f6c54641003a684c1071e2a1905"}},{"ruleId":"D1","level":"warning","message":{"text":"SetupsPage.SetupCard (cyclomatic 24): SetupsPage.SetupCard has cyclomatic complexity 24 (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":"platform/web/src/pages/SetupsPage.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80f409e3a4c023497567756f57d03de6c7ab7e166042eef681f0db48d95e2f5"}},{"ruleId":"D1","level":"warning","message":{"text":"bots::validate::validate_poll_source (cyclomatic 23): bots::validate::validate_poll_source 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":"crates/bots/src/validate.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d4b5336db9338445b9d2371833013a10c8e189ec5573759cfccc17a18829e7"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::tooling::park_tool_batch (cyclomatic 23): harness::core::components::tooling::park_tool_batch 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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf06a455c0dc065afe8d2e53794f3cedab867b827c09be0cc4c2a2b3fddced8"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::worker::code::finalize (cyclomatic 23): temporal_runtime::worker::code::finalize has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/code.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"962a534846149d8178cd01a83a4690858b6ee0031e94c7e494511cdaf2d2b250"}},{"ruleId":"D1","level":"warning","message":{"text":"server.createRpcProxy.\u003Creturned closure\u003E (cyclomatic 23): server.createRpcProxy.\u003Creturned closure\u003E 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":"clients/typescript/src/server.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4a42940da990cf0de2a37f7d735afcdc7aa4eae1d6a18021bfbc2eaeaecb13"}},{"ruleId":"D1","level":"warning","message":{"text":"setups.ensureCredential (cyclomatic 23): setups.ensureCredential has cyclomatic complexity 23 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 7 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":"platform/backend/src/routes/setups.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c42a2643d2b7098a03cf9010e56c9b3e6cd1698734a8df74e929bb24038766"}},{"ruleId":"D1","level":"warning","message":{"text":"connector.toInboundMessage (cyclomatic 23): connector.toInboundMessage has cyclomatic complexity 23 (threshold 15). Of this number, 22 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":"platform/connectors/src/providers/telegram/connector.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3376c58110917bd4139f8833e06b2615f69176d783938348ce3f4a0499547d41"}},{"ruleId":"D1","level":"warning","message":{"text":"model-api-key.OpenAiCompatibleForm (cyclomatic 23): model-api-key.OpenAiCompatibleForm has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 380, a function literal at line 409, changeProvider). 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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb8b366d0257a25d50d7d7d8beda75aef3c75e0ce8654320512c9d09b1138c5"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript-view.UserBand (cyclomatic 23): transcript-view.UserBand has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 2 belong 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":"platform/web/src/components/session/transcript-view.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c96a97c7b1ca891b890e66e8ec414b48b275c908956aeaa8adf5fc10a7e712"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminEnvironmentProvidersPage.ProviderDialog (cyclomatic 23): AdminEnvironmentProvidersPage.ProviderDialog has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 11 of the 23 points are its own statements and the rest belongs to 3 function items inside it that branch (submit, a function literal at line 372, a function literal at line 485). 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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a33cce4ab23f682af722ef0d7988208c73a6a80eed248775e1bc18c6106674"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).clone (cyclomatic 23): (anonymous).clone has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemode/src/prelude.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fa8b94e0ecf0a3d2bc77481e4500c8671c801cbfc918ec82f2db43e94de713"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::drive::tool_batch_parked_proposals (cyclomatic 22): harness::core::drive::tool_batch_parked_proposals 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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f596b2da48cee2d7241172fb85888395c3954dfa0dea1a1ead9857e5062e1117"}},{"ruleId":"D1","level":"warning","message":{"text":"SubagentService::prepare (cyclomatic 22): SubagentService::prepare has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/subagents.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad334ad1061ff3fc6e632db89f8075b53743a8fa762f029c4822cf9b07741ac5"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionTools::invoke_environment_control_call (cyclomatic 22): SessionTools::invoke_environment_control_call has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"c657fff03c0257a740c3c47cf0046fcb9d234f21c3f661eb795ec63529573454"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::worker::activities::context_refresh::refresh_context (cyclomatic 22): temporal_runtime::worker::activities::context_refresh::refresh_context 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":"crates/temporal-runtime/src/worker/activities/context_refresh.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51ffe286d1e7f633beef5a73ef425803ee76678806ed75548a7656c7e69e188"}},{"ruleId":"D1","level":"warning","message":{"text":"channel-accounts.channelUniverseRoutes (cyclomatic 22): channel-accounts.channelUniverseRoutes has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 11 function literals inside it that branch (lines 133, 114, 218, \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":"platform/backend/src/routes/channel-accounts.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68121ab544a3b8bff571675fe75112a7a6cfd3ef12a7255699406e0a49138a0"}},{"ruleId":"D1","level":"warning","message":{"text":"inbound.parseChannelInboundMedia (cyclomatic 22): inbound.parseChannelInboundMedia 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":"platform/connectors/src/media/inbound.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"676164a4b82f91892359de964dcc05ce518c0582c6b37f1f1d991c6daddc6d77"}},{"ruleId":"D1","level":"warning","message":{"text":"McpServersPage.ServerList (cyclomatic 22): McpServersPage.ServerList has cyclomatic complexity 22 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 8 belong to 5 function literals 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"753541bce30e18d52613803cf155dd3bc3d4903eff0ccd7e9fa786df943193f4"}},{"ruleId":"D1","level":"warning","message":{"text":"MethodGroup::of (cyclomatic 21): MethodGroup::of 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":"crates/api/src/access.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69ecdd8c3eb10c08ac7a7d97353238af2fbb83f89f8832a1b834e296356a7ec"}},{"ruleId":"D1","level":"warning","message":{"text":"ComposerState::handle_key (cyclomatic 21): ComposerState::handle_key has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/chat/tui/bottom_pane/composer.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac20bf4c14d6e313b7a6b083089e6936627acc1128d33c5c5a54ce907fc3ec6"}},{"ruleId":"D1","level":"warning","message":{"text":"Publish::scan_step (cyclomatic 21): Publish::scan_step 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":"crates/environment-daemon/src/filesystem/transfer/publish.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ae5e5813d311e7bf6f9763110e6a21ec892ce34a50cbeb535c22bf36f89c01"}},{"ruleId":"D1","level":"warning","message":{"text":"llm_runtime::compaction::compact (cyclomatic 21): llm_runtime::compaction::compact 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":"crates/llm-runtime/src/compaction.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c4982a6dde18181375c526e5e110889cbce0c90e40cdc2620d6f61b025b15b"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayAgentApi::ingest_bot_webhook (cyclomatic 21): GatewayAgentApi::ingest_bot_webhook has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/bots/hooks.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03fdf5af31a280fa942971961d159e63c527fc7dd29f78f82cd2dd4c57b6a6d"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::channels::activities::emit_chat_event (cyclomatic 21): temporal_runtime::channels::activities::emit_chat_event has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/channels/activities.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d9837e831914d1500b28775e8e082f257788f609a33fbe967d03994fa1f25f"}},{"ruleId":"D1","level":"warning","message":{"text":"activity.EventRow (cyclomatic 21): activity.EventRow 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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbab27125371b95bb6d21c685d1c793a514a48490f4f97be5b4bd34f22478b48"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-trace.ToolCallDetail (cyclomatic 21): tool-trace.ToolCallDetail has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"platform/web/src/components/session/tool-trace.tsx"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"024df27bf59196f988ad04cb9f9a1122f279d490e1df5b51e0599d78ebe86c91"}},{"ruleId":"D1","level":"warning","message":{"text":"workspace-file-tree.WorkspaceFileTree::key (cyclomatic 21): workspace-file-tree.WorkspaceFileTree::key has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/workspace-file-tree.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3566175afe163bf6601b0a800eca6d564443f32e7c2a881a64601faf812c11"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialsPage.CredentialList (cyclomatic 21): CredentialsPage.CredentialList has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 belong to 3 function literals 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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79e92e43fd793fd5715d11f935fe9d4ec2cebd7fd2ccadc56cab2be23ed07e2"}},{"ruleId":"D1","level":"warning","message":{"text":"McpServersPage.ServerDetails (cyclomatic 21): McpServersPage.ServerDetails has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cf56cbea6bf2d7af5f6b4bea7315c1780ed8ca0aa572142a8307045f566afb"}},{"ruleId":"D1","level":"warning","message":{"text":"environment_protocol::jsonrpc::parse_value (cyclomatic 20): environment_protocol::jsonrpc::parse_value has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-protocol/src/jsonrpc.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"846c18d7bb87c6196bf1680bab25f817a169e88b65a54f26b1df11dc14a1f8a7"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderArgs::load (cyclomatic 20): ProviderArgs::load 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":"crates/environment-provider-incus/src/config.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6661b231b4d44a9524e217b05a338361b3f88462f9b8a1ccde91ee812c3c5a56"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::approval::apply_approval_event (cyclomatic 20): harness::core::components::approval::apply_approval_event 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":"crates/harness/src/core/components/approval.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4002496f9b403caaf523bc50a2a82e361df52622a161e8921df58e3cac84c11"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::tooling::plan_next (cyclomatic 20): harness::core::components::tooling::plan_next 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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84a50ee814aa117b8b2fbeca9904b348d8553595f42f46110f7cf888fc6eda1"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::tooling::apply_event (cyclomatic 20): harness::core::components::tooling::apply_event 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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7b6004740016fc60380998838c5fa3674baf5576ecd818ee8bb92601121333"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::workflow_tool::validate_recorded_invocation (cyclomatic 20): harness::core::components::workflow_tool::validate_recorded_invocation 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":"crates/harness/src/core/components/workflow_tool.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f288ae4403f33f0d4b0fcd8880ac376dc10785e0a09d214c9aa67220acee45"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionTools::invoke_workflow_tool_call (cyclomatic 20): SessionTools::invoke_workflow_tool_call 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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbaa204cffcc9acbda07bd8300074246ffe652a95c9e30107cb79547533e4d0"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::gateway::http::proxy_frames (cyclomatic 20): temporal_runtime::gateway::http::proxy_frames 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":"crates/temporal-runtime/src/gateway/http.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"01620071f180a082cd8bb65f46c39a33ec40bbf0a82aad43d5b1c88f2061a942"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSessionWorkflow::run (cyclomatic 20): AgentSessionWorkflow::run 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":"crates/temporal-workflow/src/workflows/session/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b8a11f66282664ece7aa8f6f509e0b9136af7f4cecd5689fed80af8a7ec1b6"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_workflow::workflows::bots::controller::lanes::run_delivery_inner (cyclomatic 20): temporal_workflow::workflows::bots::controller::lanes::run_delivery_inner 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":"crates/temporal-workflow/src/workflows/bots/controller/lanes.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d2ca79dadcca842fe5c84d71803d80132c94816c3e2685e053e1166f4890bd"}},{"ruleId":"D1","level":"warning","message":{"text":"delete-session-dialog.DeleteSessionDialog (cyclomatic 20): delete-session-dialog.DeleteSessionDialog has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 8 belong to 3 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":"platform/web/src/components/session/delete-session-dialog.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"866a4c40628380bd22b73edd028d70b9b410de607b435e40383979315eba8869"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.VfsFields (cyclomatic 20): session-config-editor.VfsFields has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1428, 1462, 1384, \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ba484f79c748727ecc252974ad0c71410af4e4c7954799552ae18662e21a59"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionsPage.SessionListItem (cyclomatic 20): SessionsPage.SessionListItem has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"f387a4935ad8020bb75174056f7fe52113155a96f5d29a21f5088806d9cb5b06"}},{"ruleId":"D1","level":"warning","message":{"text":"cli::chat::driver::print_event (cyclomatic 19): cli::chat::driver::print_event has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: ChatSessionDriver::chat_events_from_session_event (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/chat/driver.rs"},"region":{"startLine":2164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39f5d369dc083055f0098293dc7db99af806ecacc945bb284ce906de7b94eb1"}},{"ruleId":"D1","level":"warning","message":{"text":"environment_provider_incus::edge::proxy_websocket (cyclomatic 19): environment_provider_incus::edge::proxy_websocket has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-provider-incus/src/edge.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2a33b7857c9e5ecbfa9af5c825ec936a724044a3be9c431ce995ed964ab54e"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayAgentApi::put_bot_trigger_record (cyclomatic 19): GatewayAgentApi::put_bot_trigger_record has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/service/bots_api.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5804d3709c648e1cb2efa61c66de9f3ad054b26d58a88a61a030e635a7b6ca"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayAgentApi::replace_context (cyclomatic 19): GatewayAgentApi::replace_context 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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"be46a14f562781e9e28fbdd2f8616b453eacb8555a036a99ba8dfc334bc49459"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayAgentApi::start_session_internal (cyclomatic 19): GatewayAgentApi::start_session_internal has cyclomatic complexity 19 (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":"crates/temporal-runtime/src/gateway/service/session_lifecycle.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e997ddbfdab46c68c098dd2d31e549a1a620b3e673293d3d2e4297ecf0749b2"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::worker::activities::storage::validate_workflow_tool_reply (cyclomatic 19): temporal_runtime::worker::activities::storage::validate_workflow_tool_reply has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1feb5beb4d3b6f229756833dfcb436a073cbcca4334e6ee09c2c333f2122ea8d"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::fs::apply_patch::seek_sequence::seek_sequence (cyclomatic 19): tools::fs::apply_patch::seek_sequence::seek_sequence 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":"crates/tools/src/fs/apply_patch/seek_sequence.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad3d89a57a1b016e0963683af6ebc1b537fc2757068a2a69d6c02ebb147e399"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::workflow_tool::derive_completion_keys_from_source (cyclomatic 19): tools::workflow_tool::derive_completion_keys_from_source 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":"crates/tools/src/workflow_tool.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a9b0ebe814875f4c6261a7614ed065e1e3bc0097d18cd40597960f436b40e0"}},{"ruleId":"D1","level":"warning","message":{"text":"gateway.withGateway (cyclomatic 19): gateway.withGateway 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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"d762ed97d2be557d8a46716f34a3ef4966e4cf728ced558286835381872eefdf"}},{"ruleId":"D1","level":"warning","message":{"text":"triggers.TriggerFormCard (cyclomatic 19): triggers.TriggerFormCard has cyclomatic complexity 19 (threshold 15). 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, 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bc2164a88b8c725c829a2349ffb7d8aaee35ecb17c3530125ca43d3e7fad41"}},{"ruleId":"D1","level":"warning","message":{"text":"model-defaults.ModelDefaultsSection (cyclomatic 19): model-defaults.ModelDefaultsSection has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 45). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/models/model-defaults.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d0c06d9fcf8c177363f1877967c19b4a855fbb2cc4f2375b207e8d821755d5"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.FeaturePanel (cyclomatic 19): session-config-editor.FeaturePanel has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"4897dbf1696a1712cbef79c8063edcb829caefad564051766fe4177211ffc0c7"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.SourceDiscoveryFields (cyclomatic 19): session-config-editor.SourceDiscoveryFields has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to 3 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1838}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e41ad2aa086a19e1bb9a412595a70248e7af8eed00958b298a43d1ffb422fc9"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminApiKeysPage.AdminApiKeysPage (cyclomatic 19): AdminApiKeysPage.AdminApiKeysPage has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 belong to 2 function literals 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":"platform/web/src/pages/AdminApiKeysPage.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1316fd033a812a4d12b7351ad057b4b65d5462a009911615ffd0078de08de12d"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiKeysPage.ApiKeyList (cyclomatic 19): ApiKeysPage.ApiKeyList has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 belong to 2 function literals 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":"platform/web/src/pages/ApiKeysPage.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"10deb5e0b2a4288ecc8baa40587fd55a7f7a6bd7461823f4a848147c45e3bc77"}},{"ruleId":"D1","level":"warning","message":{"text":"BlobPage.BlobDetail (cyclomatic 19): BlobPage.BlobDetail has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"platform/web/src/pages/BlobPage.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fc267ae2fef8be5d7d4560c380f7e6d654353b6bea2f3cfe440d2a32dbdfa5"}},{"ruleId":"D1","level":"warning","message":{"text":"CredentialsPage.PasteCredentialDialog (cyclomatic 19): CredentialsPage.PasteCredentialDialog has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 9 belong to 3 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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f5fb8baf6c4c5bf91f4b6a79e17eed367cf4de5038dbcba2f0fa9586149750"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreAgentProjector::project_tool_batches_for_run (cyclomatic 18): CoreAgentProjector::project_tool_batches_for_run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/api-projection/src/lib.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"976054c41ce2da98037035d4e8bcbf33d900cb3be4ef0a60efa96971839a4e41"}},{"ruleId":"D1","level":"warning","message":{"text":"auth::providers::validate_model_endpoint (cyclomatic 18): auth::providers::validate_model_endpoint 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":"crates/auth/src/providers.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba17451c5c41377fcc4cf3ce4b667f28b7e0c5c94c5b4f7cedc6b99875ed46e"}},{"ruleId":"D1","level":"warning","message":{"text":"environment_client::connection::read_loop (cyclomatic 18): environment_client::connection::read_loop has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-client/src/connection.rs"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8d16c8823a5c349051a565d74a415c61adbbfeb1e3de3a516ada4fd79d9231"}},{"ruleId":"D1","level":"warning","message":{"text":"environment_daemon::filesystem::search::search_text (cyclomatic 18): environment_daemon::filesystem::search::search_text 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":"crates/environment-daemon/src/filesystem/search.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c9bce01496b733d4ae38dd9437ada69a8d40817e45c004300eb26bf97e6b02"}},{"ruleId":"D1","level":"warning","message":{"text":"EnvironmentRecord::validate (cyclomatic 18): EnvironmentRecord::validate 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":"crates/environments/src/lib.rs"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa239e8ad864958292ef6dc0000e91c720f82075e1b3cc2d52e856cee93f5ef9"}},{"ruleId":"D1","level":"warning","message":{"text":"llm_runtime::openai_completions::materialize_message (cyclomatic 18): llm_runtime::openai_completions::materialize_message 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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"74693d32d8f4ccfdc0963e94afaa5b028e2877f0edadfa0c1ca83df3569dcfb1"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::builtin::canonical::invoke_json (cyclomatic 18): tools::builtin::canonical::invoke_json has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/builtin/canonical.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcbf4533f7415b1cd73a028e85abbb467799e3830245a84ae3a09a5dc9babc6"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::callable::resolve (cyclomatic 18): tools::callable::resolve has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/callable.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7151b4a86fed7473bbbdfb95c240fe49af11224f3d87a24b3def4e75ba3ff3"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::fs::tools::shared::collect_file_paths_bounded (cyclomatic 18): tools::fs::tools::shared::collect_file_paths_bounded 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":"crates/tools/src/fs/tools/shared.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00bd78daaa375a5441e16ec8058e98796020a1d40438222ce4335b0558643c1"}},{"ruleId":"D1","level":"warning","message":{"text":"company-identity.admitCompanyIdentity (cyclomatic 18): company-identity.admitCompanyIdentity has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 74). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/src/company-identity.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e05de32ea6f88eeea6b4fd58a2f9a1bfb1e794ee26e835872095f3be6d53dc"}},{"ruleId":"D1","level":"warning","message":{"text":"app-shell.AppShell (cyclomatic 18): app-shell.AppShell has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 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":"platform/web/src/components/app-shell.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca027919d91a02329a995aac69c9bee2381629009a3c77f72c58908d62b951e"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger-summary.deliverySentence (cyclomatic 18): trigger-summary.deliverySentence 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":"platform/web/src/components/bot/trigger-summary.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"84255c921ffb716fcd1fa3f52dd58beaeef2e1a3d8bc8eba062fce944c812225"}},{"ruleId":"D1","level":"warning","message":{"text":"github-app.GitHubAppDetails (cyclomatic 18): github-app.GitHubAppDetails has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to 2 function literals 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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c94bc524e0ebce8f3049d7ac76a578c3f835025057c51b473d160dcc32ab780"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.WebFields (cyclomatic 18): session-config-editor.WebFields has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to 3 function literals 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"079517a6d31d8165714e1fd0976279572e8bce793dfafd69a34b9d23dff1ba6b"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-trace.ToolGroupTrace (cyclomatic 18): tool-trace.ToolGroupTrace 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":"platform/web/src/components/session/tool-trace.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff76eee5db33573dad8286cff99bb2f9fbde068ce1f706e0850a53e9a8bf0059"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminChannelsPage.AdminChannelsPage (cyclomatic 18): AdminChannelsPage.AdminChannelsPage has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 belong to 2 function literals 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":"platform/web/src/pages/AdminChannelsPage.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7861111de51e3c28375b6e9ccc1c0c1eed9ceaca777531ec02c9bebd31d0cbe0"}},{"ruleId":"D1","level":"warning","message":{"text":"EnvironmentsPage.CreateEnvironmentDialog (cyclomatic 18): EnvironmentsPage.CreateEnvironmentDialog has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 belong to 3 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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"620f441f593aef6439678c472b523d821b2937d96dd444f78a458398d78bc81f"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayAgentApi::decide_run_approvals (cyclomatic 17): GatewayAgentApi::decide_run_approvals 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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":3189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae14e7f4dc041d07e9865ddab98908648debdbb1ff60555fdfce08c0e7e9366"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::run_api_key_command (cyclomatic 17): temporal_runtime::run_api_key_command 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":"crates/temporal-runtime/src/main.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad128a73ecc73c546db1cb2479ea8bc90050a1669aa5eb46c5da2a6955acf913"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::worker::mcp::visible_mcp_result (cyclomatic 17): temporal_runtime::worker::mcp::visible_mcp_result 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":"crates/temporal-runtime/src/worker/mcp.rs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66825ec86b58626a5a9de2bea37639a96a4e355e148e817a7bf096201933812"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_workflow::workflows::session::drive::drive_until_idle (cyclomatic 17): temporal_workflow::workflows::session::drive::drive_until_idle 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":"crates/temporal-workflow/src/workflows/session/drive.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1916bdd228150b989e49d749088cdf2982dd45e147a50f0ccd5b374cdc8692ae"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::toolset::register_toolset (cyclomatic 17): tools::toolset::register_toolset has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/toolset.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4194d2fbc5d85c2fc1ddaeba8852548337a29814ed1c70ca515fc937a842062d"}},{"ruleId":"D1","level":"warning","message":{"text":"subscriptions.parseCodexCredential (cyclomatic 17): subscriptions.parseCodexCredential 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":"platform/backend/src/subscriptions.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e364afb6673b092fb63c242529be0f4c8164d5c02770513c8fb2047ea91f0c"}},{"ruleId":"D1","level":"warning","message":{"text":"media.createTelegramMediaActivities.prepareChannelMedia (cyclomatic 17): media.createTelegramMediaActivities.prepareChannelMedia 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":"platform/connectors/src/providers/telegram/media.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0449b2a6461ea13d397017806f4bcc4a712ba18f6ca065f70fa359e5032443eb"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App (cyclomatic 17): App.App has cyclomatic complexity 17 (threshold 15). Of this number, 15 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":"platform/web/src/App.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf504532b75339a3660259425e5ce98404958e528d6c5977df5e5cf555ecd64"}},{"ruleId":"D1","level":"warning","message":{"text":"environment-card.BotEnvironmentCard (cyclomatic 17): environment-card.BotEnvironmentCard 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":"platform/web/src/components/bot/environment-card.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"05afaa133f6adf81cc48e8bc8adf6ccd0afc87bf090b2a22718fdfc696f71059"}},{"ruleId":"D1","level":"warning","message":{"text":"triggers.triggerDraftSummary (cyclomatic 17): triggers.triggerDraftSummary 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"7492b54758e2044e3e72d019cf74deff0a52609e6a23505c815db21abf310dcd"}},{"ruleId":"D1","level":"warning","message":{"text":"reply-copy.replyMarkdown::visit (cyclomatic 17): reply-copy.replyMarkdown::visit 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":"platform/web/src/components/session/reply-copy.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a608cae2dac2b6b408de086ee4c46d9be0e3f914b11bfb986916857f6d3ca96"}},{"ruleId":"D1","level":"warning","message":{"text":"run-section.RunStrip (cyclomatic 17): run-section.RunStrip 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":"platform/web/src/components/session/run-section.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc357de3f855bf7a0fc6db7092c22a8b6347013d8cafbffbc4bf314e525de7d5"}},{"ruleId":"D1","level":"warning","message":{"text":"session-config-editor.SessionConfigEditor (cyclomatic 17): session-config-editor.SessionConfigEditor has cyclomatic complexity 17 (threshold 15). 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 items inside it that branch (a function literal at line 663, a function literal at line 612, onChange). 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f3c262aead9afbc8c99b55b5eb64066b10973b28e0804ac4ef0606c414057c"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-discovery.useMcpToolDiscovery (cyclomatic 17): tool-discovery.useMcpToolDiscovery has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to 3 function literals 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":"platform/web/src/lib/mcp/tool-discovery.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53e8225db8f53ea88271bb311ffd293a92cccb2eff01c295685213e3218da11"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminEnvironmentProvidersPage.AdminEnvironmentProvidersPage (cyclomatic 17): AdminEnvironmentProvidersPage.AdminEnvironmentProvidersPage has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 belong to 3 function literals 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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fda09f56cb64fb16e8c2c5b73529b1db09d1d63c559e7cc3e23eb2ee5a471fa"}},{"ruleId":"D1","level":"warning","message":{"text":"OAuthFlowService::complete_callback (cyclomatic 16): OAuthFlowService::complete_callback has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/auth/src/flow.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"332f032ea2eb6d69a5a47f9de730d80707b04392bf7fab4c733b2d0b6bae240f"}},{"ruleId":"D1","level":"warning","message":{"text":"cli::chat::tui::app::spawn_driver_task (cyclomatic 16): cli::chat::tui::app::spawn_driver_task 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. This is NOT this file\u0027s highest cyclomatic complexity: ChatTuiApp::apply_slash_command (cyclomatic 26) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/chat/tui/app.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc9b5423b75d8be7da53007de33c5f1c3f2e107736b8a7f3338d47fbefab035"}},{"ruleId":"D1","level":"warning","message":{"text":"environment_client::paths::resolve (cyclomatic 16): environment_client::paths::resolve 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":"crates/environment-client/src/paths.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3576356b357eef83f5a8f5953aa20020290e1c553b031d25051cac9e1a3bdb"}},{"ruleId":"D1","level":"warning","message":{"text":"Capture::visit (cyclomatic 16): Capture::visit has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/filesystem/transfer/capture.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"14854ca12169c05cdd27453ea7bf6d04260df11daa95fcd4c1757dc3aed66990"}},{"ruleId":"D1","level":"warning","message":{"text":"JobManager::schedule (cyclomatic 16): JobManager::schedule 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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1b35c8389d9b00d91dbac226daaefaa0b76d4846db4a9a8d795d1734417833"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessManager::maintain (cyclomatic 16): ProcessManager::maintain 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":"crates/environment-daemon/src/process.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9aa0f23aa882aaa5cdebc3fda2939aaa672d721c070feb6b053ff02ab9e49f"}},{"ruleId":"D1","level":"warning","message":{"text":"environment_provider_incus::server::connection (cyclomatic 16): environment_provider_incus::server::connection 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":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6129966ac88280817c2689c61de78e6cda0d3742793c91787523c66921affd4"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::code_tool::apply_code_tool_event (cyclomatic 16): harness::core::components::code_tool::apply_code_tool_event 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":"crates/harness/src/core/components/code_tool.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3b7670d6fb2003f66e5657b0cdda981f672aa04ac813e9d4d5218cc901b08a"}},{"ruleId":"D1","level":"warning","message":{"text":"harness::core::components::config::validate_features (cyclomatic 16): harness::core::components::config::validate_features 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":"crates/harness/src/core/components/config.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e4a49d46de7e9b8606383b6851842abf395b01da42f9809e481e7d3e888a0c"}},{"ruleId":"D1","level":"warning","message":{"text":"llm_runtime::openai_responses::result_from_response_with_catalog (cyclomatic 16): llm_runtime::openai_responses::result_from_response_with_catalog has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/openai_responses.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cda7ec114b3aa8b5e8e127b65e3fd3eb48157501b82bd3e4ec798591851df1"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeRunner::run_attempt (cyclomatic 16): CodeRunner::run_attempt 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":"crates/temporal-runtime/src/code.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8c1d9839ff7dade4b062386927fc10363ef016f73979ae9307bcdf865dda3e"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayAgentApi::append_context (cyclomatic 16): GatewayAgentApi::append_context 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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2672}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2795c10d2199e2197105746aeaad280f8314292141cb912f02b96e14623a9ce"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionTools::read_environment_jobs (cyclomatic 16): SessionTools::read_environment_jobs 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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5751251f553b9bae812ad0ea00b26b3056e4186145c495e083aefb896f7103a"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::gateway::http::environment_route_upgrade (cyclomatic 16): temporal_runtime::gateway::http::environment_route_upgrade has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/http.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6539439bcef61de6e031fc39b483965273b3ee837648234ebe110fd0a75779"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::run_roles (cyclomatic 16): temporal_runtime::run_roles 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":"crates/temporal-runtime/src/main.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"3037e5c8733327f213581752e5187a51cbed010c8464b2a9e1a8018d62bb2815"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::worker::activities::storage::materialize_await_result (cyclomatic 16): temporal_runtime::worker::activities::storage::materialize_await_result 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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"e250bf40b240b3d27a2a3447c5497f51bfe79b5f09822ff2a6ded81e49f42d65"}},{"ruleId":"D1","level":"warning","message":{"text":"temporal_runtime::worker::activities::storage::prepare_payload_context (cyclomatic 16): temporal_runtime::worker::activities::storage::prepare_payload_context 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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e8444da263635a9fcf1fd22906dc15cae95f0a2d44b42a14153d57ef676f16"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::blobs::invoke_read (cyclomatic 16): tools::blobs::invoke_read 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":"crates/tools/src/blobs.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae8202e71cfa1b2ac6496cca41d9507a9dc0671116f94e1abc89d0585798079"}},{"ruleId":"D1","level":"warning","message":{"text":"tools::transfer::capture_selection (cyclomatic 16): tools::transfer::capture_selection 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":"crates/tools/src/transfer.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"1281e202acbe744b8b5d2177a10a150744d30890c4f708dd85803f8cac99d332"}},{"ruleId":"D1","level":"warning","message":{"text":"MemberClient.call (cyclomatic 16): MemberClient.call 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":"platform/backend/src/runtime-client.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f437ee530f58ab33e83490d6277db9c21a33d5cd9580b0ad6775169a4e29e5"}},{"ruleId":"D1","level":"warning","message":{"text":"delivery.deliver (cyclomatic 16): delivery.deliver 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":"platform/connectors/src/providers/whatsapp/delivery.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"23860e78a7ec8201021347b94812f8089e5da9f8714bb47bd10238a0ccaf8001"}},{"ruleId":"D1","level":"warning","message":{"text":"media.describeWhatsAppMedia (cyclomatic 16): media.describeWhatsAppMedia 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":"platform/connectors/src/providers/whatsapp/media.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ec266468883a58911823af8e18d18a15a1e1205f4289e9bb7b960beceac203"}},{"ruleId":"D1","level":"warning","message":{"text":"workspace-transfers.workspaceDownload (cyclomatic 16): workspace-transfers.workspaceDownload has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (collect, archive, a function literal at line 377). 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":"platform/shared/src/workspace-transfers.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f8b498881b6d4362a9304d75d36c2848d3ea05750d595b5e68168c6110ac45"}},{"ruleId":"D1","level":"warning","message":{"text":"status.botStatus (cyclomatic 16): status.botStatus 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":"platform/web/src/components/bot/status.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"522b5ffb564b717d40ce204652f199e35b424c5f02af54e2b34406815cfe1c6f"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger-summary.triggerSummary (cyclomatic 16): trigger-summary.triggerSummary 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":"platform/web/src/components/bot/trigger-summary.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c65cdafd4f593b47c18687f01769b1acfb5fab935f0e457f1f0cc4e985f4178"}},{"ruleId":"D1","level":"warning","message":{"text":"triggers.SavedTriggerFormCard (cyclomatic 16): triggers.SavedTriggerFormCard has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df9973e3aeb927642d9ad521c820f355d12220135f586a3050a552fe3249268"}},{"ruleId":"D1","level":"warning","message":{"text":"triggers.AddTriggerInline (cyclomatic 16): triggers.AddTriggerInline has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to 3 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":2488}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e61f2a351fc6c3d0e2b82cb50de10b29f32d4bdaf296453f493faa7f98d1acc"}},{"ruleId":"D1","level":"warning","message":{"text":"use-model-providers.connectedModelProviders (cyclomatic 16): use-model-providers.connectedModelProviders has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 42, 72, 93). 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":"platform/web/src/components/models/use-model-providers.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d301a12dcaa45a7bd2373f957462d06869cb640ba5bf95bc3376d2f6b5b449"}},{"ruleId":"D1","level":"warning","message":{"text":"session-actions-menu.SessionActionsMenu (cyclomatic 16): session-actions-menu.SessionActionsMenu 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":"platform/web/src/components/session/session-actions-menu.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"693897b3b576872e0a4cea7647ac8492fb80fea55371e651fa26e6f2e2f61db6"}},{"ruleId":"D1","level":"warning","message":{"text":"transcript-view.QueuedRunsBar (cyclomatic 16): transcript-view.QueuedRunsBar has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 329, 366). 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":"platform/web/src/components/session/transcript-view.tsx"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"54594fc73815932f592b0ac1b701777a3b2f0e2ce8b6225aa9ed89a8dbf5e46a"}},{"ruleId":"D1","level":"warning","message":{"text":"AdminUniversesPage.AdminUniversesPage (cyclomatic 16): AdminUniversesPage.AdminUniversesPage has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to 2 function literals 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":"platform/web/src/pages/AdminUniversesPage.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aee473915aaaa1bc4b389189b9290d998af369a856807562e4fa8780b9feb37"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsPage.Models (cyclomatic 16): ModelsPage.Models has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 4 function literals 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":"platform/web/src/pages/ModelsPage.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99a6feaa171552f9d50e7951af6fcf0f45b546aa5fbe707b4db01a1a71b072f"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway.gatewayRoutes (cognitive 249): gateway.gatewayRoutes has cognitive complexity 249 (threshold 15). Drivers by points: if/else 177 (189 pts), ternaries 25 (26 pts), boolean chains 22, error handling 8 (11 pts), loops 1 (nesting depth added 16). None of this is in the body itself: all 249 points belong to 112 function literals inside it that branch (lines 594, 1418, 1463, \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc903d67825579417a05dc48b57ac4d45609d4e6ba2ef6005580610468de706"}},{"ruleId":"D2","level":"warning","message":{"text":"workspace-transfers.WorkspaceTransfers (cognitive 159): workspace-transfers.WorkspaceTransfers has cognitive complexity 159 (threshold 15). Drivers by points: if/else 52 (59 pts), boolean chains 57, ternaries 26 (33 pts), error handling 8, loops 2 (nesting depth added 14). Of this number, 36 points are the body\u0027s own statements and 123 belong to 39 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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0876997de98cbb8287120d728a717fa8ba4cf36572ad1dc889dd4064a8b6b8b"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::admit::admit_command (cognitive 156): harness::core::admit::admit_command has cognitive complexity 156 (threshold 15). Drivers by points: if/else 58 (122 pts), match/switch 7 (15 pts), boolean chains 11, loops 3 (8 pts) (nesting depth added 77). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/harness/src/core/admit.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f18880705f05c4ede5ab2bda34e1afaad37e936fd95a3149738d26852b130e5"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::drive::tool_call_completed_proposals_inner (cognitive 124): harness::core::drive::tool_call_completed_proposals_inner has cognitive complexity 124 (threshold 15). Drivers by points: if/else 28 (95 pts), match/switch 4 (13 pts), boolean chains 8, loops 3 (8 pts) (nesting depth added 81). 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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17736e412da5930e2c6ca88c72e0a57150fb435351f60c6c9b877e97bc59858"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.createAuth.handler (cognitive 118): auth.createAuth.handler has cognitive complexity 118 (threshold 15). Drivers by points: if/else 35 (62 pts), boolean chains 29, ternaries 10 (25 pts), error handling 1 (2 pts) (nesting depth added 43). None of this is in the body itself: all 118 points belong to 2 function literals inside it that branch (lines 119, 180). 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":"platform/backend/src/auth.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77d3ff42e4aa6b021e6a417320ed44dc24f9ae820cea6b0ee79110d4f90e2f8"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.normalizeSessionConfig (cognitive 109): session-config-editor.normalizeSessionConfig has cognitive complexity 109 (threshold 15). Drivers by points: if/else 33 (74 pts), loops 9 (22 pts), ternaries 2 (7 pts), boolean chains 6 (nesting depth added 59). Of this number, 105 points are the body\u0027s own statements and 4 belong to 3 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c279a172b6cd03cd9014f3c6747e7d89c821fc8c3c6418da930e0b219e32eecc"}},{"ruleId":"D2","level":"warning","message":{"text":"McpServersPage.ServerDialog (cognitive 102): McpServersPage.ServerDialog has cognitive complexity 102 (threshold 15). Drivers by points: ternaries 33 (56 pts), boolean chains 29, if/else 15 (16 pts), error handling 1 (nesting depth added 24). Of this number, 63 points are the body\u0027s own statements and 39 belong to 11 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdf7e874d83180d201d86dd6cae07aad3f3c91993fa6a097a94e264a5205cd2"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.configError (cognitive 92): session-config-editor.configError has cognitive complexity 92 (threshold 15). Drivers by points: if/else 32 (56 pts), boolean chains 22, ternaries 5 (10 pts), loops 4 (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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"17041950567c51b691a49c920f9099d47b9832a1fa89f353b5f99027eba7abe8"}},{"ruleId":"D2","level":"warning","message":{"text":"BotCreatePage.Wizard (cognitive 87): BotCreatePage.Wizard has cognitive complexity 87 (threshold 15). Drivers by points: ternaries 30 (41 pts), boolean chains 32, if/else 9 (12 pts), error handling 1, loops 1 (nesting depth added 14). Of this number, 53 points are the body\u0027s own statements and 34 belong to 9 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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b8dcba95f5ea26d7eba86d6ae84319bd0f6ff8d47f568fd7c8b2be1139e3d6"}},{"ruleId":"D2","level":"warning","message":{"text":"universes.universeRoutes (cognitive 74): universes.universeRoutes has cognitive complexity 74 (threshold 15). Drivers by points: if/else 56 (58 pts), boolean chains 8, ternaries 6 (7 pts), error handling 1 (nesting depth added 3). None of this is in the body itself: all 74 points belong to 30 function literals inside it that branch (lines 250, 524, 569, \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b764bbb86ba8bf634733b08876d3bc791b43be2ad615fb26e9ce3074d3504257"}},{"ruleId":"D2","level":"warning","message":{"text":"session-settings-sheet.LiveSessionSetup (cognitive 69): session-settings-sheet.LiveSessionSetup has cognitive complexity 69 (threshold 15). Drivers by points: ternaries 16 (32 pts), boolean chains 22, if/else 15 (nesting depth added 16). Of this number, 45 points are the body\u0027s own statements and 24 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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fd710d1381fb0176329f8b666b8fae2b1056507b8b35ae2d56e629c17ef84d"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionsPage.SessionDetail (cognitive 68): SessionsPage.SessionDetail has cognitive complexity 68 (threshold 15). Drivers by points: boolean chains 79, ternaries 42 (68 pts), if/else 57 (67 pts), error handling 5, loops 1 (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. This shape REPEATS in the file: 2 other methods here (SessionsPage.SessionDetail::send, SessionsPage.SessionDetail::steerQueued) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb09f1f112579209bbeecab44b590e81a0dc6a615f71ce81145c5de45848c05"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.applyNonToolCallItem (cognitive 67): transcript.applyNonToolCallItem has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 16 (46 pts), if/else 6 (11 pts), boolean chains 9, match/switch 1 (nesting depth added 35). 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd87e97ce2b357bbecad002d3686a7e0dfd7fe79d60e55542815aafb54b30e5"}},{"ruleId":"D2","level":"warning","message":{"text":"composer.SessionComposer (cognitive 60): composer.SessionComposer has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 29 (50 pts), boolean chains 41, if/else 24 (25 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (composer.SessionComposer::submit) 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":"platform/web/src/components/session/composer.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"393415809d221d7ea3fc69a48299ca34e5c820e94686f1ee75866aebe55d177c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionsPage.NewSessionDialog (cognitive 60): SessionsPage.NewSessionDialog has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 20 (31 pts), boolean chains 24, if/else 5 (nesting depth added 11). Of this number, 39 points are the body\u0027s own statements and 21 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c21f08d631d21aae0fd6ee67aaa9c3621277d3b35897d99686909fc5f0b2d2"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionsPage.SessionList (cognitive 59): SessionsPage.SessionList has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 30, if/else 11 (13 pts), ternaries 11 (13 pts), loops 2, error handling 1 (nesting depth added 4). Of this number, 30 points are the body\u0027s own statements and 29 belong to 17 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"153c150a8cf6e5595381a11e26bfbff74aae5673c9169e302c3d041a5b8b3496"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.applyEvents (cognitive 57): transcript.applyEvents has cognitive complexity 57 (threshold 15). Drivers by points: if/else 10 (27 pts), ternaries 7 (21 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 34). Of this number, 45 points are the body\u0027s own statements and 12 belong 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f2b2bd56270016b812340328a0fe42e1abce86407337109eecfadea353df09"}},{"ruleId":"D2","level":"warning","message":{"text":"deleted-sessions.DeletedSessionsContent (cognitive 55): deleted-sessions.DeletedSessionsContent has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 12 (23 pts), boolean chains 15, if/else 6 (8 pts), loops 5 (7 pts), error handling 1 (2 pts) (nesting depth added 16). Of this number, 30 points are the body\u0027s own statements and 25 belong to 8 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":"platform/web/src/components/admin/deleted-sessions.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03be4d7d0c4a5e58e745fc5e46a4549cae62ec84e9c2654adea7e32a41e20b0"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::context::apply_event (cognitive 53): harness::core::components::context::apply_event has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (32 pts), boolean chains 10, loops 4 (8 pts), match/switch 2 (3 pts) (nesting depth added 23). 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":"crates/harness/src/core/components/context.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2d2d042bc04c5a4fb64d4df3f1813a594942e3947a588d387403fde7518259"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.applyItems (cognitive 53): transcript.applyItems has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (42 pts), boolean chains 8, ternaries 1 (2 pts), loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb3921b725643c72818f5d96c68da5979e9824d602fcc185c75f23709879b3b"}},{"ruleId":"D2","level":"warning","message":{"text":"Confinement::walk (cognitive 52): Confinement::walk has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (36 pts), match/switch 3 (7 pts), boolean chains 5, loops 2 (4 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":"crates/environment-daemon/src/filesystem/confinement.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b7d6d9c735f00c8bf6a9e04878d13f2488968e34472cf32e1deb81e6be02ce"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_daemon::filesystem::scan::scan_root (cognitive 50): environment_daemon::filesystem::scan::scan_root has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (34 pts), match/switch 6 (14 pts), boolean chains 1, loops 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":"crates/environment-daemon/src/filesystem/scan.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe9847e8d9148675ca4efeadad5cfa4d9cb3f71b29faf0d0c18d20360c85c5b"}},{"ruleId":"D2","level":"warning","message":{"text":"llm_runtime::compaction::compact (cognitive 50): llm_runtime::compaction::compact has cognitive complexity 50 (threshold 15). Drivers by points: if/else 11 (37 pts), loops 3 (6 pts), boolean chains 4, match/switch 1 (3 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/compaction.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a8c4d27c511681abbc65afa48cc29664d393155346f2e2d134c7354ec9b01d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).outputHelper (cognitive 48): (anonymous).outputHelper has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 8, loops 3 (6 pts), ternaries 3 (nesting depth added 16). None of this is in the body itself: all 48 points belong to one function literal inside it that branches (line 100). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemode/src/prelude.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d177c7f031f4d8320ac0437f91d5205c14c70ccc02f7873c82e1022c46858e42"}},{"ruleId":"D2","level":"warning","message":{"text":"Publish::append (cognitive 47): Publish::append has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (40 pts), boolean chains 6, 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":"crates/environment-daemon/src/filesystem/transfer/publish.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"940887a33681725b5e68beab9c1245e743093d0d0ed4fadd829bdb6b08a118ab"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::connection::handle (cognitive 46): cli::connection::handle has cognitive complexity 46 (threshold 15). Drivers by points: if/else 24 (38 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (nesting depth added 16). 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":"crates/cli/src/connection.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bba55c55d707e2616b47696a75aeef3ec76096564d7c74f3c9b37408c8e5fb"}},{"ruleId":"D2","level":"warning","message":{"text":"setup.OtherBotsSection (cognitive 46): setup.OtherBotsSection has cognitive complexity 46 (threshold 15). Drivers by points: boolean chains 21, if/else 8 (13 pts), ternaries 8 (12 pts) (nesting depth added 9). Of this number, 26 points are the body\u0027s own statements and 20 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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1e8df7ca15239974cde8d97a42e098c605a68e7209d816346f77b667145792"}},{"ruleId":"D2","level":"warning","message":{"text":"tail.useSessionTail (cognitive 45): tail.useSessionTail has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 9, error handling 2 (4 pts), ternaries 2 (3 pts), loops 2 (nesting depth added 18). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 96, 46, 56, \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":"platform/web/src/lib/sessions/tail.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7177fc9463ebc1deb7a1c7dec2945bc9fc251e9430ca7254d1513ecc866119"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway.withGateway (cognitive 44): gateway.withGateway has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (39 pts), ternaries 1 (3 pts), boolean chains 1, error handling 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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6233cb22b8c789960e3eed66b0299846832280037d8ad2eadb52744eeca31e7"}},{"ruleId":"D2","level":"warning","message":{"text":"tool-picker.ToolPicker (cognitive 44): tool-picker.ToolPicker has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 18 (25 pts), boolean chains 13, if/else 5 (6 pts) (nesting depth added 8). Of this number, 27 points are the body\u0027s own statements and 17 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/mcp/tool-picker.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb33ab4e5542785d5ca08114bf17508c012db5fa7aee3365dea814738ff7e37"}},{"ruleId":"D2","level":"warning","message":{"text":"run-sections.sectionsByRun (cognitive 44): run-sections.sectionsByRun has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 9, ternaries 3 (4 pts), loops 2 (nesting depth added 15). Of this number, 35 points are the body\u0027s own statements and 9 belong to 2 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":"platform/web/src/lib/sessions/run-sections.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea2501f776851ca95333a11dab0b956d8ac8947fea56f064194553704f3dc3d"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::turn::apply_event (cognitive 43): harness::core::components::turn::apply_event has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (38 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/harness/src/core/components/turn.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed5b5acd33ae7605cc7cca08008088b099ccfc0e994f7105893f842591e9c36"}},{"ruleId":"D2","level":"warning","message":{"text":"JobManager::read (cognitive 42): JobManager::read has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 5 (10 pts), loops 7 (8 pts), boolean chains 4 (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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1b013cba928d8d91e68e3c3866b75e56337b28614ebe54aee0049951158299"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlSession::run (cognitive 42): ControlSession::run has cognitive complexity 42 (threshold 15). Drivers by points: if/else 8 (25 pts), match/switch 4 (14 pts), boolean chains 2, loops 1 (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":"crates/temporal-runtime/src/gateway/registration.rs"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e83751136aa564c700c183d3c32d83e81f3c5313c3897b72ad92b38e18ef3f8"}},{"ruleId":"D2","level":"warning","message":{"text":"session-resources.sessionResources (cognitive 42): session-resources.sessionResources has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 11 (28 pts), if/else 8 (10 pts), boolean chains 4 (nesting depth added 19). Of this number, 16 points are the body\u0027s own statements and 26 belong to 3 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":"platform/web/src/lib/sessions/session-resources.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e1875fd4d17e330d09f632d4d775c4401185cb9f59d5d0b9c04a0504803465"}},{"ruleId":"D2","level":"warning","message":{"text":"bots::validate::validate_poll_source (cognitive 41): bots::validate::validate_poll_source has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 8, loops 2 (4 pts), match/switch 1 (nesting depth added 19). 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":"crates/bots/src/validate.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"999870364332ae578ee4e66a8a1b52902191f156f207ba7f8e1d91ccaa095b3e"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.createAuth (cognitive 41): auth.createAuth has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 11 (14 pts), boolean chains 13, if/else 9 (12 pts), error handling 1 (2 pts) (nesting depth added 7). Most of this is not in the body itself: 8 of the 41 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 76, 61, 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":"platform/backend/src/auth.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"73421af2bada51f092a186ca3df2239ddc438bf0ff0a420e914166635d8bf56b"}},{"ruleId":"D2","level":"warning","message":{"text":"codemode::engine::run_context (cognitive 40): codemode::engine::run_context has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (31 pts), match/switch 4 (6 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemode/src/engine.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c1f67500d78f267a8c1446232c72c82897fa3c50ff194fdaf7108562a0d7a8"}},{"ruleId":"D2","level":"warning","message":{"text":"Publish::scan_step (cognitive 40): Publish::scan_step has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 3 (9 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/filesystem/transfer/publish.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"916b06910b15c68cbd5b86e75fe6c2f9f4019b712359a2e9a7d9e44422d8dcc4"}},{"ruleId":"D2","level":"warning","message":{"text":"connector.createWhatsAppConnector.run (cognitive 40): connector.createWhatsAppConnector.run has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 13 (17 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 14). Most of this is not in the body itself: 1 of the 40 points is its own statement and the rest belongs to 4 function items inside it that branch (a function literal at line 114, a function literal at line 209, a function literal at line 90, \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":"platform/connectors/src/providers/whatsapp/connector.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"824b38cc780418ebf844796027064e840802831ed3e81bd855fa5db495019d77"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminUsersPage.EditUserDialog (cognitive 40): AdminUsersPage.EditUserDialog has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 15, ternaries 7 (8 pts) (nesting depth added 3). Most of this is not in the body itself: 15 of the 40 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 200, a function literal at line 188, a function literal at line 233, \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":"platform/web/src/pages/AdminUsersPage.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e35bacae43a9c5f4a04a08e5a04c0bf49ed13fcc67ea176f0923ca4e7549ff"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreAgentProjector::project_tool_batches_for_run (cognitive 37): CoreAgentProjector::project_tool_batches_for_run has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 4 (8 pts), match/switch 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/api-projection/src/lib.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48e8a9b9feac0da0cc682b156ab175b71420e68904ef95074809231453cfb77"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.reconcileRuns (cognitive 37): transcript.reconcileRuns has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 8, ternaries 2 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1088ef0159c51bec6983c2dae7d6c6a9b776b2e683ae94fcc334997a232a4c"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfilesPage.ProfileEditor (cognitive 37): ProfilesPage.ProfileEditor has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 10, ternaries 3 (5 pts), error handling 2 (3 pts) (nesting depth added 5). Most of this is not in the body itself: 11 of the 37 points are its own statements and the rest belongs to 8 function items inside it that branch (submit, switchTab, a function literal at line 244, \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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea443bb955278986a49ce426f63ed52c0fcd9adf82bc97411fb3c6903937b56"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspacesPage.FileDetail (cognitive 37): WorkspacesPage.FileDetail has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 20, ternaries 9, if/else 8. Of this number, 20 points are the body\u0027s own statements and 17 belong to 8 function literals 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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc341cec6d956853bd853e0b070161649e913dfccc18e3cffacd3e96b1690e62"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::workflow_tool::validate_recorded_invocation (cognitive 36): harness::core::components::workflow_tool::validate_recorded_invocation has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 4, match/switch 2 (4 pts), loops 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":"crates/harness/src/core/components/workflow_tool.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be58d952f4b8efc418a8b8ced693920ff2467b5a270b6509df9c4f2b0105034"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvironmentJobWorkflow::run (cognitive 35): EnvironmentJobWorkflow::run has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 5 (11 pts), boolean chains 6, loops 3 (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":"crates/temporal-workflow/src/workflows/environment_job.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaf359c0fbb027789611c5c1f1eadd1f8bc345734b423cb7890ff8d4825e4ec"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::session::code_tools::run_dispatch_loop (cognitive 35): temporal_workflow::workflows::session::code_tools::run_dispatch_loop has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 4 (10 pts), loops 4 (7 pts), boolean chains 3 (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":"crates/temporal-workflow/src/workflows/session/code_tools.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16e198900198d00352c9df671a2ab394429302bc9339cb52b09496fdea894d5"}},{"ruleId":"D2","level":"warning","message":{"text":"triggers.TriggersSection (cognitive 35): triggers.TriggersSection has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 12 (22 pts), boolean chains 13 (nesting depth added 10). Most of this is not in the body itself: 10 of the 35 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 852, 877). 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"74588e2ebb9f023e60037bc6f6ebfe0da5dfa5330b6ea25475514faac4bfeb1d"}},{"ruleId":"D2","level":"warning","message":{"text":"reply-copy.replyFormatted (cognitive 35): reply-copy.replyFormatted has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 6, loops 3 (5 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 14). Of this number, 25 points are the body\u0027s own statements and 10 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":"platform/web/src/components/session/reply-copy.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdaaff750c9e12ef2e9681f9241d1fa482b15b8c4b20c6469829a442c1df390"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::chat::tui::app::spawn_driver_task (cognitive 34): cli::chat::tui::app::spawn_driver_task has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 3 (9 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/chat/tui/app.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec067cbc65890117b850b58c7319576bdb478d689786f859d6a6706e05d2a401"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::run::apply_event (cognitive 34): harness::core::components::run::apply_event has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (32 pts), boolean chains 1, match/switch 1 (nesting depth added 16). 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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9f63b6f237b44777217deef143c552d742c11a8902b7aaa1bf2dc6ea47dbf8"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::tooling::park_tool_batch (cognitive 34): harness::core::components::tooling::park_tool_batch has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 7, match/switch 2 (4 pts), loops 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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cef0f5ce83e2e333baaa303c576dc6c75e93cf9491d2046d36658f70ac6d84e"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::mcp::visible_mcp_result (cognitive 34): temporal_runtime::worker::mcp::visible_mcp_result has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (24 pts), match/switch 3 (9 pts), 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":"crates/temporal-runtime/src/worker/mcp.rs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc06145a25b11e590d17b60241903684279e8a07d19fa1c158ebb94a3e354f72"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::session::admissions::admit_admissions (cognitive 33): temporal_workflow::workflows::session::admissions::admit_admissions has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (24 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-workflow/src/workflows/session/admissions.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ab8409d9b468b83634081bcf8a18c97a7acae8d150be43907c3b632cc0a63f"}},{"ruleId":"D2","level":"warning","message":{"text":"bots::validate::validate_trigger_document (cognitive 32): bots::validate::validate_trigger_document has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 5, match/switch 3 (5 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":"crates/bots/src/validate.rs"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbf4beac9e446a34afe8db9616756534d9439bbf2c94dfcaebb487fefcf632c"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptState::apply_chat_event (cognitive 32): TranscriptState::apply_chat_event has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 4 (7 pts), loops 1 (2 pts) (nesting depth added 17). 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":"crates/cli/src/chat/tui/transcript.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1270c5778b7bf66d4524e6665f7b3e9faba8e87203c1bbc22639db36edd7f2"}},{"ruleId":"D2","level":"warning","message":{"text":"llm_runtime::anthropic_messages::materialize_tools (cognitive 32): llm_runtime::anthropic_messages::materialize_tools has cognitive complexity 32 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (9 pts), match/switch 3 (8 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a2faddfdcab172f8c838f5efc5f28db18eb72d4c3f9f7b4bc87d91a80d93cd"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionTools::read_environment_jobs (cognitive 32): SessionTools::read_environment_jobs has cognitive complexity 32 (threshold 15). Drivers by points: match/switch 7 (17 pts), if/else 8 (14 pts), loops 1 (nesting depth added 16). 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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd64b6db36161475d8d996c354b04bf84ead47882bd45e4df3956e8f90e919a6"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionTools::invoke_workflow_tool_call (cognitive 32): SessionTools::invoke_workflow_tool_call has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 4 (6 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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f2da053694c2763bdb4788121a113fb5d7bedc90d114363e15718a3c268cf1"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::fs::apply_patch::seek_sequence::seek_sequence (cognitive 32): tools::fs::apply_patch::seek_sequence::seek_sequence has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 7 (10 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/apply_patch/seek_sequence.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a9d3380ad43660791c4d105eb83636c3014e1426d093bb5a08779139ac0b76"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::fs::tools::shared::collect_file_paths_bounded (cognitive 32): tools::fs::tools::shared::collect_file_paths_bounded has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 4 (5 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/tools/shared.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a57701494e1665fc510209bbd1f77ae74052f36a24830948ee28dcca3f1a42d"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::workflow_tool::derive_completion_keys_from_source (cognitive 32): tools::workflow_tool::derive_completion_keys_from_source has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 16). 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":"crates/tools/src/workflow_tool.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"a773f83778b364035abde25433cd67a75380eeb035e455118fbd395c1df46db0"}},{"ruleId":"D2","level":"warning","message":{"text":"bots.botRoutes (cognitive 32): bots.botRoutes has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, boolean chains 6, ternaries 1. None of this is in the body itself: all 32 points belong to 17 function literals inside it that branch (lines 257, 74, 182, \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef33ac65fdd636d87269b55d7f1409b7060972c07ce7b783825bdd61b111bf49"}},{"ruleId":"D2","level":"warning","message":{"text":"workspace-transfers.prepareWorkspaceUpload (cognitive 32): workspace-transfers.prepareWorkspaceUpload has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (4 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 17). Of this number, 28 points are the body\u0027s own statements and 4 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":"platform/shared/src/workspace-transfers.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3916d23d15c9d7b5ed016ca6e331c03381d70e2d392ec7e7e87313ca372b82d0"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreAgentProjector::project_event_kind (cognitive 31): CoreAgentProjector::project_event_kind has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 15 (31 pts) (nesting depth added 16). 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":"crates/api-projection/src/lib.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df4a530f8c929c42481168a0ab542004cefdfc245b6accd5ec5906c30ac03cd"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::callable::resolve (cognitive 31): tools::callable::resolve has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 6 (18 pts), if/else 6 (8 pts), loops 3 (5 pts) (nesting depth added 16). 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":"crates/tools/src/callable.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdba7df6692e6ecd765c924cf40ee570b71d0f53cb8722ebea5dced1a17cc2dd"}},{"ruleId":"D2","level":"warning","message":{"text":"connector.toInboundMessage (cognitive 31): connector.toInboundMessage has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 22 (31 pts) (nesting depth added 9). Of this number, 29 points are the body\u0027s own statements and 2 belong 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":"platform/connectors/src/providers/telegram/connector.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e65a6a46381f124f950a090d7ddcaf1241af23caa33928213e60afb32dbda1"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionsPage.SessionDetail::steerQueued (cognitive 31): SessionsPage.SessionDetail::steerQueued has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (21 pts), ternaries 2 (5 pts), boolean chains 4, 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. This shape REPEATS in the file: 2 other methods here (SessionsPage.SessionDetail, SessionsPage.SessionDetail::send) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d793cf439a3a8de12885e9ace92c1aa03e6893e308815e968db7cb932a0a2f8"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::tooling::plan_next (cognitive 30): harness::core::components::tooling::plan_next has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 2, match/switch 1 (2 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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c7932b0583f30c3b2b2fb216df36ba2cbb8f7dc6849973d9cb1d7b0ae0a1a8"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::drive::tool_batch_parked_proposals (cognitive 30): harness::core::drive::tool_batch_parked_proposals has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 4 (7 pts), boolean chains 5 (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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e317dd4631edab8585d75a415f86412f7318969b708de7c3c7669af192f2b1b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionTools::invoke_environment_control_call (cognitive 30): SessionTools::invoke_environment_control_call has cognitive complexity 30 (threshold 15). Drivers by points: match/switch 11 (20 pts), if/else 5 (8 pts), loops 1 (2 pts) (nesting depth added 13). 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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15c9f11b35b6461abc57b0d7f1279ebf9feccd18e4cc67110e75005bc38a963"}},{"ruleId":"D2","level":"warning","message":{"text":"bots::render::render_node (cognitive 29): bots::render::render_node has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (4 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/bots/src/render.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"298121565944213e832b92cfa755131383aecbb4aba41bd5cd227ebb11841309"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::wait_for_context_append_outcomes (cognitive 29): GatewayAgentApi::wait_for_context_append_outcomes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (6 pts) (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. This shape REPEATS in the file: one other method here (GatewayAgentApi::wait_for_context_keys_removed) 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":"crates/temporal-runtime/src/gateway/service/workflow.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3783b897eeadc511998b8947682ef2b11e9c44f41425eba026b27627391219"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::wait_for_context_keys_removed (cognitive 29): GatewayAgentApi::wait_for_context_keys_removed has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 3 (6 pts) (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. This shape REPEATS in the file: one other method here (GatewayAgentApi::wait_for_context_append_outcomes) 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":"crates/temporal-runtime/src/gateway/service/workflow.rs"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19a5faa05311ef6074c3c37778a7d8e6a19b7fccfd6fe6dea6c957cd626d4ad"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::activities::storage::prepare_payload_context (cognitive 29): temporal_runtime::worker::activities::storage::prepare_payload_context has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 4 (11 pts), boolean chains 1, loops 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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4298a50e47846ccb08bc929b1e6fd293a03e85d6f698d050b610157684ebbfa2"}},{"ruleId":"D2","level":"warning","message":{"text":"model-api-key.ProviderModelList (cognitive 29): model-api-key.ProviderModelList has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (23 pts), boolean chains 6 (nesting depth added 15). Of this number, 21 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"a550c90e7a6f2cd6f594ee3f0f4ead22f475a20d66117ab7cef1a6b7f00d40c7"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.ModelFields (cognitive 29): session-config-editor.ModelFields has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12, ternaries 8 (10 pts), boolean chains 7 (nesting depth added 2). Most of this is not in the body itself: 14 of the 29 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 929, 906, 889, \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e905aa9bfd5ed99d30d5a7d053a3301b66adfaa335cfc991a96fab79f5c813"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspacesPage.WorkspacesPage (cognitive 29): WorkspacesPage.WorkspacesPage has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (13 pts), boolean chains 9, if/else 6 (7 pts) (nesting depth added 8). Of this number, 24 points are the body\u0027s own statements and 5 belong to 3 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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9a425f6f2271d6f296ad4940a1f20ea9bf71e890b4be6611c4854ac427d170"}},{"ruleId":"D2","level":"warning","message":{"text":"JobManager::schedule (cognitive 28): JobManager::schedule has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (5 pts), boolean chains 4, match/switch 1 (2 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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"345fe43ab02d16c54a2cbc8ec3f248a13525819bc12da885f00c7bef015c330d"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_daemon::filesystem::search::search_text (cognitive 28): environment_daemon::filesystem::search::search_text has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), match/switch 2 (4 pts), boolean chains 2, 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":"crates/environment-daemon/src/filesystem/search.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"863a714464db9ae915e273ab4b16c44e9d84b862022c1a8fd2843db04cdbef8a"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_provider_incus::edge::proxy_websocket (cognitive 28): environment_provider_incus::edge::proxy_websocket has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 5 (16 pts), if/else 3 (9 pts), boolean chains 2, loops 1 (nesting depth added 17). 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":"crates/environment-provider-incus/src/edge.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd48bfa456a567c7c8fd8c0f75e054a9096f2b65c455192299eb9d2d28105f8c"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeRunner::run_attempt (cognitive 28): CodeRunner::run_attempt has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 5 (10 pts), boolean chains 2, 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":"crates/temporal-runtime/src/code.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f746ab37cba5a0df7e3d25ec79818f2f3bbdf552d3c01bdf8bd508cac3e4f30"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::decide_run_approvals (cognitive 28): GatewayAgentApi::decide_run_approvals has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 4 (8 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":3189}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaca6832ce05e2b3c7415d4a923eb6fed7fb002e22a32eddbffbeacb2d2f4e25"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::activities::environment_jobs::poll_jobs (cognitive 28): temporal_runtime::worker::activities::environment_jobs::poll_jobs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 5 (7 pts), match/switch 2 (7 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/environment_jobs.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b65686755f1b058de1a1029dbb33a7ba23820358a8023eee86cb3b17c46d9bf"}},{"ruleId":"D2","level":"warning","message":{"text":"LightspeedClient.awaitRun (cognitive 28): LightspeedClient.awaitRun has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/typescript/src/client.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"803e2691a04880753dcf098563beb5c242ddecf94aef7ca8dc1adea91e998a12"}},{"ruleId":"D2","level":"warning","message":{"text":"model-defaults.DefaultModelDialog (cognitive 28): model-defaults.DefaultModelDialog has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 11 (15 pts), boolean chains 8, if/else 4, error handling 1 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 13 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":"platform/web/src/components/models/model-defaults.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4b053852e35f71b8aa63484909575bb854d3ae986245e71f11cd811e77701f"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.VfsFields (cognitive 28): session-config-editor.VfsFields has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (15 pts), boolean chains 6, if/else 4 (5 pts), loops 2 (nesting depth added 9). Most of this is not in the body itself: 8 of the 28 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1428, 1462, 1384, \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1697ba9e8b3eb899f12c92bbd1745e159fcd347532a7e5260ca9f598ff17f45"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessManager::read (cognitive 27): ProcessManager::read has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5, match/switch 3 (5 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/process.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"884462355b16e0248e9b345fc31d8901a1b286adf213d02b3fa7b79d93660846"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderArgs::load (cognitive 27): ProviderArgs::load has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 3, loops 2, match/switch 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":"crates/environment-provider-incus/src/config.rs"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aec11bddda810aefe7f5fb7d507d2a9de10e16dcdacd0846eb3bb56770e00ab"}},{"ruleId":"D2","level":"warning","message":{"text":"llm_runtime::openai_completions::materialize_message (cognitive 27): llm_runtime::openai_completions::materialize_message has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 9). 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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0c6ded53d8cb126c4bcd215ec99401d6971892372a1186019514f1952b871b"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::replace_context (cognitive 27): GatewayAgentApi::replace_context has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 3 (7 pts), loops 3 (5 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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eedc9240b172d355a799c7900b48c42b816f9eedbddf0db0a0d91c2f2c56d10"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::activities::context_refresh::refresh_context (cognitive 27): temporal_runtime::worker::activities::context_refresh::refresh_context has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (23 pts), match/switch 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/context_refresh.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b3d20d70096bc243b79dae7ab27606ab587c3d632262cc88e5b4d3d021ca36"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger-summary.deliverySentence (cognitive 27): trigger-summary.deliverySentence has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 9 (10 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/bot/trigger-summary.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f77f984ad4cdcea3353816e6a4daf6a152cf49a4da0a7be9d4f515150300d0"}},{"ruleId":"D2","level":"warning","message":{"text":"resize-handle.ResizeHandle (cognitive 27): resize-handle.ResizeHandle has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 6, ternaries 5 (6 pts) (nesting depth added 2). Most of this is not in the body itself: 5 of the 27 points are its own statements and the rest belongs to 8 function items inside it that branch (key, a function literal at line 196, a function literal at line 207, \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":"platform/web/src/components/resize-handle.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec938f6b3870d87baa91769d409001131099e19cb41aaf0dad863bd19cdaf62"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessManager::maintain (cognitive 26): ProcessManager::maintain has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 4, 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":"crates/environment-daemon/src/process.rs"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"673db124e297f59f2b29f4d4115c64b4ffd3f096e03d52c2fb6e703d5cdb3152"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_provider_incus::server::connection (cognitive 26): environment_provider_incus::server::connection has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 3 (10 pts), loops 2, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"1943055ca70fef214cace86f4d7e8b9302ced2b5f67de716e573c3ddf8b0cf3d"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::code_tool::apply_code_tool_event (cognitive 26): harness::core::components::code_tool::apply_code_tool_event has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (22 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 14). 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":"crates/harness/src/core/components/code_tool.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb664973cecaca96aa55862fdb2f92e183a430efab0e0462af8056152df7fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::gateway::http::proxy_frames (cognitive 26): temporal_runtime::gateway::http::proxy_frames has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 3 (8 pts), boolean chains 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/http.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed91b0e2a11b634d2fa045005e7e53a7780b0b5feffabe43bfaa33c107429a5"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::run_api_key_command (cognitive 26): temporal_runtime::run_api_key_command has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 3 (5 pts), loops 2 (4 pts), boolean chains 2 (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":"crates/temporal-runtime/src/main.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"13771fc2af95c8ef61cdbd9de242445681a25acc9e013a502fd504047b37aa50"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentExecutionWorkflow::run (cognitive 26): SubagentExecutionWorkflow::run has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 9 (15 pts), if/else 6 (7 pts), boolean chains 2, loops 2 (nesting depth added 7). 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":"crates/temporal-workflow/src/workflows/subagent_execution.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e0c4894af16535329b31bae16631ffa1873f1d062491e64f5e8dae75350c39"}},{"ruleId":"D2","level":"warning","message":{"text":"server.createRpcProxy.\u003Creturned closure\u003E (cognitive 26): server.createRpcProxy.\u003Creturned closure\u003E has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 6 (9 pts), boolean chains 3, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/typescript/src/server.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afd2fcb0ad098f1b2e7e652f1a8fba74ef01d77bbdf8628f7fd65e623cb7384"}},{"ruleId":"D2","level":"warning","message":{"text":"company-identity.companyClaimsReader.\u003Creturned closure\u003E (cognitive 26): company-identity.companyClaimsReader.\u003Creturned closure\u003E has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 8 (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":"platform/backend/src/company-identity.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a12226972a3786f5902815b70f6ca69bc2774e28d6467e9b9e578d77ea97af"}},{"ruleId":"D2","level":"warning","message":{"text":"composer-model-picker.ModelPicker (cognitive 26): composer-model-picker.ModelPicker has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, ternaries 8 (11 pts), if/else 2, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 74, save, a function literal at line 85, \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":"platform/web/src/components/session/composer-model-picker.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0f5fc4f392906961501887af67c06a0c6f527a566d9bd399914f122c222346"}},{"ruleId":"D2","level":"warning","message":{"text":"session-resources.SessionResourceChips (cognitive 26): session-resources.SessionResourceChips has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 26. 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":"platform/web/src/components/session/session-resources.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5390dd6b53edecdf5c1015eddeeb48f27ddd98e5cf150d35b41464738efa848f"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::chat::tui::insert_history::insert_history_lines_with_mode (cognitive 25): cli::chat::tui::insert_history::insert_history_lines_with_mode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 4 (10 pts), boolean chains 1, match/switch 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":"crates/cli/src/chat/tui/insert_history.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4370ff663ff782ec2a355d951c1ae3756945bf83515946c3b5d448d47e7b1a"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::codec::core_agent_event_envelope_kind (cognitive 25): harness::core::codec::core_agent_event_envelope_kind has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 13 (25 pts) (nesting depth added 12). 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":"crates/harness/src/core/codec.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55f5b2bc6e8ca040aec422a3b72f97142ffa4c00ed9dda66ba2a224904c52bc"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::approval::apply_approval_event (cognitive 25): harness::core::components::approval::apply_approval_event has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 9). 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":"crates/harness/src/core/components/approval.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7d2d609172ba356eb3fb909e81725d4dcf91329ea556b835680c472f5c0940"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSessionWorkflow::run (cognitive 25): AgentSessionWorkflow::run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 3 (4 pts), boolean chains 3, 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":"crates/temporal-workflow/src/workflows/session/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1572ac295f017255e5e3706bc78cf39013ccb44a8ce08dbf4fd0cf51181872d4"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::transfer::materialize_selection (cognitive 25): tools::transfer::materialize_selection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 3 (5 pts), match/switch 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/transfer.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"294e401e1696adfda75a5d42aa2353b946d9b9340619f279f82259fe63b4ac12"}},{"ruleId":"D2","level":"warning","message":{"text":"setup.SessionProfileSection (cognitive 25): setup.SessionProfileSection has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 14, ternaries 7 (8 pts), if/else 3 (nesting depth added 1). Of this number, 18 points are the body\u0027s own statements and 7 belong to 4 function literals 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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17b4cb41f6be4831140089f398653eb770d9acbc59f4e3a73f08a5f936e7d2f"}},{"ruleId":"D2","level":"warning","message":{"text":"detail.BotDetail (cognitive 25): detail.BotDetail has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 9, if/else 2 (nesting depth added 4). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 218, setSettingsOpen, sessionHref). 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":"platform/web/src/components/bot/detail.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"469f44dd07d692175e02c74aadff5619c072c91bc8b86d941f1ae4924576b648"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvironmentsPage.EnvironmentList (cognitive 25): EnvironmentsPage.EnvironmentList has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 21, ternaries 3, if/else 1. Of this number, 20 points are the body\u0027s own statements and 5 belong to 6 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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa317c8963dd2660887072d757dbb1d4ee53bea306b4082799909cd02a942e20"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).clone (cognitive 25): (anonymous).clone has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8, loops 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/codemode/src/prelude.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9cb1848d9a6ee4ae2884f297a4d5e3580b239295ef9e9e3cc46cd6c8b6f5b1"}},{"ruleId":"D2","level":"warning","message":{"text":"api_projection::tool_call_display (cognitive 24): api_projection::tool_call_display has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 4 (7 pts), boolean chains 1 (nesting depth added 9). 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":"crates/api-projection/src/lib.rs"},"region":{"startLine":2991}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fcf084413788559e38c100fc1a230682fb4dfb06dd3f2eb58e8b28b2535cd9"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::activities::storage::materialize_await_result (cognitive 24): temporal_runtime::worker::activities::storage::materialize_await_result has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 4 (11 pts), if/else 7 (10 pts), loops 2, boolean chains 1 (nesting depth added 10). 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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8b2614be7b33f5985b193095d5bb652081f3e9078005a061eb1b56bb743d37"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::session::drive::drive_until_idle (cognitive 24): temporal_workflow::workflows::session::drive::drive_until_idle has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 2 (5 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":"crates/temporal-workflow/src/workflows/session/drive.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c09a1c71af79a065b2e07a84e64ac6d8302917ba87d25536abdae97c6260ab"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::definitions::resolve (cognitive 24): tools::definitions::resolve has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 3 (6 pts), boolean chains 3, loops 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":"crates/tools/src/definitions.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d81a459a975d4e2e1c9249679ee09a6bd0bce4111e4961dbb5348054abf3df"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::fs::tools::grep::bounded_generic_grep (cognitive 24): tools::fs::tools::grep::bounded_generic_grep has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 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":"crates/tools/src/fs/tools/grep.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4201386e3cb6ef09e8fa08f013ff88c13fe42fa9593a2e68c6a7a804ea037580"}},{"ruleId":"D2","level":"warning","message":{"text":"env.loadOidc (cognitive 24): env.loadOidc has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 15, if/else 8, 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":"platform/backend/src/env.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce48180320c3d183b91bcf388aad9677face3008e5bdaad5c32fe2f51ab60a6"}},{"ruleId":"D2","level":"warning","message":{"text":"triggers.triggerDraftSummary (cognitive 24): triggers.triggerDraftSummary has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 9 (21 pts), boolean chains 2, 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe188350ec546f6587bb5b8fdaf736f963943570d23e8479dcfe91c79474024b"}},{"ruleId":"D2","level":"warning","message":{"text":"delete-session-dialog.DeleteSessionDialog (cognitive 24): delete-session-dialog.DeleteSessionDialog has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 7 (11 pts), if/else 7, boolean chains 6 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 10 belong to 3 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":"platform/web/src/components/session/delete-session-dialog.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a34b623c616122eefae9f3720b73fbd5416e82e67a8eb770a35d79e5829e315"}},{"ruleId":"D2","level":"warning","message":{"text":"workspace-transfers.WorkspaceActionsMenu (cognitive 24): workspace-transfers.WorkspaceActionsMenu has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 16, ternaries 5 (7 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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcb489045bda1abffbac7b4ddc3db11caf65454cbaa470d1d6a4a3a002021c3"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::administration_cli::universe (cognitive 23): cli::administration_cli::universe has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 9). 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":"crates/cli/src/administration_cli.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"69edc2d64b17ba61894aa559bb7f47b169b86a91835c4d3b28f520ff163cd1b2"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::context::standalone_prefix_ids (cognitive 23): harness::core::components::context::standalone_prefix_ids has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (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":"crates/harness/src/core/components/context.rs"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"59300c86c1853bc3257e6489ba6f8d3c65c9ac9ccba86ea8dda3182d89fc65ec"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::tooling::apply_event (cognitive 23): harness::core::components::tooling::apply_event has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2, match/switch 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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9574d0edf11b0e84171f14a8dc6fc7f565cc5f2b8aaa466becebdf20ef67cd7"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::put_bot_trigger_record (cognitive 23): GatewayAgentApi::put_bot_trigger_record has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 6 (10 pts), boolean chains 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":"crates/temporal-runtime/src/gateway/service/bots_api.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"513e436f436ebcf8b11d6ac0dd3a565b56dbd7a6506ba4969de6f1a3b53e34df"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::append_context (cognitive 23): GatewayAgentApi::append_context has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 4 (9 pts), loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2672}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07a942b2dc8fe8e3c9f34cfd2f9ce3f5a282632d34f822567c95d7ba02e70a4"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeMcpExecutor::find_tools (cognitive 23): RuntimeMcpExecutor::find_tools has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (5 pts), match/switch 2 (4 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":"crates/temporal-runtime/src/worker/mcp.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd26cdc2545ad1970307cc01d21552c69673ae07996ef6736c1cb658f3423c6"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::environments::fake_controller::serve (cognitive 23): temporal_runtime::environments::fake_controller::serve has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (10 pts), boolean chains 1, 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":"crates/temporal-runtime/src/environments/fake_controller.rs"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9a08ffe186837c417fcb4249fa5979fd911cd336b24dde67f8b2d4d6fba05e"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::skills::environment::environment_skill_catalog (cognitive 23): tools::skills::environment::environment_skill_catalog has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 pts), match/switch 2 (4 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":"crates/tools/src/skills/environment.rs"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b376d5966b2afc1c7dd63f41254c3050882b2c3299bb5f6857c64b9dac3d3b6f"}},{"ruleId":"D2","level":"warning","message":{"text":"setups.setupRoutes (cognitive 23): setups.setupRoutes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (7 pts), boolean chains 2, error handling 2 (nesting depth added 9). None of this is in the body itself: all 23 points belong to 2 function literals inside it that branch (lines 83, 74). 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":"platform/backend/src/routes/setups.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5dc9e0115517a071d3008dc1e0e9dc5c59ce0d69a8b55238ea4ed0e13dfb2f"}},{"ruleId":"D2","level":"warning","message":{"text":"activity.BotActivity (cognitive 23): activity.BotActivity has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, loops 4 (6 pts), ternaries 5 (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 7 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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e628afc2cd7006fd4a535190878881049e8696bc9302238656d7439902524a9"}},{"ruleId":"D2","level":"warning","message":{"text":"environment-card.BotEnvironmentCard (cognitive 23): environment-card.BotEnvironmentCard has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 8 (18 pts), boolean chains 5 (nesting depth added 10). 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":"platform/web/src/components/bot/environment-card.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f938d02d8564c431dff675c1785de38019f3af9060d946a6b4a15d0b1b19ec12"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger-summary.triggerSummary (cognitive 23): trigger-summary.triggerSummary has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (20 pts), if/else 1 (2 pts), 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":"platform/web/src/components/bot/trigger-summary.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a900bcc6d327a5ccc52d449a4af28a2588ba89131ed47703f227e187ac81871"}},{"ruleId":"D2","level":"warning","message":{"text":"model-api-key.OpenAiCompatibleForm (cognitive 23): model-api-key.OpenAiCompatibleForm has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (12 pts), boolean chains 6, if/else 5 (nesting depth added 2). Most of this is not in the body itself: 11 of the 23 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 380, a function literal at line 409, changeProvider). 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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ab9a8e14e7bc5d5cc10845f96b0874a6308a46026e9124c558081cbb6ec7e1"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.workspaceAttachmentsError (cognitive 23): session-config-editor.workspaceAttachmentsError has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfddd638b3f9ec8a40d984cabaedfa08e73cab54d690c91ac7345834d114de7e"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginPage.LoginPage (cognitive 23): LoginPage.LoginPage has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, ternaries 4 (6 pts), if/else 4, error handling 2 (nesting depth added 2). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 4 function items inside it that branch (companySignIn, submit, 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":"platform/web/src/pages/LoginPage.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3269d5a8c9e6a15c69c4da3f7ea1a1e98b1c467730096e53ea11ec616751063b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSessionDriver::project_turns (cognitive 22): ChatSessionDriver::project_turns has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (18 pts), match/switch 1 (3 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":"crates/cli/src/chat/driver.rs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2f0760811cdee0648f0c3899a5faf37743ed98991b5ec0e7147dc4c23ab2b2"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::chat::tui::app::run_shell (cognitive 22): cli::chat::tui::app::run_shell has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2, match/switch 1 (2 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":"crates/cli/src/chat/tui/app.rs"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"de38fd3da81bcc04a62505e314cf0a55b8d6ad02e8c36c5d0bc03cd272447900"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_client::connection::write_loop (cognitive 22): environment_client::connection::write_loop has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (11 pts), match/switch 3 (9 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-client/src/connection.rs"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"486e138810430047607f2c9b84e70916273a426d96894d10e608d43c373dbb6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Publish::stage_step (cognitive 22): Publish::stage_step has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 1 (2 pts), boolean chains 1, 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":"crates/environment-daemon/src/filesystem/transfer/publish.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bc150aae8c05c0720ce82e164d7770518d910b215577267b0f62d0dba027cd"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_daemon::platform::discover (cognitive 22): environment_daemon::platform::discover has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 1 (2 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":"crates/environment-daemon/src/platform.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc8dd5a500f23ac1644c49d5928c70a4f17582551e6a41c97891f3a3e84ac95"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvironmentRecord::validate (cognitive 22): EnvironmentRecord::validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environments/src/lib.rs"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cfd2b75c3bf878d1f2792c37efdf41edf9bcd40efc42eb44c946ed7a8a5e82"}},{"ruleId":"D2","level":"warning","message":{"text":"llm_runtime::openai_completions::materialize_messages_tracked (cognitive 22): llm_runtime::openai_completions::materialize_messages_tracked has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 2, match/switch 1 (2 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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1959287f9a3b03173d3e9c6ffebb513451c435f9cb58a5a5f593073f52a6c44f"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::wait_for_approval_decision (cognitive 22): GatewayAgentApi::wait_for_approval_decision has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 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":"crates/temporal-runtime/src/gateway/service/workflow.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c4a4bded9437471871a03e28d93827ee3f6113c918daf8de1a529402a98a53"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::fs::apply_patch::engine::compute_replacements (cognitive 22): tools::fs::apply_patch::engine::compute_replacements has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 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":"crates/tools/src/fs/apply_patch/engine.rs"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4f9332b0ac0e0972c54e768573c61c70fbbfe3864380bf13ff2a80da452b2c"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::toolset::register_toolset (cognitive 22): tools::toolset::register_toolset has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 5 (8 pts), boolean chains 3, match/switch 1 (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":"crates/tools/src/toolset.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9497aef867ef2ba64b00f61e8b25885efb9de4af2fd115b43c4e4a5d130d94cd"}},{"ruleId":"D2","level":"warning","message":{"text":"company-identity.admitCompanyIdentity (cognitive 22): company-identity.admitCompanyIdentity has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 4 (6 pts), boolean chains 4 (nesting depth added 4). None of this is in the body itself: all 22 points belong to one function literal inside it that branches (line 74). The decisions are inside the literal, 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 literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/src/company-identity.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"57829caa2efe09422f40b14b0d7319f2ce73c5f859065b6126aeaffb4c32d55b"}},{"ruleId":"D2","level":"warning","message":{"text":"tool-trace.ToolCallRow (cognitive 22): tool-trace.ToolCallRow has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9, boolean chains 8, if/else 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":"platform/web/src/components/session/tool-trace.tsx"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac097312f102c35c20577b0aa1ec946a8e66cb796959fe36a0af1be38ddd9bee"}},{"ruleId":"D2","level":"warning","message":{"text":"McpServersPage.OAuthDialog (cognitive 22): McpServersPage.OAuthDialog has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 14, ternaries 5 (6 pts), if/else 2 (nesting depth added 1). Of this number, 17 points are the body\u0027s own statements and 5 belong to 3 function literals 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e75e3e2f297026dab0a53a43dd9d405e0fe2c30fa2cd0b077fd85166551afe8"}},{"ruleId":"D2","level":"warning","message":{"text":"SetupsPage.SetupCard (cognitive 22): SetupsPage.SetupCard has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 10 (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":"platform/web/src/pages/SetupsPage.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd3c72db4fdffdd5b74d953f723e580f3adb27cd0bb2e6be775860f0a45673c"}},{"ruleId":"D2","level":"warning","message":{"text":"MethodGroup::of (cognitive 21): MethodGroup::of has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, boolean chains 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":"crates/api/src/access.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c58469e024ef32e2598f8123016d815dbe96a271c260026acc997dea945372"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptState::apply_delta (cognitive 21): TranscriptState::apply_delta has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 11). 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":"crates/cli/src/chat/tui/transcript.rs"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f56cdf393ba96176294e0cbfbc1391f63a927abcc446eba0d4c7fb216c8291"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_client::paths::resolve (cognitive 21): environment_client::paths::resolve has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, match/switch 1 (2 pts), loops 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":"crates/environment-client/src/paths.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb11c3b8e404bcaa533db596bb5033908fd913466aa6d26f4d81f8d4938d1541"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_provider_incus::idle::check_once (cognitive 21): environment_provider_incus::idle::check_once has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 3 (7 pts), boolean chains 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":"crates/environment-provider-incus/src/idle.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"444ff953f7bf5b554f6797be7144094af9088427349e2e803ebd699150607c23"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_provider_incus::relay::proxy_with_idle (cognitive 21): environment_provider_incus::relay::proxy_with_idle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-provider-incus/src/relay.rs"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"404971cb5a16bea05e832b131f264a5a1a7963290c8e9f0ed4c917636f78b364"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_provider_incus::server::wake_and_dial (cognitive 21): environment_provider_incus::server::wake_and_dial has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 2 (5 pts), 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":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9135f4adfff5bb3260b3587a7b2be574bda3c2e64c7f732732e57d0ef544be"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::code_tool::resume_code_tool_call_proposals (cognitive 21): harness::core::components::code_tool::resume_code_tool_call_proposals has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1 (3 pts), match/switch 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":"crates/harness/src/core/components/code_tool.rs"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacc73a8879f6156feb7b3cb5bc0bf612ca3102260d4e38ecde9ffe7e1c42846"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::config::validate_mcp_feature (cognitive 21): harness::core::components::config::validate_mcp_feature has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (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":"crates/harness/src/core/components/config.rs"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ce92ef1d206d541777b06ff1e04035dbfc65e994bb31ed00f996665ea324da"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::run::plan_next (cognitive 21): harness::core::components::run::plan_next has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6 (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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b348c433377a07b2198d8aacb1d28b1580139eee397121fc99fd644c7f9ac7"}},{"ruleId":"D2","level":"warning","message":{"text":"PgStore::delete_closed_sessions_with_options (cognitive 21): PgStore::delete_closed_sessions_with_options has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"crates/store-pg/src/session.rs"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb874287c5dd35fd7837e28d5d831d8f9ca4261e165740e244be8ba16681319"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::ingest_bot_webhook (cognitive 21): GatewayAgentApi::ingest_bot_webhook has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, match/switch 7 (10 pts) (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":"crates/temporal-runtime/src/bots/hooks.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee394a8d5a732f63e23dc3c153386301c075d3c6a76ca5fdd417992a4035528"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::run_roles (cognitive 21): temporal_runtime::run_roles has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, loops 4 (6 pts), match/switch 3 (5 pts) (nesting depth added 4). 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":"crates/temporal-runtime/src/main.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e1ca71c5b39bcda1554a44425a1504b3c6341da4c9243503bbf7d26fb5e749"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::mcp::compact_search_hit (cognitive 21): temporal_runtime::worker::mcp::compact_search_hit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (4 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":"crates/temporal-runtime/src/worker/mcp.rs"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf1f38d674a6c314310a3a361c44258ebbc53ef3fd9d754a6d21daef70d22f9"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::bots::controller::lanes::run_delivery_inner (cognitive 21): temporal_workflow::workflows::bots::controller::lanes::run_delivery_inner has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 4 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"crates/temporal-workflow/src/workflows/bots/controller/lanes.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"52435e12abaee18f93dd06027dd7e69e972d97ad0db8d73ae178e30219ca19cd"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::fs::apply_patch::parser::parse_one_hunk (cognitive 21): tools::fs::apply_patch::parser::parse_one_hunk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/apply_patch/parser.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4d833350bac0072c48fe734209b99c995112dc6ef25cf2af82264617c84d6d"}},{"ruleId":"D2","level":"warning","message":{"text":"setups.ensureCredential (cognitive 21): setups.ensureCredential has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, ternaries 2, match/switch 1 (nesting depth added 5). Of this number, 15 points are the body\u0027s own statements and 6 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":"platform/backend/src/routes/setups.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63982159405f66be31490ad2de076a1649451be680191ca15135b03ab7ad7e3"}},{"ruleId":"D2","level":"warning","message":{"text":"reply-copy.replyMarkdown::visit (cognitive 21): reply-copy.replyMarkdown::visit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, ternaries 1 (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":"platform/web/src/components/session/reply-copy.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe4b426938ca5cb78cc922c1ccea64113fa8ce288e8118f598ebba0281313ba"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.EnvironmentFields (cognitive 21): session-config-editor.EnvironmentFields has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 7, ternaries 4. Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 1970, 2011, 1988, \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec90951794c0f89b3582dca2ceb0cb31da46bb1b5ea153459baa6125c3fe9219"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminEnvironmentProvidersPage.ProviderDialog (cognitive 21): AdminEnvironmentProvidersPage.ProviderDialog has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 6, if/else 5 (nesting depth added 1). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 3 function items inside it that branch (submit, a function literal at line 372, a function literal at line 485). 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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb132ea8a0b597aada10ad195ca745ce173223858cbed41cf7684322fe3b0f50"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionsPage.SessionDetail::send (cognitive 21): SessionsPage.SessionDetail::send has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2 (6 pts), boolean chains 1, error handling 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. This shape REPEATS in the file: 2 other methods here (SessionsPage.SessionDetail, SessionsPage.SessionDetail::steerQueued) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"0076e9e79e8cdc484508b203739cb4bdbfac33040c6fa9a69df70e8be38ea991"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::chat::tui::wrapping::adaptive_wrap_line (cognitive 20): cli::chat::tui::wrapping::adaptive_wrap_line has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/chat/tui/wrapping.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebcb50866f60cf3a2f3227f666e3f88dc31831c95aae647e644fd55f10a2a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_protocol::jsonrpc::parse_value (cognitive 20): environment_protocol::jsonrpc::parse_value has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 7 (10 pts), if/else 5 (7 pts), boolean chains 3 (nesting depth added 5). 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":"crates/environment-protocol/src/jsonrpc.rs"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bf09789fd6cb7f82bf315353786219fecb11b4493c3af928e44fbfa1b9c87f"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::drive::attach_promise_control_runtime (cognitive 20): harness::core::drive::attach_promise_control_runtime has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), match/switch 1 (3 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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa36d66736a624ec7e721e925714fcf40dd1669c465b303e9b6e7f50fa6ebd69"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicMessagesLlmAdapter::generate (cognitive 20): AnthropicMessagesLlmAdapter::generate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 4 (6 pts), 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":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"503bcddfe270334db39aeb287b3bbfeab0cb07fed6be8114d540a3ddcb5bcf8c"}},{"ruleId":"D2","level":"warning","message":{"text":"llm_runtime::openai_responses::materialize_input_item (cognitive 20): llm_runtime::openai_responses::materialize_input_item has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), match/switch 3 (7 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":"crates/llm-runtime/src/openai_responses.rs"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8d1ad25d621d0662a6646ef0d6572d86e5fd446e85eaaf79d36333960e3f44"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::bots::fires::fetch_exec_payload (cognitive 20): temporal_runtime::bots::fires::fetch_exec_payload has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 3 (7 pts), loops 2 (3 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":"crates/temporal-runtime/src/bots/fires.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"705816468ecfa6c527e64498ecc800e691812e794d122a587bfe76edb16b8380"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::bots::sessions::ensure_session (cognitive 20): temporal_runtime::bots::sessions::ensure_session has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/bots/sessions.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0af4309667eaac652acf1d473b8af080824084d0541e477d11da3994062176"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::channels::activities::emit_chat_event (cognitive 20): temporal_runtime::channels::activities::emit_chat_event has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 6 (7 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/channels/activities.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28948ca7069e0f5af534b72bc6d8aa0d761669ae320e7f580686075a7a921be"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::prompts::environment::assemble (cognitive 20): tools::prompts::environment::assemble has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), boolean chains 4, match/switch 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":"crates/tools/src/prompts/environment.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad14f3ba976231304ad825f20af71b857e1273854b2325eae18484799a258ccc"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::transfer::capture_selection (cognitive 20): tools::transfer::capture_selection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 5, match/switch 2 (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":"crates/tools/src/transfer.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"29288c655fd7fcbe0ea89f1bfa40d8560ff9f0755b6d2b09b3eeb5c5dd1dab7f"}},{"ruleId":"D2","level":"warning","message":{"text":"channel-accounts.channelUniverseRoutes (cognitive 20): channel-accounts.channelUniverseRoutes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 2, error handling 2, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 20 points belong to 11 function literals inside it that branch (lines 133, 114, 218, \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":"platform/backend/src/routes/channel-accounts.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb31c5b24703636b6233d1c21a6279121bcc9281b18d8d8a566e79188dd52bc"}},{"ruleId":"D2","level":"warning","message":{"text":"inbound.parseChannelInboundMedia (cognitive 20): inbound.parseChannelInboundMedia has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, ternaries 6 (7 pts), if/else 6 (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":"platform/connectors/src/media/inbound.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"64902e60be6021f462aad9eacaee149b5cb4058a19995dca1ed18cceb92f67cc"}},{"ruleId":"D2","level":"warning","message":{"text":"delivery.deliver (cognitive 20): delivery.deliver has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 2 (4 pts), boolean chains 3, loops 1 (2 pts), match/switch 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":"platform/connectors/src/providers/whatsapp/delivery.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01f81eee903978e500a5d0ea7dba812f1c2ae73a79f1b3c21817603b87424e2"}},{"ruleId":"D2","level":"warning","message":{"text":"model-api-key.providerModelCatalog (cognitive 20): model-api-key.providerModelCatalog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 1 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 4 belong 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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"0724c6bfcb097d0a871e099c9cae9f023e163994ff13acf83278f60511406aa0"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript-motion.TranscriptMotionProvider (cognitive 20): transcript-motion.TranscriptMotionProvider has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 9). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 2 function items inside it that branch (a function literal at line 20, canAnimate). 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":"platform/web/src/components/session/transcript-motion.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8715db00b82154c42fa2d52af21608439e7aaf7ed1e3597afa4a096d4f530f7"}},{"ruleId":"D2","level":"warning","message":{"text":"run-section.RunStrip (cognitive 20): run-section.RunStrip has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (13 pts), boolean chains 7 (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":"platform/web/src/components/session/run-section.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f014f40347a0d69077bce4ebe4ae576fe54d35c5299ec15886490dc95c2c20"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.SessionConfigEditor (cognitive 20): session-config-editor.SessionConfigEditor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 9, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 612, a function literal at line 663, onChange). 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1aa47f32ecec35a46541dc6bc174bbdc1a44b43dcaa19ba54b9ee65ec805ca"}},{"ruleId":"D2","level":"warning","message":{"text":"CredentialsPage.PasteCredentialDialog (cognitive 20): CredentialsPage.PasteCredentialDialog has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 11 (13 pts), if/else 4, boolean chains 3 (nesting depth added 2). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 487, submit, a function literal at line 546). 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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec22ef2695b1f5a1ec9c817bbf092d0aae4992178a4c246708b03289a947b4f3"}},{"ruleId":"D2","level":"warning","message":{"text":"auth::providers::validate_model_endpoint (cognitive 19): auth::providers::validate_model_endpoint has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 2, match/switch 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":"crates/auth/src/providers.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"413ec46fb3c875e718f4ecc6bc1ebe4c9c0cafd4a5dc1d6937d26f050f72ddcf"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::chat::driver::handle (cognitive 19): cli::chat::driver::handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), loops 3 (6 pts) (nesting depth added 4). 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":"crates/cli/src/chat/driver.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eeffbe427002d3baa9699dcd95cef89b86d145b1d85f26f6ae382f86244481d"}},{"ruleId":"D2","level":"warning","message":{"text":"Outbound::serve_admitted (cognitive 19): Outbound::serve_admitted has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (10 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/registration.rs"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c0feee0c85aff3789cdc0b1d775ac7bc180d93c7829219b517d01e8f17df79"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_daemon::exec::input::write_pty (cognitive 19): environment_daemon::exec::input::write_pty has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), match/switch 1 (2 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":"crates/environment-daemon/src/exec/input.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac8ec26b103cbc5e1facdb84d49e4ff54fe7c531d692d67b94fa934b0e90146"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvironmentRecord::display_status (cognitive 19): EnvironmentRecord::display_status has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 2 (4 pts) (nesting depth added 12). 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":"crates/environments/src/lib.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d56a1aaca18462c7aec0578f09696292d829e0662b45a988319962c6cd00261"}},{"ruleId":"D2","level":"warning","message":{"text":"eval::run_cli (cognitive 19): eval::run_cli has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 10). 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":"crates/eval/src/main.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5100c9df50a39185a2f0cf9834590ff6fb54ce97722af09fcf54a0d2e84bee"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::config::validate_features (cognitive 19): harness::core::components::config::validate_features has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/harness/src/core/components/config.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d593c4173b59dc5a98172c9c96ded002e2d121868e094435698eabb3d4b15c"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayAgentApi::start_session_internal (cognitive 19): GatewayAgentApi::start_session_internal has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, match/switch 4 (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":"crates/temporal-runtime/src/gateway/service/session_lifecycle.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"455436dc4449795de89b409f0c230a2cce3f30262ecde42261a73de3c1c52914"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::gateway::service::mcp_discovery::failure_from_error_chain (cognitive 19): temporal_runtime::gateway::service::mcp_discovery::failure_from_error_chain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (3 pts), 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":"crates/temporal-runtime/src/gateway/service/mcp_discovery.rs"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7b3f41cd4bcf8fba681b5d056a4c9ee86a295c18599d9f8991dcc939c1613c"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::code::prepare_code_output (cognitive 19): temporal_runtime::worker::code::prepare_code_output has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 3 (7 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":"crates/temporal-runtime/src/worker/code.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d7e5e7579e789e430f61f119254abc4541d7d02d44ad0dfcefb5d886a79ba8"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::session::code_tools::process_pending (cognitive 19): temporal_workflow::workflows::session::code_tools::process_pending has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (7 pts), match/switch 3 (7 pts), loops 3, 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":"crates/temporal-workflow/src/workflows/session/code_tools.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"609b88dde8b4c4c69ea20b4a58176707826ba6432b28738ddc53ae7cd9d827d3"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::fs::apply_patch::parser::parse_update_file_chunk (cognitive 19): tools::fs::apply_patch::parser::parse_update_file_chunk has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 2 (5 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":"crates/tools/src/fs/apply_patch/parser.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a8f3eb2798720e36ba45e717753bf336b4149c224cbb6fe763527d46e2b81f"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::fs::path::normalize_path (cognitive 19): tools::fs::path::normalize_path has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (2 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":"crates/tools/src/fs/path.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48a1f69259c11f4747756c1d8bf2af073945d62d6b7fff8768e49392a89a4f2"}},{"ruleId":"D2","level":"warning","message":{"text":"activity.EventRow (cognitive 19): activity.EventRow has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 14, ternaries 4 (5 pts) (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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cb832db05f9b570808cdc0f320447b0d060846a421c0408a291cf39bd1ea82"}},{"ruleId":"D2","level":"warning","message":{"text":"triggers.pollPayload (cognitive 19): triggers.pollPayload has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8 (17 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ec36411cd7557ab892549b9836da16fdd4ba213ec21653080568df136e0481"}},{"ruleId":"D2","level":"warning","message":{"text":"tool-trace.ToolGroupTrace (cognitive 19): tool-trace.ToolGroupTrace has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 10 (15 pts), boolean chains 3, if/else 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":"platform/web/src/components/session/tool-trace.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cee21f611dec372a485827a020db54f30bd7bf83dbfbbc08852bc06cfb03560"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript-view.UserBand (cognitive 19): transcript-view.UserBand has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, ternaries 6 (7 pts), if/else 2 (nesting depth added 1). Of this number, 17 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":"platform/web/src/components/session/transcript-view.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7030c16351d4d4f3b7085da1562c48cf829991dc6b04b1022e2b95e4014d72c7"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageCell::display_lines (cognitive 18): MessageCell::display_lines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 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":"crates/cli/src/chat/tui/cell.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb54b438188a51cd480753b665a5e013d54de32232b379559f6eb27bf96b40c"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::administration_cli::api_key (cognitive 18): cli::administration_cli::api_key has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 8). 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":"crates/cli/src/administration_cli.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa52cead3e2027c18a70ae1107428715bebaddcf7eb44dfa7a41d14b6e15be01"}},{"ruleId":"D2","level":"warning","message":{"text":"eval::collect_observations (cognitive 18): eval::collect_observations has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 1 (2 pts), boolean chains 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":"crates/eval/src/main.rs"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca1bcf0ae62d876ad456b2f09b6870edd6f2d130e4089429b6e45f6140c5cee"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::config::validate_web_feature (cognitive 18): harness::core::components::config::validate_web_feature has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 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":"crates/harness/src/core/components/config.rs"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"305baec15035cd1c6285407cbd37fb48a17dfda4e254c3abf78dc6dea28b1ecf"}},{"ruleId":"D2","level":"warning","message":{"text":"harness::core::components::context::apply_entries_applied (cognitive 18): harness::core::components::context::apply_entries_applied has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, 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":"crates/harness/src/core/components/context.rs"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be5432047ece3a8f8acd8c53fae9f602dde360cf93a577ca2d6a1f2763fad38"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletionStream::next_chunk (cognitive 18): CompletionStream::next_chunk has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e04348a3fd4d4e42f17a4724fcdf0605d278249189919af5b4c4060afbe1d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseStream::next_event (cognitive 18): ResponseStream::next_event has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/responses.rs"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"111257f53f560f120860287d416f073e0c7a368c5d357368723e9d256118ffbf"}},{"ruleId":"D2","level":"warning","message":{"text":"PgStore::put_stream (cognitive 18): PgStore::put_stream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 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":"crates/store-pg/src/blob.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"83accca4c993ca199c952e6b66c468a737bb9149e5b5b409323394a92f709463"}},{"ruleId":"D2","level":"warning","message":{"text":"PgStore::put_bot (cognitive 18): PgStore::put_bot has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/bots.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c180da29f92c442de9dccbab586c1962ea7e318bf5ab43c14d0d41d438ff35"}},{"ruleId":"D2","level":"warning","message":{"text":"PgStore::put_bot_trigger (cognitive 18): PgStore::put_bot_trigger has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 4 (7 pts), boolean chains 1, loops 1 (nesting depth added 8). 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":"crates/store-pg/src/bots.rs"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac58d03c0123865b113087fb8ea4252ffff56090fa4fa5ac4e59541c9591637"}},{"ruleId":"D2","level":"warning","message":{"text":"PgStore::resolve_segments (cognitive 18): PgStore::resolve_segments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (2 pts), 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":"crates/store-pg/src/session.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73217c05e9d38ef97e651ce07c70600fc945c9c694787878a1c88f7a77fd78f"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentService::prepare (cognitive 18): SubagentService::prepare has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 5, boolean chains 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":"crates/temporal-runtime/src/subagents.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a272c0d84a122dad3567fed4ff62d7641daf784d2bb707aae65a684f055fe9"}},{"ruleId":"D2","level":"warning","message":{"text":"SubagentService::linked_attachments (cognitive 18): SubagentService::linked_attachments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (5 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":"crates/temporal-runtime/src/subagents.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7bb798c96261452d480a703b84170edfb9903dbff824ebf68ba24fbc58aa8b"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::gateway::http::environment_route_upgrade (cognitive 18): temporal_runtime::gateway::http::environment_route_upgrade has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 8 (12 pts), if/else 4 (5 pts), boolean chains 1 (nesting depth added 5). 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":"crates/temporal-runtime/src/gateway/http.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ce452d94424054569d7af2b32ab42c49241673a256a5bd141f3ecf2c475572"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::bots::controller::run_controller (cognitive 18): temporal_workflow::workflows::bots::controller::run_controller has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), match/switch 1 (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":"crates/temporal-workflow/src/workflows/bots/controller.rs"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"571073acbbc49694db9b1f7b56d6026f5c3f8a7a50b39747cfd1d5293af434d9"}},{"ruleId":"D2","level":"warning","message":{"text":"subscriptions.parseCodexCredential (cognitive 18): subscriptions.parseCodexCredential has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (9 pts), if/else 5 (6 pts), boolean chains 2, 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":"platform/backend/src/subscriptions.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c8481d5d6232040550149120061082d7205887fb551d5fe688496f657ec44a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectorHealthTracker.refresh (cognitive 18): ConnectorHealthTracker.refresh has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (15 pts), boolean chains 2, if/else 1 (nesting depth added 10). 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":"platform/connectors/src/host/lifecycle.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9b8f6d98feda52764024a5aab357204d926ad0fbcc2b0f95fd330a3d76da2a"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App (cognitive 18): App.App has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 3). Of this number, 16 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":"platform/web/src/App.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb55cbd6b27145a305a3d7b89f2513a1e924cd52eb5b5c5ca92ff6846a0f5f48"}},{"ruleId":"D2","level":"warning","message":{"text":"app-shell.AppShell (cognitive 18): app-shell.AppShell has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 6, if/else 1 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 1 belongs 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":"platform/web/src/components/app-shell.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ceac9a01b958d36ff3c3fcbe442462e8b633c43c8203ad373c3fcee1543f0c"}},{"ruleId":"D2","level":"warning","message":{"text":"cron-builder.cronBuilderFromExpression (cognitive 18): cron-builder.cronBuilderFromExpression has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/bot/cron-builder.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fa1f7aa0a299d39eb8611601c3d27175aaae97e70f6b5c94711b2f966f42d8"}},{"ruleId":"D2","level":"warning","message":{"text":"use-model-providers.connectedModelProviders (cognitive 18): use-model-providers.connectedModelProviders has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (10 pts), boolean chains 6, if/else 2 (nesting depth added 3). None of this is in the body itself: all 18 points belong to 3 function literals inside it that branch (lines 42, 72, 93). 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":"platform/web/src/components/models/use-model-providers.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb5d082e4bb5500f48d35f35dff1d88b1a3ffaf18c8bf5dc1fea232b8614838"}},{"ruleId":"D2","level":"warning","message":{"text":"add-model-provider-dialog.AddModelProviderDialog (cognitive 18): add-model-provider-dialog.AddModelProviderDialog has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 3, ternaries 2. Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function literals 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":"platform/web/src/components/models/add-model-provider-dialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c51d610fdd8339623359c665b99c45601ade31b826a7c39a350487ff727146"}},{"ruleId":"D2","level":"warning","message":{"text":"composer.SessionComposer::submit (cognitive 18): composer.SessionComposer::submit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (8 pts), boolean chains 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. This shape REPEATS in the file: one other method here (composer.SessionComposer) 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":"platform/web/src/components/session/composer.tsx"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1687fb568700c58e4307ff73cb5b0bac9fddb8df5fcee701d30133041329fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"file-references.filesFromAttachments (cognitive 18): file-references.filesFromAttachments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (6 pts), boolean chains 3, 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":"platform/web/src/lib/file-references.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a7c54227e381aede38d31270a8f1f17f4ad04e8a2abe26cb91c9e7ae45ad34"}},{"ruleId":"D2","level":"warning","message":{"text":"resource-features.setupResourceFeatureError (cognitive 18): resource-features.setupResourceFeatureError has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 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":"platform/web/src/lib/sessions/resource-features.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c40071aebb3feab5e1d6b751e7ab9dc99b864cfae3c6968e7b6e1e913b6e0cf"}},{"ruleId":"D2","level":"warning","message":{"text":"workspace-transfers.droppedEntries (cognitive 18): workspace-transfers.droppedEntries has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3 (6 pts), ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (visit). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/lib/workspace-transfers.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2c4a7838957ef69b861691d56a275110a9166d78552d669c5c38a6245ef679"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionsPage.SessionListItem (cognitive 18): SessionsPage.SessionListItem has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, ternaries 5 (6 pts) (nesting depth added 1). Of this number, 17 points are the body\u0027s own statements and 1 belongs 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"af57d6abbbe6b4932592faf90ccf9a3e11dc30651e5eaa09a32506ef96bbf8b8"}},{"ruleId":"D2","level":"warning","message":{"text":"SetupsPage.ConfiguratorKeyDialog (cognitive 18): SetupsPage.ConfiguratorKeyDialog has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, ternaries 6 (7 pts), if/else 2 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 6 belong to 4 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":"platform/web/src/pages/SetupsPage.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e39805e12d79f89fa6655dec1dea02a466a6fe5292889e940858079dec1135"}},{"ruleId":"D2","level":"warning","message":{"text":"OAuthFlowService::complete_callback (cognitive 17): OAuthFlowService::complete_callback has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 6 (7 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":"crates/auth/src/flow.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c8fb14c741b27d3d8f857fce207ca76c6340d28e8ee6f087c2cb08f707afd9"}},{"ruleId":"D2","level":"warning","message":{"text":"JobManager::cancel (cognitive 17): JobManager::cancel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 4 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"614fe079068976cf81e80b885d5b72244322d78f2fa3023e3c9dff874b031664"}},{"ruleId":"D2","level":"warning","message":{"text":"environment_daemon::filesystem::search::glob_files (cognitive 17): environment_daemon::filesystem::search::glob_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 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":"crates/environment-daemon/src/filesystem/search.rs"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb992e4a6d9b3d5c62b297ac1a41d3bd4fa680b5533cd3002cb80f8ba60c02f"}},{"ruleId":"D2","level":"warning","message":{"text":"store_pg::object::put_streamed_object (cognitive 17): store_pg::object::put_streamed_object has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 1, match/switch 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":"crates/store-pg/src/object.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4987abf6dadd84cb0198a9610046f57552f4ee6902a82e829bc56ec8e1dc12"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::gateway::registration::proxy_registered_route (cognitive 17): temporal_runtime::gateway::registration::proxy_registered_route has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), boolean chains 2, match/switch 1 (2 pts), 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":"crates/temporal-runtime/src/gateway/registration.rs"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"184ff408fa979d40343da3ab881c4447507b6fb5cd0c1b0f5da61160c59f7a85"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::code::finalize (cognitive 17): temporal_runtime::worker::code::finalize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), match/switch 6 (7 pts), boolean chains 3 (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":"crates/temporal-runtime/src/worker/code.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e73bb41c50e6e9ad3c681dbae58c05cfac28cc4f33b8c7a15962158261656b"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::session::tool_batches::execute_call_group (cognitive 17): temporal_workflow::workflows::session::tool_batches::execute_call_group has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 2 (4 pts), 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":"crates/temporal-workflow/src/workflows/session/tool_batches.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7d82b29c8335b63bf9887fe6f76f5f5c7aa108a5d36d907bb3b3156dd3aace"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::blobs::invoke_read (cognitive 17): tools::blobs::invoke_read has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, match/switch 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":"crates/tools/src/blobs.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"054a47bea64307d4876d52e86ca62941184d6b01d639ba2685e03608e576b02e"}},{"ruleId":"D2","level":"warning","message":{"text":"MemberClient.call (cognitive 17): MemberClient.call has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (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":"platform/backend/src/runtime-client.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"674ee7600c5cee158f80b0b51fc5ecdf438ae90c3136736936e8ac8a3c363eb9"}},{"ruleId":"D2","level":"warning","message":{"text":"ingress.normalizeTelegramMedia (cognitive 17): ingress.normalizeTelegramMedia has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7 (nesting depth added 3). 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":"platform/connectors/src/providers/telegram/ingress.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"439186ec8c863d72edd95dd25f68ec08ad5f77f7694a59e597ae92d0d5fbb39f"}},{"ruleId":"D2","level":"warning","message":{"text":"media.createTelegramMediaActivities.prepareChannelMedia (cognitive 17): media.createTelegramMediaActivities.prepareChannelMedia has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, error handling 3, ternaries 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":"platform/connectors/src/providers/telegram/media.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"de58529cc12bbe5c8b13a5c4d7357d40196969162587beed9e03b000a640d751"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.BotChat (cognitive 17): chat.BotChat has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), boolean chains 5, if/else 2 (nesting depth added 5). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/bot/chat.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e952baaa28dc608507629fe9fde5e15562eb4247057ca985f86f5cf2b29208f3"}},{"ruleId":"D2","level":"warning","message":{"text":"triggers.AddTriggerInline (cognitive 17): triggers.AddTriggerInline has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (7 pts), if/else 6, boolean chains 4 (nesting depth added 2). Of this number, 10 points are the body\u0027s own statements and 7 belong to 3 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":2488}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1283a0753eebd2d13eb9807efeccba095b2ed0ed42fc9662edd318ada730ad"}},{"ruleId":"D2","level":"warning","message":{"text":"setup.ProfileSwitcher (cognitive 17): setup.ProfileSwitcher has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (13 pts), boolean chains 4 (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 3 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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db69878fd450920e2c31b3477f0b8877d5f0314e7e2efab80e6085ca7d2b18e"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.modelPickerOptions (cognitive 17): session-config-editor.modelPickerOptions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (nesting depth added 5). Of this number, 13 points are the body\u0027s own statements and 4 belong to 2 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c4a792740e6b637e26696f6d4b0e5c5fcbf4e0d4b467da92d9f82f78510d7f"}},{"ruleId":"D2","level":"warning","message":{"text":"session-config-editor.ContextFields (cognitive 17): session-config-editor.ContextFields has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 3. Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1274, 1282, 1282). 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"51754ab087ad0abefba40ce5078b03cf7e3776f2c130c27835d72f03657853b8"}},{"ruleId":"D2","level":"warning","message":{"text":"workspace-file-tree.WorkspaceFileTree (cognitive 17): workspace-file-tree.WorkspaceFileTree has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 4). None of this is in the body itself: all 17 points belong to 3 function items inside it that branch (key, a function literal at line 113, a function literal at line 29). 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":"platform/web/src/components/workspace-file-tree.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c682a9fe87a962c3df864e7229dd059020bfcf8bba1648ac694c7730affc78"}},{"ruleId":"D2","level":"warning","message":{"text":"transcript.toolTarget (cognitive 17): transcript.toolTarget has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (6 pts), boolean chains 2, error handling 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c8785582182c10182f760b8632e8b8d89f06f3bd47a70ec4923005c46dbb1c"}},{"ruleId":"D2","level":"warning","message":{"text":"McpServersPage.ServerDetails (cognitive 17): McpServersPage.ServerDetails has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, ternaries 7, if/else 2. Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cce1381bdaf48b8892f8d9acf953c05b9a350e9f59cfba1e8bad37a0f81b59"}},{"ruleId":"D2","level":"warning","message":{"text":"cli::profile_cli::handle (cognitive 16): cli::profile_cli::handle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/profile_cli.rs"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c122159a1e886685bff0d44029d06ac068be48b542dab29c624ab486ac2fba1d"}},{"ruleId":"D2","level":"warning","message":{"text":"Walker::visit (cognitive 16): Walker::visit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/filesystem/walk.rs"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb86d8e0a1aed8ceb81c5fce67d424883987c47a802cb2a902ff8a2e6320e44f"}},{"ruleId":"D2","level":"warning","message":{"text":"IncusClient::wait_operation (cognitive 16): IncusClient::wait_operation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 2, match/switch 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":"crates/environment-provider-incus/src/incus.rs"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e07ea617eacfa28cbe9c862d2ba196d914ae2a273b3729b834ab310eebe4786"}},{"ruleId":"D2","level":"warning","message":{"text":"llm_runtime::media::normalize_image (cognitive 16): llm_runtime::media::normalize_image has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, 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":"crates/llm-runtime/src/media.rs"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b63f06cc7cf13403833ba68ff3233c98716fac61a40efda4cd63e9e194f119"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerSecretResolver::resolve (cognitive 16): BrokerSecretResolver::resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 3 (5 pts) (nesting depth added 8). 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":"crates/temporal-runtime/src/worker/secrets.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"18db662f2da95d5518c2b597275708b8dab47eb1aca6ef489f7629bab5768034"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionTools::await_environment_ready (cognitive 16): SessionTools::await_environment_ready has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (3 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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8630485fabb1d9d9f69a20a62392767ea0e2a1f416e8a21de90a789c164f91"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::bots::admission::carry_after_previous_sessions (cognitive 16): temporal_runtime::bots::admission::carry_after_previous_sessions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/bots/admission.rs"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06f8f056170346d5639701e760a704cb95335741b2a43e6a269a0b23b769c7c"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::bots::fires::fetch_http_payload (cognitive 16): temporal_runtime::bots::fires::fetch_http_payload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/bots/fires.rs"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f77e8475b1e41980b7a7dd9b3108fe501e71de5618092aaba2848ec6c2ed61"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_runtime::worker::activities::storage::validate_workflow_tool_reply (cognitive 16): temporal_runtime::worker::activities::storage::validate_workflow_tool_reply has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 10 (12 pts), if/else 3, boolean chains 1 (nesting depth added 2). 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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"e434992281339ff39b7711dbec59490674a1fe68611b695ac2bd3c89963db374"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::bots::controller::state::validate_event (cognitive 16): temporal_workflow::workflows::bots::controller::state::validate_event has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4 (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":"crates/temporal-workflow/src/workflows/bots/controller/state.rs"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e432f5d8f43d4250abc997ec3550cfa9a34815d023264506a72909dab30771"}},{"ruleId":"D2","level":"warning","message":{"text":"temporal_workflow::workflows::channels::conversation::prepare_message_media (cognitive 16): temporal_workflow::workflows::channels::conversation::prepare_message_media has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 2 (7 pts), if/else 2 (6 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-workflow/src/workflows/channels/conversation.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab62922891e6f0046314cb9f6740ceae6cd2c3b9a80b4c2eb09869be9bd896b0"}},{"ruleId":"D2","level":"warning","message":{"text":"tools::environment::sources::scan_query (cognitive 16): tools::environment::sources::scan_query has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (7 pts) (nesting depth added 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":"crates/tools/src/environment/sources.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7b256e0f3cb994a9e06517c5e2110ad76f449a028e0071b1bc4e7bf8b2b2f7"}},{"ruleId":"D2","level":"warning","message":{"text":"content.stageDocumentation (cognitive 16): content.stageDocumentation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 5, boolean chains 2 (nesting depth added 4). Of this number, 15 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":"docs/site/scripts/content.mjs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f764d49e2dc7bfa22153783db700dda9fd2cea9df060e1d6739ac85b3f03da"}},{"ruleId":"D2","level":"warning","message":{"text":"connector.createTelegramConnector.run (cognitive 16): connector.createTelegramConnector.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), 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":"platform/connectors/src/providers/telegram/connector.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccca155d75bed3c0d9815455cc7e89afb8cffe59e3ca75095cc397a35c8302a1"}},{"ruleId":"D2","level":"warning","message":{"text":"workspace-transfers.workspaceDownload (cognitive 16): workspace-transfers.workspaceDownload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, ternaries 5 (6 pts), loops 2 (3 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (collect, archive, a function literal at line 377). 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":"platform/shared/src/workspace-transfers.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e99640aae02ee1c0c66eeeb29341a27b4268edbdef366d2e311cbf0dfd7645"}},{"ruleId":"D2","level":"warning","message":{"text":"api.extractMessage (cognitive 16): api.extractMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 8 points are the body\u0027s own statements and 8 belong 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":"platform/web/src/api.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"43556022ed7bb18f38300b3a037e6582179a4c46cdad97fe6ea0680260d2b0d0"}},{"ruleId":"D2","level":"warning","message":{"text":"triggers.ChatRowDetail (cognitive 16): triggers.ChatRowDetail has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (10 pts), boolean chains 6 (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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"494aa3a5693a5babe2120fa44b25fe219fa29427cae91f46ae871de4ef3a503f"}},{"ruleId":"D2","level":"warning","message":{"text":"tool-trace.ToolCallDetail (cognitive 16): tool-trace.ToolCallDetail has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 6 (7 pts) (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":"platform/web/src/components/session/tool-trace.tsx"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"df857ec97f08b5a8e091bfa7e17015c33d33de422fc0e498396898241bfc0660"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobPage.BlobDetail (cognitive 16): BlobPage.BlobDetail has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, ternaries 2. Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals 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":"platform/web/src/pages/BlobPage.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ae30f0b62884c291445e94523d18ccf66e483bf0899230077565b7c605e376"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: gateway.gatewayRoutes: FunctionTooLong \u2014 gatewayRoutes runs 1350 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1250 over it, 13.50\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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9abac4f5e4d9ad2ef13a0aa8071f63357b4f6ef369ca842cbf305719175ea99"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: workspace-transfers.WorkspaceTransfers: FunctionTooLong \u2014 WorkspaceTransfers runs 878 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 778 over it, 8.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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19c899222cf32143d7a7f12182d57f1ba6ab14a3f3e2d3d0b75fd5f596c94eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionsPage.SessionDetail: FunctionTooLong \u2014 SessionDetail runs 859 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 759 over it, 8.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0b40fea7dc995c0c0103e315eedb7985cdb2d09d8a3e13e6b8ecddcdb39747"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/mod.rs: FileTooLong \u2014 3781 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 79% of them inside a single declaration: GatewayAgentApi (8 blocks, 244-4990), declaring 33 free functions. The bar is 500 significant lines; this is 3281 over it, 7.56\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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8578515a66d87d1ab0d6dec2883dc72df67c0164e208b686f244a3bc9ce0e0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GatewayAgentApi: ClassTooLong \u2014 2982 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 206 methods, 8 blocks, lines 244-4990. The bar is 400 significant lines; this is 2582 over it, 7.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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e68f9af79de9f9f614997331fa4f2c556ffafc4c79fc9c5aba9283ff12f1f4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::admit::admit_command: FunctionTooLong \u2014 harness::core::admit::admit_command runs 743 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 643 over it, 7.43\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":"crates/harness/src/core/admit.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae39745c0f4ebdb56affee5ec02e62242533033860b51baf7e476862e92c4ea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GatewayAgentApi: TooManyMethods \u2014 206 methods, declared across 18 files: service/mod.rs (50), service/workflow.rs (26), service/bots_api.rs (25), service/authorization.rs (23), \u002B14 more file(s). The bar is 30 methods; this is 176 over it, 6.87\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcf4db37f60e3250be5fe64efce3de7c4119943c713ad21c20a9b769170f174"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpServersPage.ServerDialog: FunctionTooLong \u2014 ServerDialog runs 550 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 450 over it, 5.50\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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85be17cf65d2c6f251f3cee33ab18dcf80651d950046fce7bbd78d882f58420"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: BotCreatePage.Wizard: FunctionTooLong \u2014 Wizard runs 546 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 446 over it, 5.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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"239ba1d538e1a7dec8ec3e811374356cae6b5abb36e2a2493be7f54f0974bd7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 2630 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 88 free functions. The bar is 500 significant lines; this is 2130 over it, 5.26\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":"crates/api-projection/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6c4bff452a21f405e8ae0ff737a9c0cf6ae0a109213ea72bc9fb74eef0ba99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/SessionsPage.tsx: FileTooLong \u2014 2256 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1756 over it, 4.51\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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04befe0dba33c4f4d5b46a94c6ae51aed77d2ce3e96cdfd582872462000e087"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bot/triggers.tsx: FileTooLong \u2014 2229 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1729 over it, 4.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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45f545184a84ddb0928d656f5f5ebd42ee095913e8298177ade18f8e291dd31"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionsPage.SessionList: FunctionTooLong \u2014 SessionList runs 424 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 324 over it, 4.24\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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd2ef8bbe5d91c19aa8421e92db1641330410034d5e2fe776fee90b98e5be0a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreAgentProjector.project_event_kind: MethodTooLong \u2014 project_event_kind runs 414 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 314 over it, 4.14\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":"crates/api-projection/src/lib.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6d68e8636438917d81354ba420712b2e0889ba23d9d043066b6046c0dc282e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/session-config-editor.tsx: FileTooLong \u2014 1872 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1372 over it, 3.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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a033c94b87d2637eb431c6745f5114a719f382710ebc5980947ac69ee999391"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/session.rs: FileTooLong \u2014 1725 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 73% of them inside a single declaration: PgStore (6 blocks, 58-2135). The bar is 500 significant lines; this is 1225 over it, 3.45\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":"crates/store-pg/src/session.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b21700674907736564844d3c8bf22fcf97b7d28cf1428663703e8df9faff7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routes/gateway.ts: FileTooLong \u2014 1715 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: gatewayRoutes (399-2415). The bar is 500 significant lines; this is 1215 over it, 3.43\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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f864aa5b0bbf5a5ef371fea65e8beed8126be1ef052ec27f312cbaa308d8c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/driver.rs: FileTooLong \u2014 1705 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 61% of them inside a single declaration: ChatSessionDriver (2 blocks, 237-1644), declaring 39 free functions. The bar is 500 significant lines; this is 1205 over it, 3.41\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":"crates/cli/src/chat/driver.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb019a04080a948952b55073d0ebe728bf93102d695f40ceb24de79a73ce9b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/drive.rs: FileTooLong \u2014 1662 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 1162 over it, 3.32\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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f73b6a13aff26e2c3aa9b7384829f96ee8c6d1fce46e800f9e907179c64abb6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: composer.SessionComposer: FunctionTooLong \u2014 SessionComposer 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":"platform/web/src/components/session/composer.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc6be97afc9eb0135ca514e079f2a8c6c92e5417a9fe3791c8a879524604e1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: api_projection::tool_call_display: FunctionTooLong \u2014 api_projection::tool_call_display runs 330 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/api-projection/src/lib.rs"},"region":{"startLine":2991}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c299ef4845c7dd6e06afa1df0080f6ef0738f037c6a0f3d78ed1f1c90778ec0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: universes.universeRoutes: FunctionTooLong \u2014 universeRoutes 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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea97265185fdd4c75a1dbc7f38fe13f33486511ff39bc67e16cd69301d89ff84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: worker/session_tools.rs: FileTooLong \u2014 1543 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 79% of them inside a single declaration: SessionTools (5 blocks, 56-1894). The bar is 500 significant lines; this is 1043 over it, 3.09\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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2d3f9eb41fd9a6587f93ac430bb892f4403b1ab04ec9098fa9abfdd46ec5c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/environment.rs: FileTooLong \u2014 1540 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 1040 over it, 3.08\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":"crates/store-pg/src/environment.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64aac8c1024ba43cfe8669eb660f2ee7f5a833c0394c796889199ffabc042615"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/context.rs: FileTooLong \u2014 1536 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 79 free functions. The bar is 500 significant lines; this is 1036 over it, 3.07\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":"crates/harness/src/core/components/context.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3832ef0507aa76085390abf9fc9e412f0209a09228dea60eb766942011bd9c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1535 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1035 over it, 3.07\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":"crates/environments/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b21399e1e0752d99c593aa9c334eac0dd4a3df94aa896eacad1128598cf375f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionTools: ClassTooLong \u2014 1223 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 29 methods, 5 blocks, lines 56-1894. The bar is 400 significant lines; this is 823 over it, 3.06\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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c41f855c7c5ba77bf371bba380c541f19ed06b342866ff7825990d1893c6c84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/anthropic_messages.rs: FileTooLong \u2014 1497 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 51 free functions. The bar is 500 significant lines; this is 997 over it, 2.99\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":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fce8e61c0ae540dc385597d6392ed4b972d5c6e300582f4218341a36838cf9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/EnvironmentsPage.tsx: FileTooLong \u2014 1488 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 988 over it, 2.98\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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1010aec78d5d7a74f53901548bebe26b76e92bb87078e1042f6588a279de5965"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-settings-sheet.LiveSessionSetup: FunctionTooLong \u2014 LiveSessionSetup runs 287 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 187 over it, 2.87\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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e4ea3deefb275ddd4e75c2b83be27a5d37179a32b9f9b2222584426746a99e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/tooling.rs: FileTooLong \u2014 1422 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 922 over it, 2.84\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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22d91a96b0a14c712516bd2c2aedf244146a77134a1e00c0ff1b9843b6fd3cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/workflow_tool.rs: FileTooLong \u2014 1416 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 38 free functions. The bar is 500 significant lines; this is 916 over it, 2.83\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":"crates/harness/src/core/components/workflow_tool.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91af78135e799de486bedf9f5524f9c9756f47f52843085b43a9b4ed1042d749"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CoreAgentProjector: ClassTooLong \u2014 1123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 31 methods, 2 blocks, lines 77-1554. The bar is 400 significant lines; this is 723 over it, 2.81\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":"crates/api-projection/src/lib.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a772c7cc254e92384d7c6c6497359e5961fdd7e87a0884c8f15342521f118da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::drive::tool_call_completed_proposals_inner: FunctionTooLong \u2014 harness::core::drive::tool_call_completed_proposals_inner runs 273 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"885ddca3df3289b59d4bce6de7a86b14f1e8bf9f17af36fe2071117db2c97bff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/openai_responses.rs: FileTooLong \u2014 1326 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 43 free functions. The bar is 500 significant lines; this is 826 over it, 2.65\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":"crates/llm-runtime/src/openai_responses.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ed5058e9f9b22b23350bc805ea723339d63e8cf5a75c81e61e6f385033e96a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AdminUniversesPage.AdminUniversesPage: FunctionTooLong \u2014 AdminUniversesPage runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.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":"platform/web/src/pages/AdminUniversesPage.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e4132208383fd9ff53c6e2858692aad5074bce157f9e9e831c5abdda3bb6fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CredentialsPage.CredentialList: FunctionTooLong \u2014 CredentialList runs 262 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 162 over it, 2.62\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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c362d842a1e8497e9f7331d44ad8c5b5841a945e3b5b3188d00d5c8b98af28"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatSessionDriver: ClassTooLong \u2014 1040 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 51 methods, 2 blocks, lines 237-1644. The bar is 400 significant lines; this is 640 over it, 2.60\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":"crates/cli/src/chat/driver.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a7e77367bb72ef1d170033bbe0daedd7dbc025caca441966e2295f92a06c93"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemode::engine::run_context: FunctionTooLong \u2014 codemode::engine::run_context runs 254 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 154 over it, 2.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":"crates/codemode/src/engine.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d3b949775fdb58317983dd21408934e1ca193ec12e58d120b99bd7db51064f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ControllerState: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.53\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":"crates/temporal-workflow/src/workflows/bots/controller/state.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57e398acb6530852d2b700de20902eb3da7ed5a70b47e79d08290022802167b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HttpAgentApi: TooManyMethods \u2014 74 methods. The bar is 30 methods; this is 44 over it, 2.47\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":"crates/cli/src/api_client.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4e4dc2ec72865c5bbc7ca5b3a77856554fe8d7f10f33b21aa4eb0cd0a478c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorkspacesPage.FileDetail: FunctionTooLong \u2014 FileDetail runs 238 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 138 over it, 2.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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf71afafe864e4e4586a2c3fab39ef2abacb10268f50fb3c1a510d73445dfbd2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/session.rs: FileTooLong \u2014 1174 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 674 over it, 2.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":"crates/harness/src/storage/session.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8389ae9036041278e428749886fb8bde702ab50877fade0f9d4d6556f03a5453"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionsPage.NewSessionDialog: FunctionTooLong \u2014 NewSessionDialog runs 232 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 132 over it, 2.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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc6b76c0c59946532d38fedb42e05cbcd7ce333d7c9828c75040ad9cbabcb86"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/bots.rs: FileTooLong \u2014 1152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 83% of them inside a single declaration: PgStore (6 blocks, 75-1234). The bar is 500 significant lines; this is 652 over it, 2.30\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":"crates/store-pg/src/bots.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97a5e54788d0ce0f971cf13ed56a3670dd3af8467b0ffed1d98a58b7deefbcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gateway/registration.rs: FileTooLong \u2014 1146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 646 over it, 2.29\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":"crates/temporal-runtime/src/gateway/registration.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9d1f91a379eeac404c01be94d7ac1e27f9d53f9d8d211b254eb68f95938098"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/workspace-transfers.tsx: FileTooLong \u2014 1136 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: WorkspaceTransfers (93-1111). The bar is 500 significant lines; this is 636 over it, 2.27\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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a16a2b7397edadbda5eab406abc32424ebe7120cbbb0a2a5bc04a31ffc2f255"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/sessions.rs: FileTooLong \u2014 1121 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 621 over it, 2.24\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":"crates/api/src/sessions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d534b9e10606814e41e27d566a25a71944d48b59505d216774c35609ac16b898"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/state.rs: FileTooLong \u2014 1108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: ControllerState (2 blocks, 338-1495). The bar is 500 significant lines; this is 608 over it, 2.22\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":"crates/temporal-workflow/src/workflows/bots/controller/state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7fab5e17648cebbd50ef7d0db6c367667f7d7ad0d9daebeeaf2644e37fe17c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: channels/conversation.rs: FileTooLong \u2014 1099 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 44 free functions. The bar is 500 significant lines; this is 599 over it, 2.20\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":"crates/temporal-workflow/src/workflows/channels/conversation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7065ad22c85c677bdeb471ab723fa917570f9696a86ce6215e2e9a1947eb04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/openai_completions.rs: FileTooLong \u2014 1078 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 578 over it, 2.16\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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"880f7cf8603ea494ee2aab396233c2a17b0f71e6ec556be0f8548e1bac235fe6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/McpServersPage.tsx: FileTooLong \u2014 1061 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 561 over it, 2.12\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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c61eca22630e23fe6a514650dad94116c819115f31a164d908e22c23d7aa119"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AdminUsersPage.EditUserDialog: FunctionTooLong \u2014 EditUserDialog runs 211 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 111 over it, 2.11\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":"platform/web/src/pages/AdminUsersPage.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa20b7321beaec28fd4c191d3d5b5d6ea52363fca2c689e691e0c1233e802991"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: environment_protocol/conformance.rs: FileTooLong \u2014 1045 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 75% of them inside a single declaration: Context (2 blocks, 348-1339). The bar is 500 significant lines; this is 545 over it, 2.09\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":"crates/tools/src/environment_protocol/conformance.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c23fe02f4b4be54a1ac39ba8ff05a42b12faa1643b8c1c380d38e5a58693127"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelsPage.Channels: FunctionTooLong \u2014 Channels runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\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":"platform/web/src/pages/ChannelsPage.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"634b3c073feb011bfdb2d2c365cc95fc1680c7664f833419d9c3a4b7c003eb75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: model-api-key.OpenAiCompatibleForm: FunctionTooLong \u2014 OpenAiCompatibleForm runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.08\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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ce82d6871506b709f459cda74993091f56eefbc39340ee3331859e0df496cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 1026 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 526 over it, 2.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":"crates/eval/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cbfbd90831b124cad24bc085f8ada9812c8af8148c905b52c1e3966896bd4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::components::run::apply_event: FunctionTooLong \u2014 harness::core::components::run::apply_event runs 205 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 105 over it, 2.05\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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"281ef55e4cb18c5e1caa92ae7287aad2ba3569d7acb493cf20ac26b926e94979"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionTools.invoke_workflow_tool_call: MethodTooLong \u2014 invoke_workflow_tool_call runs 205 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 105 over it, 2.05\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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3519388c495f243bef8c23941949c4b1ba7c270ec80383430ac77e741a92da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: bots.botRoutes: FunctionTooLong \u2014 botRoutes runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d432c00454d75d9ab4f306c54050b3b09524d2ac3c6d290a5c8daf4380366326"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/jobs.rs: FileTooLong \u2014 999 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 67% of them inside a single declaration: JobManager (2 blocks, 86-1131). The bar is 500 significant lines; this is 499 over it, 2.00\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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82d63e356abb745c44398cc80721625e47c0384fb06c5bade47b7f28e26eb20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: environments/lifecycle.rs: FileTooLong \u2014 998 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 498 over it, 2.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/environments/lifecycle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"375520568288b514c0800391043479fcb8c9dfc70dc303a3efe4c92c4ee9d61d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: openai/responses.rs: FileTooLong \u2014 986 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 486 over it, 1.97\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":"crates/llm-clients/src/openai/responses.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22203a03c686a20fe52f44cda996277e5b0866922e8a3b711da340ce914d95a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: triggers.TriggersSection: FunctionTooLong \u2014 TriggersSection runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"8644b4c855b07d82201a2169183b940490c5cad9e2c1fc978b4f2eda8e0c8243"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CredentialsPage.PasteCredentialDialog: FunctionTooLong \u2014 PasteCredentialDialog runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"048b6b294ad143f79dbeb9c81e475e6b462af95cf5db4d462eb6635f3c23fe23"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfilesPage.ProfileEditor: FunctionTooLong \u2014 ProfileEditor runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"393716383f65d4a7f8725937376972101d0e8577cf120d0dba2d11487e2deb55"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Context: ClassTooLong \u2014 779 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 33 methods, 2 blocks, lines 348-1339. The bar is 400 significant lines; this is 379 over it, 1.95\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":"crates/tools/src/environment_protocol/conformance.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b5dc349c6d908eb347d123bd40d4d1b10a40b0ddf60e34d2178918a493bfcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tool-picker.ToolPicker: FunctionTooLong \u2014 ToolPicker runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\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":"platform/web/src/components/mcp/tool-picker.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac008536d50a4f4c874bb91fc28d5c356680ead7859af8bad7f8c64df1fbf0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/auth_cli.rs: FileTooLong \u2014 962 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. The bar is 500 significant lines; this is 462 over it, 1.92\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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd018b096df94924c9cfa10b8fc5ffabd1469d4ea6548ddb9aee0c97c5322215"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: environment_daemon::filesystem::scan::scan_root: FunctionTooLong \u2014 environment_daemon::filesystem::scan::scan_root runs 192 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\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":"crates/environment-daemon/src/filesystem/scan.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e03b6a40062cb2968535fc8ad662e341b9d17c2da13ccd7106b740a5719c65"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ControllerState: ClassTooLong \u2014 766 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 76 methods, 2 blocks, lines 338-1495. The bar is 400 significant lines; this is 366 over it, 1.92\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":"crates/temporal-workflow/src/workflows/bots/controller/state.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1a6393c9767dcc27044fe4918b04985d67d251ee95651e39dc1d29f3847029"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: environment_protocol/remote.rs: FileTooLong \u2014 957 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 457 over it, 1.91\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":"crates/tools/src/environment_protocol/remote.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e050e9abeb8295405da29dd09477d53b01874cb54b85b3dd3f222cad8f62375"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: anthropic/messages.rs: FileTooLong \u2014 954 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 454 over it, 1.91\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":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e6172834bcf222d859196427b4233a32c88a686633e99662f0cfd9afccf589"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: transcript.applyEvents: FunctionTooLong \u2014 applyEvents runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"435f78c88bdaad5c653057a63438c6972855a54acb2e58b3a7d0fee0289f4fc9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bot/setup.tsx: FileTooLong \u2014 939 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 439 over it, 1.88\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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d47b370b93333eb2dc7d5b26507b4dcbcd5d7477218c7405d00915a1935c7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: worker/reaper.rs: FileTooLong \u2014 938 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 438 over it, 1.88\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":"crates/temporal-runtime/src/worker/reaper.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60995c6c5fd3c94627ce91b4a3e31ae0586cae257c4cceb91fb2d2d6917f2b39"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: worker/mcp.rs: FileTooLong \u2014 931 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 431 over it, 1.86\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":"crates/temporal-runtime/src/worker/mcp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9cc43e3b58ed0b05f980b163186fb5450dae6401fd970fca8f2550e5d18021f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/run.rs: FileTooLong \u2014 927 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 427 over it, 1.85\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/harness/src/core/components/run.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f81537f52e26b0159f34a74f245effaa99a5cad4f4d8cd0c36652584e564dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AdminEnvironmentProvidersPage.AdminEnvironmentProvidersPage: FunctionTooLong \u2014 AdminEnvironmentProvidersPage runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea03b12d41e9ef7b6a414cb4e2e601f3883a830b9642e23b37430723544f7c49"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SubagentService.prepare: MethodTooLong \u2014 prepare runs 181 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\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":"crates/temporal-runtime/src/subagents.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"650c0364e1500823ef856bc35320ab5f2eacc4662a1a268cdbf2bebd04061bdd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-config-editor.EnvironmentFields: FunctionTooLong \u2014 EnvironmentFields runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1910}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e282363108395a3fb14d10db77bc1de5a94a760698ab27490123c8f3249fac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/incus.rs: FileTooLong \u2014 902 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 69% of them inside a single declaration: IncusClient (3 blocks, 167-994). The bar is 500 significant lines; this is 402 over it, 1.80\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":"crates/environment-provider-incus/src/incus.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1f272c74318d3e5dd8703b3176f0c79ef0fb809c99356710a22b3cfbd0fe24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessions/transcript.ts: FileTooLong \u2014 892 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 392 over it, 1.78\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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaf73eb31a1f6dbc43fc57f822fbc9c40be8b9cd74d801db0da99a1181cd971"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::components::turn::apply_event: FunctionTooLong \u2014 harness::core::components::turn::apply_event runs 178 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/harness/src/core/components/turn.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efae9cbf51f462f59539c53ea01b91b9c47e47fc6c8d874416bfdae67624c82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/admit.rs: FileTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 387 over it, 1.77\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":"crates/harness/src/core/admit.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73bd9f2bbe318e6db5d6d584c09cb6c45ea16d969ae282b4af975e2b8b4e42b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gateway/http.rs: FileTooLong \u2014 883 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 383 over it, 1.77\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":"crates/temporal-runtime/src/gateway/http.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e16b8fe50299c9c9971cff3faf84d9411961f48c9470fbeee7dd3ca67d85c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_runtime::worker::activities::context_refresh::refresh_context: FunctionTooLong \u2014 temporal_runtime::worker::activities::context_refresh::refresh_context runs 176 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/temporal-runtime/src/worker/activities/context_refresh.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef37b7b0a70dcac1d28f72295128b42df00944a1bbbead448d3ca0d65fb3a62"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-config-editor.ModelFields: FunctionTooLong \u2014 ModelFields 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf9f380795c59c03d3fc2a0a012c431583ec0649a3fbc22f1cb49398fdaa1ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/server.rs: FileTooLong \u2014 865 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 365 over it, 1.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":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbd4462f2d48a65567cef55d178f65d42872571374902468b23f0b73cb8aa08"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_runtime::run_roles: FunctionTooLong \u2014 temporal_runtime::run_roles runs 173 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"crates/temporal-runtime/src/main.rs"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"239dadd30340d7f1936d29f9d7699b4bc9cede594f8bd56bf8559a17476ad986"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/mcp_discovery.rs: FileTooLong \u2014 860 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 360 over it, 1.72\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":"crates/temporal-runtime/src/gateway/service/mcp_discovery.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"241f86c050fa1fc2482180ea3511e916df539304cbd4dbf46169ed0cf29c12f7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatSessionDriver: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"crates/cli/src/chat/driver.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1107f49b2e0a94a0a9ba85ba5f6a25d8b40cdbfadff01d90ee63dd23b94d5285"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PgStore: TooManyMethods \u2014 51 methods, declared across 12 files: src/session.rs (12), src/lib.rs (11), src/cas_sweep.rs (6), src/environment.rs (5), \u002B8 more file(s). The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"crates/store-pg/src/lib.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b448afe9e35632473a435005875341df26ed384727d54a62c4366fff31c1fcdc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli::connection::handle: FunctionTooLong \u2014 cli::connection::handle runs 170 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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":"crates/cli/src/connection.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9e9e5e0fc8b6c6c008c629cd050c595c9988bbe53b3efe2012849bbab6845e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: connector.createWhatsAppConnector: FunctionTooLong \u2014 createWhatsAppConnector runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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":"platform/connectors/src/providers/whatsapp/connector.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6fe821e33ba453ca7d27f4acdd7bf0b4b87e88c77f5afae0abab08e313344c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: triggers.ChatFields: FunctionTooLong \u2014 ChatFields runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"533e4d2cfc72bb7e3dfdc5686e9f96b520cdd116d602a12ae48138eeb4c65ed1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JobManager: ClassTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 17 methods, 2 blocks, lines 86-1131. The bar is 400 significant lines; this is 274 over it, 1.69\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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b656eadd622125e317eacbd3352ba7e75482faae858d543634bb3df6d49c18b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transfer/mod.rs: FileTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 76% of them inside a single declaration: Shared (2 blocks, 88-1115). The bar is 500 significant lines; this is 340 over it, 1.68\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":"crates/environment-daemon/src/filesystem/transfer/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebe5d349d488d6a4fffc7d17a144ee060db62e94cef7615e4043040c91625c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/bots.rs: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 339 over it, 1.68\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":"crates/api/src/bots.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"187ba4309300ad789a45fe3c534cabd66eb1209691c366cba65f7dab08e65f13"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: add-model-provider-dialog.AddModelProviderDialog: FunctionTooLong \u2014 AddModelProviderDialog runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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":"platform/web/src/components/models/add-model-provider-dialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2c2d45e568eaf4f471c81f49b4aa88b99cf3e696ca48456e388cb6ba02b57c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/transfer.rs: FileTooLong \u2014 813 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 313 over it, 1.63\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":"crates/tools/src/transfer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22665c4c6631c760ef41aa0e1c0e65a44bdc8010be2e983a4f0b0d6ad5944ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/tools.rs: FileTooLong \u2014 810 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 310 over it, 1.62\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":"crates/bots/src/tools.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5e111b87c8247eb32fc0640e9fe2fd2a472b267439092de9c191af4561af6c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionTools.invoke_environment_control_call: MethodTooLong \u2014 invoke_environment_control_call runs 162 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94023297e710b20935aea5f3970a6aef799a64df324cc69a725acce2686b506"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: triggers.PollFields: FunctionTooLong \u2014 PollFields runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":2169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6822e22429bd31499184083d70a31977d9d40d4285e723b0a3a731f19e61ca3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fs/vfs.rs: FileTooLong \u2014 806 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 306 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":"crates/tools/src/fs/vfs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5cdae6e5c2093b808d4709a53f7929b54455a485b94b4e4ddb0a7a73392649"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::components::context::apply_event: FunctionTooLong \u2014 harness::core::components::context::apply_event runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.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":"crates/harness/src/core/components/context.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"da411f8b5029cd9f86d9565fe163995367faa87cc28df749bf98b978ccbb8426"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Publish: ClassTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 16 methods, 3 blocks, lines 164-1018. The bar is 400 significant lines; this is 239 over it, 1.60\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":"crates/environment-daemon/src/filesystem/transfer/publish.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86c24347948ea3322a42a2ddf91fcecc0eda10f80076c6de3110dc24d445d34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/config.rs: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 298 over it, 1.60\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":"crates/harness/src/core/components/config.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f50fd2cae162aeba1e425ad90328745de910832d24249833f15c0a28980210"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transfer/publish.rs: FileTooLong \u2014 797 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 80% of them inside a single declaration: Publish (3 blocks, 164-1018). The bar is 500 significant lines; this is 297 over it, 1.59\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":"crates/environment-daemon/src/filesystem/transfer/publish.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6501b749acf928b6603e30d303a4a615422824a20cd0c81c5ce627887a2481"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Shared: ClassTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 25 methods, 2 blocks, lines 88-1115. The bar is 400 significant lines; this is 236 over it, 1.59\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":"crates/environment-daemon/src/filesystem/transfer/mod.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9cdd1d8bb79f9027eca7482cbf78502961e57538f3e0924894d4bac057bd76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SubagentExecutionWorkflow.run: MethodTooLong \u2014 run runs 159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-workflow/src/workflows/subagent_execution.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecd35dd8520cb753cb53c071be57907a784986d604d0df56ca924a62bc782b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-config-editor.VfsFields: FunctionTooLong \u2014 VfsFields runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5c88498d87b85ced156c08f9106065d086c9d3b24ce34a25ed1337f96aa63c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EnvironmentsPage.EnvironmentList: FunctionTooLong \u2014 EnvironmentList runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17a912cc14ec302179c765a73bdd66503caa8527e0ebf900129ee19eb86442b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IncusClient: ClassTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 13 methods, 3 blocks, lines 167-994. The bar is 400 significant lines; this is 224 over it, 1.56\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":"crates/environment-provider-incus/src/incus.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e64cea634ac69e19a06662432938c72252bddc878479bbb63581f79afa7d883"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_runtime::worker::activities::environment_jobs::prepare_workflow_tool: FunctionTooLong \u2014 temporal_runtime::worker::activities::environment_jobs::prepare_workflow_tool runs 156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"crates/temporal-runtime/src/worker/activities/environment_jobs.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bcc6f27a4fc705e7b46d140142be4248accdb76d5f9a3c06b9261c61350fcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_workflow::workflows::session::code_tools::run_dispatch_loop: FunctionTooLong \u2014 temporal_workflow::workflows::session::code_tools::run_dispatch_loop runs 156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"crates/temporal-workflow/src/workflows/session/code_tools.rs"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"28859d35c0d35a81c97b2807732132ce71c3fc5c97f85141796e0f13c381629a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: triggers.DeliveryFieldsBody: FunctionTooLong \u2014 DeliveryFieldsBody runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d09bd621742a94173b6230a5658bb75518355889020e359bccbf71dc34e61a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChannelsPage.ConnectChannelDialog: FunctionTooLong \u2014 ConnectChannelDialog runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\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":"platform/web/src/pages/ChannelsPage.tsx"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e663f48a3627c93b4862af91d5a480c32cba58a72762716a1c91546d784f916"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/code_tools.rs: FileTooLong \u2014 772 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 272 over it, 1.54\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":"crates/temporal-workflow/src/workflows/session/code_tools.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea14daaab70f25884259d6e339f7d7d4145162ed8c54a28e8097988ff0f08ca5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/workflow.rs: FileTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 71% of them inside a single declaration: GatewayAgentApi (3-826). The bar is 500 significant lines; this is 264 over it, 1.53\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":"crates/temporal-runtime/src/gateway/service/workflow.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7761293b60f03cb5f39512b445ae8baa7633cd721d1f0d12528fe375d4e97629"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/profile_cli.rs: FileTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 32 free functions. The bar is 500 significant lines; this is 259 over it, 1.52\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":"crates/cli/src/profile_cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a62564613d6768691f77de27c6d03f07d27d4d115a71c7b82cb5f972e0235de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::drive::tool_batch_parked_proposals: FunctionTooLong \u2014 harness::core::drive::tool_batch_parked_proposals runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"36caec3468db8e3fcf0634c6c045a4f373016ebb8c1c22784d2a04c399bf2b69"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: auth.createAuth: FunctionTooLong \u2014 createAuth runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"platform/backend/src/auth.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"820ad6abdcf9743174027861f271b2d44441e949b0bc8470c6a72eb4e6d0e776"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: setup.OtherBotsSection: FunctionTooLong \u2014 OtherBotsSection runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a379975c201b551d3ce8cc3abfb2d2b7462597c851fd9efe4cd3a5f4f3353c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ApiKeysPage.ApiKeyList: FunctionTooLong \u2014 ApiKeyList runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"platform/web/src/pages/ApiKeysPage.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd356539492af19ab55107d7ef4dfd8ded5e95efc6b34d00be141e198975f5cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayAgentApi.start_session_internal: MethodTooLong \u2014 start_session_internal runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"crates/temporal-runtime/src/gateway/service/session_lifecycle.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"76de1ed0c20e2a1c6aa4d942b64bf335f31d7a7426b5b2b270c1fcad7afec2be"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: channel-accounts.channelUniverseRoutes: FunctionTooLong \u2014 channelUniverseRoutes runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\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":"platform/backend/src/routes/channel-accounts.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"79843613a7bb8123f63c4719aee3bd6a620b37a4a15b4a067b547065a010723c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: github-app.GitHubAppForm: FunctionTooLong \u2014 GitHubAppForm runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f8d7142e9c17a6c2dea594fda8b46ba0713c87d6b6b0f1973c056f627069be"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-config-editor.SessionConfigEditor: FunctionTooLong \u2014 SessionConfigEditor runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93444665ef8ac2f82438817175e3f948a1202eba714e59349f3f9a2fb05e636"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InMemoryEnvironmentRegistryStore: ClassTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 6 methods, 8 blocks, lines 77-872. The bar is 400 significant lines; this is 186 over it, 1.47\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":"crates/environments/src/memory.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3085fa2bfeaba8c9d8e9797ceaa10c21d552ef25fa95a303bad967ffdd453dc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/WorkspacesPage.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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"956af4725b04ed3dc08cd374ac106bdccf9e66b2163483f8226860d666c77982"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: workspace-transfers.WorkspaceActionsMenu: FunctionTooLong \u2014 WorkspaceActionsMenu 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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1c1ef4245c270db9dc4eec794e959ef1edd0137ef8ab6c92eabbca15d5734b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/BotCreatePage.tsx: FileTooLong \u2014 729 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: Wizard (138-764). The bar is 500 significant lines; this is 229 over it, 1.46\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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29247ff5204e7d972b23f4dfc05e9818c25c93ca21a6ae328c205d57c60f86e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/env_cli.rs: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 228 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":"crates/cli/src/env_cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c993c0a43b94423e3269ff8e541f9728ddd63556fbe60997e7afd612fcca77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/code_tool.rs: FileTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 226 over it, 1.45\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":"crates/harness/src/core/components/code_tool.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6850de996083b7def5e9a43ec4cc0ed601792194ed4bf6b20d237841204ac0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ControllerState: TooManyFields \u2014 43 stored fields beside 76 methods. The bar is 30 stored fields; this is 13 over it, 1.43\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-workflow/src/workflows/bots/controller/state.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c36abbefc841bbb9589643770a634645b935c5e66d509fd39e828fe640ec287"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Context.transfers: MethodTooLong \u2014 transfers runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"crates/tools/src/environment_protocol/conformance/transfers.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fb0e5fcd0a6e2df3888868071828995b9fa3322592d684e287f9dbb5ce7944"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PgStore.delete_closed_sessions_with_options: MethodTooLong \u2014 delete_closed_sessions_with_options runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"crates/store-pg/src/session.rs"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d2105481c28b44e8d2d7ffb90d658af5e1db85d5036900efaaa51e770de0f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EnvironmentJobWorkflow.run: MethodTooLong \u2014 run runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"crates/temporal-workflow/src/workflows/environment_job.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee05a69c6865b06b9c3334874703a5ff198a22c0b4bfd2e2d750d66bda09bff8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app-shell.AppShell: FunctionTooLong \u2014 AppShell runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"platform/web/src/components/app-shell.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee04668143771d40c82784fd12585efa0dbb57f76c582c8f2c55617bce08900a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: detail.BotDetail: FunctionTooLong \u2014 BotDetail runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"platform/web/src/components/bot/detail.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3234785648eb0abb324b08ce42f5243aed142e496c2060601c853714e8decacb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: setup.SessionProfileSection: FunctionTooLong \u2014 SessionProfileSection runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fe223bcb37fe51f37c2c933690f9ee7b3b058d5a0d01e432cdae19073cb6e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AdminEnvironmentProvidersPage.ProviderDialog: FunctionTooLong \u2014 ProviderDialog runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"927abfd0a4c0fa4726cf2b2b95f1c91d1d6f336df5d776851303112a7f8fe417"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/model-api-key.tsx: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 205 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05af672fe222ce0089609beed272f0578288113c21882b3cbd5d4a0fb6ded81a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProfilesPage.NewProfileDialog: FunctionTooLong \u2014 NewProfileDialog runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3d6b83c610d104c7dacda94e63b147691b9ac57f34aa095862071a08ec97ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_workflow::workflows::bots::controller::lanes::run_delivery_inner: FunctionTooLong \u2014 temporal_workflow::workflows::bots::controller::lanes::run_delivery_inner runs 140 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 40 over it, 1.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":"crates/temporal-workflow/src/workflows/bots/controller/lanes.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9060e7faa75367ba3ce5758bd875ce9b6003cbaf88b7163199dc516e25584d9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: github-app.GitHubAppDetails: FunctionTooLong \u2014 GitHubAppDetails 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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63edae0a096d25ff467a13626b89a2e8acd1752266b9e3bc3419b2cf01232eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/bots_api.rs: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 90% of them inside a single declaration: GatewayAgentApi (101-921). The bar is 500 significant lines; this is 190 over it, 1.38\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":"crates/temporal-runtime/src/gateway/service/bots_api.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b1e58d9813ede29b00f24b55b182ee78e2eabcdb7f91f49152e0f3c1a077a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: connector.createWhatsAppConnector.run: FunctionTooLong \u2014 createWhatsAppConnector.run runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.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":"platform/connectors/src/providers/whatsapp/connector.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"7337cb2bb610df68861f3d3401114bf3afa49727c7510ce791bdb0a0f57abe1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AdminApiKeysPage.AdminApiKeysPage: FunctionTooLong \u2014 AdminApiKeysPage 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":"platform/web/src/pages/AdminApiKeysPage.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea1c288df47ead8aee35a83b340cd5f74e7d69c0b8e317b34383e3a78f0eb67"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EnvironmentsPage.CreateEnvironmentDialog: FunctionTooLong \u2014 CreateEnvironmentDialog 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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"94080ea87022bdbf459337c3afc9391fc290190dcaee1f3d5c65aa1a20cf359c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/ProfilesPage.tsx: FileTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 178 over it, 1.36\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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41df7e133221f7e92dcbd1e1d92d0908b1113ca2085cb3585625c094f496b93e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/environments.rs: FileTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 176 over it, 1.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":"crates/api/src/environments.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cb32ac0ecca4b3d352412747c25daa349033d23d5ab2a95e8dd86bae368251"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/drive.rs: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 36 free functions. The bar is 500 significant lines; this is 175 over it, 1.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":"crates/temporal-workflow/src/workflows/session/drive.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f362c9c1f51df5743a00cfdf3249a9389740b1ba1b274fde5d9fe2eed778a9e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/vfs_transfer.rs: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 172 over it, 1.34\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":"crates/cli/src/vfs_transfer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad780d4f4c69ffa10d535228637bcc1363b0de87afdb206974329e3572fba9a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSessionDriver.chat_events_from_session_event: MethodTooLong \u2014 chat_events_from_session_event runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"crates/cli/src/chat/driver.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5f13fc38fe5ed580df19cb9e2efa9b33cc419db3a41986c65ba3407a3639dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_workflow::workflows::session::code_tools::admit_open: FunctionTooLong \u2014 temporal_workflow::workflows::session::code_tools::admit_open runs 134 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"crates/temporal-workflow/src/workflows/session/code_tools.rs"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0d09c0c7316b4abf230daec975236d88f7081fd98ff3f261812faeda2d4a4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/filesystem.rs: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 169 over it, 1.34\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":"crates/environment-daemon/src/filesystem.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d470eb5463d89c24e218434eaa2580dbac8ddcd6b7ae0023b258809d88888752"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/memory.rs: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 88% of them inside a single declaration: InMemoryEnvironmentRegistryStore (8 blocks, 77-872). The bar is 500 significant lines; this is 165 over it, 1.33\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":"crates/environments/src/memory.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bc5453b9d2ac8fae9492568c21e1b10d28917c1ba0df6d0bcc6bc98ccdb144"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OAuthFlowService.complete_callback: MethodTooLong \u2014 complete_callback runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 32 over it, 1.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":"crates/auth/src/flow.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a4d31ff04cc857e7f63bef64adf33993cf472d519c4ad0caed9a0425e6618c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: llm_runtime::openai_completions::result_from_response: FunctionTooLong \u2014 llm_runtime::openai_completions::result_from_response runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 32 over it, 1.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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"0413afca32640b338a8f98feeadb5f246981f5e16e0522a6ade454b47cbd3df2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_runtime::run_api_key_command: FunctionTooLong \u2014 temporal_runtime::run_api_key_command runs 132 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 32 over it, 1.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":"crates/temporal-runtime/src/main.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bb0e17a7363787bd18d8d59a2ccfc524eeb75200c0498d04df28a660551e7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: setup.GuardrailsSection: FunctionTooLong \u2014 GuardrailsSection runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"e103acbc0408ec6b769cd9ddbbe17dadb18f1a4b342bb2be751263daf108610a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: model-api-key.ModelApiKeyForm: FunctionTooLong \u2014 ModelApiKeyForm runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0a605a95963ff72129dca1111bbf6de116cd75f1cd8c97458bcbccadb38b73"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::components::tooling::apply_event: FunctionTooLong \u2014 harness::core::components::tooling::apply_event runs 130 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 30 over it, 1.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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea2b31d94b6a3827c910b28545328340630664b329c247c0aac3a3c600971b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: openai/completions.rs: FileTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 148 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":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b64bc2dd9038ace4c5c81971ea3f2889ebe5db44303c2efc58a4a05f48736a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GatewayDeploymentApi: ClassTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 7 methods, 3 blocks, lines 55-753. The bar is 400 significant lines; this is 114 over it, 1.29\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":"crates/temporal-runtime/src/gateway/deployment.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"14425084dd264274f0a89af24583cc66fe853d96cb9397bed153f2b8ea19796f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CoreAgentProjector.project_tool_batches_for_run: MethodTooLong \u2014 project_tool_batches_for_run runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.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":"crates/api-projection/src/lib.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2416192565083d6b8ef202804a1fb6673b205b35ff1e1ce06ec1413d4cba4032"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_runtime::worker::code::finalize: FunctionTooLong \u2014 temporal_runtime::worker::code::finalize runs 128 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 28 over it, 1.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":"crates/temporal-runtime/src/worker/code.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e4aa46788b56bc7a9a58dc35b21662aedb40d12231af3ea401e9e7dbceb240"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: activity.BotActivity: FunctionTooLong \u2014 BotActivity runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f85fbff939c4cc7adc6a84dc0192e6c5973c5c9a3d69c4768808e068cd334e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SetupsPage.ConfiguratorKeyDialog: FunctionTooLong \u2014 ConfiguratorKeyDialog runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.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":"platform/web/src/pages/SetupsPage.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b2a06f3ace797ab15344bf29e1487460a9282c1d4fa5367c6fdac3674c98d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::transfer::capture_selection: FunctionTooLong \u2014 tools::transfer::capture_selection runs 127 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"crates/tools/src/transfer.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"0691cd8263466e55923db2b180a5a4575ccd9b67ce833a1e9f20414ee83450b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: worker/code.rs: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 134 over it, 1.27\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":"crates/temporal-runtime/src/worker/code.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d50764db02e5ef8540321d36014ce273f71920feff7e03e1677b40120f48e1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentApiService: ClassTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 122 methods. The bar is 400 significant lines; this is 107 over it, 1.27\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":"crates/api/src/service.rs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"9077ce542ee7ebfb01d69419a6c21bf4a1a3b410f95fc6ee1c9ce91f112283dc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InMemorySessionStore: ClassTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 1 methods, 3 blocks, lines 620-1260. The bar is 400 significant lines; this is 105 over it, 1.26\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":"crates/harness/src/storage/session.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"89db66b80111598fef64a6dbe6f970c6f0bdfc010d11da54cc4ad95a0c5593d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AdminChannelsPage.AdminChannelsPage: FunctionTooLong \u2014 AdminChannelsPage 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":"platform/web/src/pages/AdminChannelsPage.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c9f7d8e62acd8b016269566dda5c53958e78d338bf3bd69943036a2c9b15e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: channels/activities.rs: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 35 free functions. The bar is 500 significant lines; this is 121 over it, 1.24\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":"crates/temporal-runtime/src/channels/activities.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5b2e16c0f133f6f8b095dc689f9d83a6afa80bdf3d33e4e4f20d1811db9308"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bots/sessions.rs: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 42 free functions. The bar is 500 significant lines; this is 120 over it, 1.24\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":"crates/temporal-runtime/src/bots/sessions.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b947870d25fe9ffd4a45a757df8a37ffda42a68cee0ff929e41716f2cbab3bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/CredentialsPage.tsx: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 120 over it, 1.24\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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a82d042754e176c6b07d03e0839c3b1ccbbc403f0ac6c36c33ecf445302c7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: environment_daemon::exec::windows::spawn_inner: FunctionTooLong \u2014 environment_daemon::exec::windows::spawn_inner runs 124 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"crates/environment-daemon/src/exec/windows.rs"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80f38aebe3c3cfaaa744d3872ff08605e91001575b172e3c8033fd7da6d6b97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mcp_cli.rs: FileTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 119 over it, 1.24\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":"crates/cli/src/mcp_cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c816b1a69e31277ff0fdc98c431bcb1d073386b607c96d7a4016609e26ff37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/subagents.rs: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 65% of them inside a single declaration: SubagentService (2 blocks, 204-758). The bar is 500 significant lines; this is 116 over it, 1.23\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":"crates/temporal-runtime/src/subagents.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e785aa33b4777859eb7ab5f7c8b8e3b9ffa92e873ddf008448bb05c6f335b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodeRunner.run_attempt: MethodTooLong \u2014 run_attempt runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"crates/temporal-runtime/src/code.rs"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6c5a5d7175520519e1a1b0879622770edd7a1e73679bbc000f64bdd7616c49"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_runtime::gateway::service::declared_workflow_tools_from_api: FunctionTooLong \u2014 temporal_runtime::gateway::service::declared_workflow_tools_from_api runs 123 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e7a74187bcb590fd1cea3c7b4b8a29bae3dee7c5993c62bc1fa6beea57cbf6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: triggers.TriggerFormCard: FunctionTooLong \u2014 TriggerFormCard runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf4ff90d0e0257f270716699650cf449855fe3ea23c3e04f5587dbd75b6a93c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/session_lifecycle.rs: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 72% of them inside a single declaration: GatewayAgentApi (2 blocks, 33-818). The bar is 500 significant lines; this is 113 over it, 1.23\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":"crates/temporal-runtime/src/gateway/service/session_lifecycle.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f3f0eb0bc98384187b02117eeab42c3287d3558b04dbf1dc73d419b8845105"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Reconciler: ClassTooLong \u2014 490 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 16 methods, 2 blocks, lines 550-1267. The bar is 400 significant lines; this is 90 over it, 1.23\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":"crates/temporal-runtime/src/environments/lifecycle.rs"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f6ff7080509c1daca624e279ab6ed7f23168cad4fbc07900e5b89679570ad3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gateway/deployment.rs: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 84% of them inside a single declaration: GatewayDeploymentApi (3 blocks, 55-753). The bar is 500 significant lines; this is 112 over it, 1.22\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":"crates/temporal-runtime/src/gateway/deployment.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0205c1003ba1e9875f0ea79170ea19ecde9e7d269881cc2a4e45207281e25e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.rs: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 112 over it, 1.22\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":"crates/temporal-runtime/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88cacbae1807210cf76502b8d646c374049f01270cfa6841e5f115423df0cd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: activities/environment_jobs.rs: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 112 over it, 1.22\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":"crates/temporal-runtime/src/worker/activities/environment_jobs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1060f4eb289559805605bfd09028aef52cd8f207f1fbd2a2de86977b8a0118a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EnvironmentsPage.AssignCredentialDialog: FunctionTooLong \u2014 AssignCredentialDialog 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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1dc376c397d268cada30f1e6df6f861e2e5eeb31f7cbdc018ab710cf471e95"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionsPage.SessionLineage: FunctionTooLong \u2014 SessionLineage 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":2518}}}],"partialFingerprints":{"codehealthFindingId/v1":"215c8e39ed1a78823dda58df5e442be125e6639809b7ded7772be3634dc4e43d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prompts/assembler.rs: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 34 free functions. 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":"crates/tools/src/prompts/assembler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49de72987416d3b5bc2d10ca066430e40b76139a6ce000e2d6fd11f0f30583ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bots/fires.rs: FileTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). 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":"crates/temporal-runtime/src/bots/fires.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68c9582324cf7d57943159db9342e34f4b71a95bcb6f7464f2e762072d4cbe8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: model-api-key.ProviderModelList: FunctionTooLong \u2014 ProviderModelList 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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d530aae7c113a243d6b195f998640eefeb3c0a0c3327f98b45e214bc7d58fca"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: McpServersPage.OAuthDialog: FunctionTooLong \u2014 OAuthDialog 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce623d069d09c18510c4e736cf381decc95c3992da4a5373abdc2c9672fa8a93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builtin/mod.rs: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 74% of them inside a single declaration: BuiltinTool (2 blocks, 99-839). The bar is 500 significant lines; this is 102 over it, 1.20\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":"crates/tools/src/builtin/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a35f9fe74616e4320a2accbe980514af7f932b557d377927ac73c6de88a59e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/state.rs: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 101 over it, 1.20\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":"crates/channels/src/state.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a577c56db55c0c15553cf2f962f98b50bf6ce529169e754a06a6af14d41306"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/registration.rs: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 101 over it, 1.20\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":"crates/environment-daemon/src/registration.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af7b76aea3ba521721ffb9e03647fb163682cb3c52567caa08f6c3699b98766"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkerActivities: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"crates/temporal-runtime/src/worker/activities/mod.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"320b5729a6e4be52158359632ec11cfe8b4eea7ba106316883b12c19f35e199b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/models_api.rs: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 99 over it, 1.20\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":"crates/temporal-runtime/src/gateway/service/models_api.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89156b20eea17c3ee03d810e8fa0c2a36250804bdcdf7bc8e55ff48f8e65db7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: environment/jobs.rs: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 97 over it, 1.19\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":"crates/tools/src/environment/jobs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa229538c7d554264718bc6a2ee99cfd2e3b64510836291ac351acc3a85eea7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mcp_oauth.rs: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 90 over it, 1.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":"crates/auth/src/mcp_oauth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9a180f980b32b6de1ed12abb3c58ef5369fccdd3dbdc3c53c23fdb90220d5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: llm_runtime::openai_responses::result_from_response_with_catalog: FunctionTooLong \u2014 llm_runtime::openai_responses::result_from_response_with_catalog runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"crates/llm-runtime/src/openai_responses.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5b2bddd2c73edccd6dc0210ff5a6796d99d1483bf14a7a4278d68fd31d9053"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::blobs::invoke_read: FunctionTooLong \u2014 tools::blobs::invoke_read runs 118 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"crates/tools/src/blobs.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"af334b5f896f58229ba87b115b5c663f1bab095d0e398e239972b059ee16ec09"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/auth.rs: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 60% of them inside a single declaration: PgStore (3 blocks, 27-534). The bar is 500 significant lines; this is 88 over it, 1.18\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":"crates/store-pg/src/auth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f920805d2910c863a619b181b377c5175cfb1236b3abf4a41b2dd3df4c0bfb00"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HttpAgentApi: ClassTooLong \u2014 470 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 74 methods, 2 blocks, lines 62-700. The bar is 400 significant lines; this is 70 over it, 1.18\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":"crates/cli/src/api_client.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5c2918f6bc7f4733dcfd678ce5b945d10e0733555b66ff478aa3c142be5d20"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayAgentApi.decide_run_approvals: MethodTooLong \u2014 decide_run_approvals runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":3189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2afa096a16815a2af2ee969be05c18f0b0685e75853db79e48e321d00f1c3d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::builtin::canonical::input_schema: FunctionTooLong \u2014 tools::builtin::canonical::input_schema runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"crates/tools/src/builtin/canonical.rs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5468a0d8f85021cdafb5d5acd009ec4c6ec35ced7f6b4529265d9aa9de681ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::definitions::resolve: FunctionTooLong \u2014 tools::definitions::resolve runs 117 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"crates/tools/src/definitions.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf3a1ec00ef875174dce31d593457728da8920aa8cfeabe7243618855b30aa7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 83 over it, 1.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":"crates/mcp/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec5f46fb2f761ca639d8648ada5097e8ab2c3147e8aaa6db1554cb057e05285"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::builtin::claude::input_schema: FunctionTooLong \u2014 tools::builtin::claude::input_schema runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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":"crates/tools/src/builtin/claude.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b97c6cfa9d8b07bd085fc0fc792b3c44ac98e1bf142a95ec46da56beac8e1ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::builtin::canonical::invoke_json: FunctionTooLong \u2014 tools::builtin::canonical::invoke_json runs 115 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"crates/tools/src/builtin/canonical.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"310b002d8ca53533f9d5f23c255a0de40d2d45851cef07ea0f226e20267a7435"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-config-editor.normalizeSessionConfig: FunctionTooLong \u2014 normalizeSessionConfig runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4417c462c380b74a7e68a4843a9a62041aaa760f81451cded3003e7c899f7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mcp.rs: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 60% of them inside a single declaration: PgStore (2 blocks, 12-410). The bar is 500 significant lines; this is 74 over it, 1.15\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":"crates/store-pg/src/mcp.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7b603f86d53e9744bdcba01c90081784232d6d7fbe435a790ecd5c7d0e0f4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/snapshot.rs: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 73 over it, 1.15\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":"crates/vfs/src/snapshot.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2667102d55687556665ea7dfac5fe67eb3098ad34ffa3d27a107fdc013b248"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/session_jobs.rs: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 71 over it, 1.14\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":"crates/temporal-runtime/src/gateway/service/session_jobs.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23922671d4d240f57bb5a8ad048d41c99eb81d3f4df60bca76e6d8b1a5d85904"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EnvironmentsPage.EnvironmentDetails: FunctionTooLong \u2014 EnvironmentDetails runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2932c6893353703241322d9a603b2e5546b5636549de71f70354c15ce8b6e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/lanes.rs: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 68 over it, 1.14\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":"crates/temporal-workflow/src/workflows/bots/controller/lanes.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3bb634ca7d189bf61f8d506981a9bef0e7dd3a3b43602edd28ed797c46e4c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PgStore.list_sessions_for: MethodTooLong \u2014 list_sessions_for runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"crates/store-pg/src/session.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd50b5ce3a532cc9299bc56ed106b6d12e04358fbb11f128c89c5bb8eea6162a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: triggers.AddTriggerInline: FunctionTooLong \u2014 AddTriggerInline runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":2488}}}],"partialFingerprints":{"codehealthFindingId/v1":"238851e21d64c97d8595c46e8bf6c54993606acf8bd79fec67e3ff3e2de85243"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StoredTokenSource.refresh_grant: MethodTooLong \u2014 refresh_grant runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"crates/auth/src/broker.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0ab647ec8b6bbdf82bcbb878e17c581c3d7dbf0f7359a0bf96d934cf500007"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: bots::views::bot_status_view: FunctionTooLong \u2014 bots::views::bot_status_view runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"crates/bots/src/views.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"11206142f8e9b7fdcd8b1da69f5bb7411c1712d2974c306141cfeca84cc74731"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TranscriptState.apply_chat_event: MethodTooLong \u2014 apply_chat_event runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"crates/cli/src/chat/tui/transcript.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a332b5abf0559ceea53317fe24acef3601682c00e4bdb9c76ee6f21e9cd16ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Publish.append: MethodTooLong \u2014 append runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"crates/environment-daemon/src/filesystem/transfer/publish.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5d3133b2ca8054df8b550dc36469ad628560787e2ad8163ad44b13049fcfaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PgStore.insert_bot_event: MethodTooLong \u2014 insert_bot_event runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"crates/store-pg/src/bots.rs"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f84a49aba14db9fa8352ce5d7d566e9c4334e7ebb7f8a2eb3a1113306f57a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PgStore.create_forked_session: MethodTooLong \u2014 create_forked_session runs 112 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"crates/store-pg/src/session.rs"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"975f267021fe465e22ea0d6c64cec2ccc9a3587fa2d6fb87c0206409fa7a1ac6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EnvironmentsPage.EnvironmentCredentials: FunctionTooLong \u2014 EnvironmentCredentials runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ee49b64b4b1d7e949191e14288f30cd77ebcb2e990b34bdb7c4fefa156ec1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: MembersPage.MemberList: FunctionTooLong \u2014 MemberList runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"platform/web/src/pages/MembersPage.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fb6f86895b67939f32255f12a53c018f125938ba9032ed2b2fe263a7e6f0fb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BuiltinTool: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 33 methods, 2 blocks, lines 99-839. The bar is 400 significant lines; this is 47 over it, 1.12\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":"crates/tools/src/builtin/mod.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4283c2a0761410b9d97da5b5ce72cda6c990d7a1fc723898660c95d3b8ced38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/oauth.rs: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 58 over it, 1.12\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":"crates/auth/src/oauth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3bbdfdda870c62852933ef01c365574593f5a9c1bd226e297fdca09bf0ff5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bots/controller.rs: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 55 over it, 1.11\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":"crates/temporal-workflow/src/workflows/bots/controller.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67abf33b80eab78cc429e6ba667309260903f1ed34832b8b434522a2bd8c40d4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PgStore.create_session: MethodTooLong \u2014 create_session runs 111 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"crates/store-pg/src/session.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"afba352fd88319980dafbdb4b6d1a0ac5fb8552adb0d74a29c409fec6cccb7cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkflowActivities: 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":"crates/temporal-workflow/src/activities.rs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c601d3c5a3500b3e94ec21e31e74ae307620b32e2802df51311d722730502b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BuiltinTool: 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":"crates/tools/src/builtin/mod.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4f397fc4063a6609219662c04b1d576a74d9a99983aefca449ec6d5344c5bd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Context: TooManyMethods \u2014 33 methods, declared across 2 files: environment_protocol/conformance.rs (31), conformance/transfers.rs (2). The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"crates/tools/src/environment_protocol/conformance.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"27efac4eea10b74e1855b1e87b1610d809b83738950db1fc42e54775989e7f1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: bots::tools::trigger_put_input_schema: FunctionTooLong \u2014 bots::tools::trigger_put_input_schema runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"crates/bots/src/tools.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"1313a650b205216f445cd1ede4b108f69cc4cd34c7809f213b10d99cba9beb0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: llm_runtime::compaction::compact: FunctionTooLong \u2014 llm_runtime::compaction::compact runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"crates/llm-runtime/src/compaction.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7055dd41af2092b1cdacedd523cd9123c50556d6bea0d42d078860454da4599b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentSessionWorkflow.run: MethodTooLong \u2014 run runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"crates/temporal-workflow/src/workflows/session/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fcd371f55a77b3adf8e5780706d53f6193d7d304e1d7e7893d6016ebdb6e84"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AdminApiKeysPage.CreateKeyDialog: FunctionTooLong \u2014 CreateKeyDialog runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"platform/web/src/pages/AdminApiKeysPage.tsx"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fbc145fc0eb75f31d8bf0c0b644f00a2baaa16e587515bc9c88d54abe28efb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/api.ts: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 49 over it, 1.10\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":"platform/web/src/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80c75f6d406e0134f0d23a716e93c37a6bc71a1a40de249ded057df0c1f6005"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: llm_runtime::anthropic_messages::result_from_compact_response_with_strategy: FunctionTooLong \u2014 llm_runtime::anthropic_messages::result_from_compact_response_with_strategy runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"af396484d566f8989892d249e5dec66f19d3053c19263e7e9ae359951f978eb3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::workflow_tool::invoke_workflow_tool: FunctionTooLong \u2014 tools::workflow_tool::invoke_workflow_tool runs 109 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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":"crates/tools/src/workflow_tool.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"193b66752958bf93f05a8f9cc737085788c7957e3514656eda07e59583b7f1c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: composer-model-picker.ModelPicker: FunctionTooLong \u2014 ModelPicker runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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":"platform/web/src/components/session/composer-model-picker.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18649201ca0488bd956fb2e2c9d72ccce95413084f629572ac0ea96033ac4a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/connection.rs: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 44 over it, 1.09\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":"crates/cli/src/connection.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"853aa4b75328c4587eff72a4c62be79b5afeed06235cdf440fde98412e02bdaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/sidebar.tsx: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 44 over it, 1.09\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":"platform/web/src/components/ui/sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd9ab10b7405f656e4197a90f0fdf6668670fa1b4d4596bf359426814f6e20a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/api_client.rs: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 87% of them inside a single declaration: HttpAgentApi (2 blocks, 62-700). The bar is 500 significant lines; this is 41 over it, 1.08\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":"crates/cli/src/api_client.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef64e29f93327c2554758810ec9af29a75b6ffa2b6777c0c307caf4b671e7a5a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PgStore.append_inner: MethodTooLong \u2014 append_inner runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"crates/store-pg/src/session.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c1c0455b5a325b174ecb035996d51953293a6330e6548e75115971b8da9d3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SessionTools.invoke_call_execution: MethodTooLong \u2014 invoke_call_execution runs 108 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"30520454cced77962b22d7d8e4a5a9482ea6d577e3ac72ea57eecb459d72d94a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.App: FunctionTooLong \u2014 App runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"platform/web/src/App.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb2cec45675b7e1711454269fbe24b18ef1d7df846878f05779a3009ccaf2d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: resize-handle.ResizeHandle: FunctionTooLong \u2014 ResizeHandle runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"platform/web/src/components/resize-handle.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e51d96452741c629b23c48662196d8abaa093c6c923344ee8972a278d7895d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/AdminEnvironmentProvidersPage.tsx: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 38 over it, 1.08\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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e71ecfe06ba22942cbda780c08b40b59a9db926f3ec9497f5e0ce11694bdf1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/session_cli.rs: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 36 over it, 1.07\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":"crates/cli/src/session_cli.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"411646d488fa587b61ed91c84f5d7597ee4ec9ecedadae88ff70b05691ed778e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::components::workflow_tool::validate_recorded_invocation: FunctionTooLong \u2014 harness::core::components::workflow_tool::validate_recorded_invocation runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"crates/harness/src/core/components/workflow_tool.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8451909926fd8555b8855b806e747fe2ba0a621d3a76f8ed444a61d85cbcbd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: store_pg::session::session_record_from_row: FunctionTooLong \u2014 store_pg::session::session_record_from_row runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"crates/store-pg/src/session.rs"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadc716bcf5e11c2dd043495e6ca302bd8f2d3b5c13d96875f9b586bf3cfee1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::environment_protocol::conformance::run: FunctionTooLong \u2014 tools::environment_protocol::conformance::run runs 107 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"crates/tools/src/environment_protocol/conformance.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1182c3d3d604e9690f737748b3d2e6377c5190c8c1635c5282b543538d99d1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AdminUsersPage.CreateUserDialog: FunctionTooLong \u2014 CreateUserDialog runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"platform/web/src/pages/AdminUsersPage.tsx"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ab66f2d76198b00d54bc9d54d39dda95f463adf6e86a7731bfa2c43f3b4bdc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: api::schema_export::export_schemas: FunctionTooLong \u2014 api::schema_export::export_schemas runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/api/src/schema_export.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"127a53dcfb345d4d7e82d8894e15a34e1c08977eb4a5e01945ebdb4611c94e3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_workflow::workflow_contract::reference: FunctionTooLong \u2014 temporal_workflow::workflow_contract::reference runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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":"crates/temporal-workflow/src/workflow_contract.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53c7fd0068c1de65df450be6c6677ab3f23dbb659276ccc2e325c597373fec6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: activities/storage.rs: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 26 over it, 1.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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1a202fa19dc9a170b1da2a11f18d1e4179300e91c7beb3446d58a67dcfa144"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/cell.rs: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 25 over it, 1.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":"crates/cli/src/chat/tui/cell.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fc4a53ceed62994e586f96866a6196d50d9dabf5a7ab69e218707d317446f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::components::code_tool::apply_code_tool_event: FunctionTooLong \u2014 harness::core::components::code_tool::apply_code_tool_event runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"crates/harness/src/core/components/code_tool.rs"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a6b3ddac431e0535ee8c5f8395b0ffd709f73f7565d7a1c95d3ee5fc24bc83"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: triggers.SavedTriggerFormCard: FunctionTooLong \u2014 SavedTriggerFormCard runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2cccd117c91997557a6754bfda1aacf2ebb79fdbc9025863647972fc7f7f54"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-resources.SessionResourceChips: FunctionTooLong \u2014 SessionResourceChips runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"platform/web/src/components/session/session-resources.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c8c5442c39b1549400507eb6a250777f0dafceb7814681611dc8716b5b8712"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/preparation.rs: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 24 over it, 1.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":"crates/temporal-workflow/src/workflows/session/preparation.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2eacd2e16b4f63cc66e8344b7c3da1e32e78391e65ab25d55e0d7265779bea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: filesystem/os_windows.rs: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 63% of them inside a single declaration: Directory (2 blocks, 42-515). The bar is 500 significant lines; this is 23 over it, 1.05\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":"crates/environment-daemon/src/filesystem/os_windows.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd91f999bfd26d8e100a827b4a98f214818f89425fc737391dfe735d929eaac1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: environments/fake_controller.rs: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 22 over it, 1.04\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":"crates/temporal-runtime/src/environments/fake_controller.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe3cbc4c9548451148702db378cfdad7148b8eb4995ab6832576cef2b7e4c2f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: JobManager.read: MethodTooLong \u2014 read runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"a629b82f8fbae79c1356bd00ee4f86807ca0043fe207f6b7b234571352aa299c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness::core::components::run::terminal_run_proposal: FunctionTooLong \u2014 harness::core::components::run::terminal_run_proposal runs 104 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab7170c68508b007673c4b7ad2b8c5a19b8eb26891333aa009a3bc073822801"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CoreAgentProjector: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"crates/api-projection/src/lib.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e03298e77332de13ac26aecba3e8b5086fcc7e89e0470c27f893fbc12f8bab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EnvironmentService: TooManyMethods \u2014 31 methods, declared across 5 files: environments/lifecycle.rs (15), environments/registration.rs (7), environments/credentials.rs (4), environments/providers.rs (4), \u002B1 more file(s). The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"crates/temporal-runtime/src/environments/mod.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"718df89c37f450c617b22fff96b766eccd31ee2f854994dadf6ae40826fccae6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: EnvironmentColumns: TooManyFields \u2014 31 stored fields beside 1 method. The bar is 30 stored fields; this is 1 over it, 1.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/environment.rs"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e4fc585ab428239fcf32d9be06849bfb1201c51f26d69cef2b1e7ce6ea5a1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-config-editor.McpFields: FunctionTooLong \u2014 McpFields runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"530af7fd417e829639803536aff83c809261a4cea92b326da1319218807ac893"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: conformance/controller.rs: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-client/src/conformance/controller.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4addc45b2cea34020a7bef5fe160fa7af894f0780d6747bd30a3ae95e72811"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InlineToolRuntime: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 26 methods, 4 blocks, lines 26-567. The bar is 400 significant lines; this is 9 over it, 1.02\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":"crates/tools/src/runtime/inline.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a19842d1f21177fbb6182f891acc4a4f9b3f3966edd26ac0fd7ab346827ba6a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InMemoryBotStore: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 3 methods, 6 blocks, lines 42-621. The bar is 400 significant lines; this is 8 over it, 1.02\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":"crates/bots/src/memory.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c264c4ae9f9ea9321f1274b92c3f091fe9215267c34738058a434db1146a3d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: environment_protocol::contract::export_plane: FunctionTooLong \u2014 environment_protocol::contract::export_plane runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"crates/environment-protocol/src/contract.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f26d1f1dde0ceec66e5e145f53ff0a898fc7b6c0f686fad47358311f2c77ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayAgentApi.ingest_bot_webhook: MethodTooLong \u2014 ingest_bot_webhook runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"crates/temporal-runtime/src/bots/hooks.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"34888b77136c346bc477d34c85856c1fde7ca4782260d63f9bfe5f508b21664a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RuntimeMcpExecutor.find_tools: MethodTooLong \u2014 find_tools runs 102 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"crates/temporal-runtime/src/worker/mcp.rs"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e5e27664d9ca5cc4084c23509e7a770ca98f4753fba5764a337f5065fd2a30"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: activity.EventRow: FunctionTooLong \u2014 EventRow runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f3c9f8c1d2f419930233937077525842258537492ed9e54ac7deb67dc3dccc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: WorkspacesPage.NewWorkspaceDialog: FunctionTooLong \u2014 NewWorkspaceDialog runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd9fb3eb752e172349e037672a51ba4c1d7239902320d2de3f531a6aca22add"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/service.rs: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 100% of them inside a single declaration: AgentApiService (4-652). The bar is 500 significant lines; this is 9 over it, 1.02\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":"crates/api/src/service.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba1390977f6eb21bf4567fa51e55da4643f1e51a50dda0dd065b107782fcea3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionPreparationService: ClassTooLong \u2014 404 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 10 methods, 3 blocks, lines 9-558. The bar is 400 significant lines; this is 4 over it, 1.01\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":"crates/temporal-runtime/src/gateway/service/session_preparation.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0925c243ec563d4c6aaa0cdc84ec37a232b8b7a61d5e5116b096094e266729"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: temporal_workflow::workflow_contract::vectors: FunctionTooLong \u2014 temporal_workflow::workflow_contract::vectors runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"crates/temporal-workflow/src/workflow_contract.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2f771bc1a7961e55d09683a9d781f830aee7616507d949032b992a60b3aa76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BuiltinTool.name_str: MethodTooLong \u2014 name_str runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"crates/tools/src/builtin/mod.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f899353d03ea7dbc2d3377e7fddad1b4c7b5ca05a66a01a012073c23118cf546"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools::transfer::materialize_selection: FunctionTooLong \u2014 tools::transfer::materialize_selection runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"crates/tools/src/transfer.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4e28a9ced90ba4fda9e33bf084e1d7937068adfcf0ff392a21bd86bb4e4ff3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/oauth.rs: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 3 over it, 1.01\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":"crates/store-pg/src/oauth.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"973698a67df0e90193efed59464ed4c09769d43098f66969cd68ed39e733e356"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/session-settings-sheet.tsx: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa9ea1879171979f466a950251d5d70d73091ff1762acf6baa4992cf28c3723"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SubagentService: ClassTooLong \u2014 401 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 12 methods, 2 blocks, lines 204-758. The bar is 400 significant lines; this is 1 over it, 1.00\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":"crates/temporal-runtime/src/subagents.rs"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcdb1a953531ad66a8e2f7fcc8e3ac3571f00fcdb249e6b53183eaeb5b13a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (37 shared lines): crates/temporal-runtime/src/gateway/service/mod.rs:3124-3187 | crates/temporal-runtime/src/gateway/service/mod.rs:3349-3459 \u2014 These two members are variants of one another: 37 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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":3124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8444b5807e1032e7c37044da3db4a36aac6a2583cd4fca67d0ce7f24f86622"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/llm-clients/src/openai/completions.rs:257-287 | crates/llm-clients/src/openai/responses.rs:449-471 \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":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d2c7e71c7577b97324748019c30cff7ce45045c006938c9fbb4a14441d83fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/cli/src/auth_cli.rs:715-740 | crates/cli/src/auth_cli.rs:768-783 | crates/cli/src/auth_cli.rs:785-800 | crates/cli/src/auth_cli.rs:1347-1366 \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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be1cf386e9773f8c0453a0d871c7cd1277d714661cdddb7c78f9cc5d2b44b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/cli/src/auth_cli.rs:1048-1102 | crates/cli/src/auth_cli.rs:1104-1126 | crates/cli/src/auth_cli.rs:1205-1227 | crates/cli/src/auth_cli.rs:1259-1289 \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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df2a79ac36e3639a7a7a88e7e12f2e88a5c538c9b3e556456ec96c5a9ad86d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/llm-clients/src/anthropic/messages.rs:1253-1273 | crates/llm-clients/src/openai/audio.rs:293-317 | crates/llm-clients/src/openai/completions.rs:836-860 | crates/llm-clients/src/openai/responses.rs:1247-1271 \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":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2cb6e9a8984038c8ad0b503ec9fb639fef61c1dc971253879035b46fcb644d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): crates/llm-runtime/src/openai_completions.rs:185-255 | crates/llm-runtime/src/openai_completions.rs:267-292 | crates/llm-runtime/src/openai_responses.rs:170-250 | crates/llm-runtime/src/openai_responses.rs:360-392 \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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9267de458cf195f7591ec9522ac5eed5b931f7d2b55b23e388e98d24c1b07a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/common.rs:223-261 | crates/test-support/src/runner/drive.rs:779-817 \u2014 before extracting anything, compare \u0060crates/temporal-runtime/src/worker/activities/common.rs\u0060 and \u0060crates/test-support/src/runner/drive.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/common.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02b6af376630ed21eb7e391ba34e66a25cc4231466b8339122205a05e6e5ad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): crates/llm-runtime/src/anthropic_messages.rs:1499-1533 | crates/llm-runtime/src/openai_completions.rs:1196-1230 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d220eb60648f9581edc96917aab20f2f04eb9289cf7751f904b4b69986eacb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/common.rs:153-187 | crates/test-support/src/runner/drive.rs:709-743 \u2014 before extracting anything, compare \u0060crates/temporal-runtime/src/worker/activities/common.rs\u0060 and \u0060crates/test-support/src/runner/drive.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/common.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d36d86eb7c3ad25c1cdba1913809f2b79d5e3c0f666789c8ec74d0d42d28a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): crates/llm-runtime/src/anthropic_messages.rs:1289-1320 | crates/llm-runtime/src/openai_responses.rs:924-955 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c642b7b867d86a21a4c5372791b45de8f54c2b040024a8810dbb71934ae9f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): crates/harness/src/core/components/tooling.rs:1545-1571 | crates/harness/src/core/components/tooling.rs:1576-1602 \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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c70369deeab910dc12f3c29a7f21323ba760b9896ab82ceace32c8dce5e2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): crates/environment-provider-incus/src/server.rs:455-478 | crates/temporal-runtime/src/environments/fake_controller.rs:426-449 \u2014 before extracting anything, compare \u0060crates/environment-provider-incus/src/server.rs\u0060 and \u0060crates/temporal-runtime/src/environments/fake_controller.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"690b59cf1ca8c88b28737dc56110406be7b2f698f6bcd28a6057f188b6399702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): crates/llm-clients/src/openai/audio.rs:295-317 | crates/llm-clients/src/openai/completions.rs:838-860 | crates/llm-clients/src/openai/responses.rs:1249-1271 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/audio.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/audio.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5f3695f617ae49930783a2ac982c61eebef57853d123b853e7aca3a21463b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/llm-runtime/src/openai_completions.rs:209-231 | crates/llm-runtime/src/openai_responses.rs:198-220 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/openai_completions.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a8302124105594768546c2309d6ea9b0f86bfd6b294ea219d5739a369f0fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/llm-clients/src/openai/completions.rs:231-252 | crates/llm-clients/src/openai/responses.rs:195-216 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/completions.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 212 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a73bf421ac0e783a7ec5b0103995ceb107b68877e013d53b6789ded1dabb9b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): crates/api/src/schema_export.rs:174-194 | crates/environment-protocol/src/contract.rs:323-343 \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":"crates/api/src/schema_export.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"986c2fd5d34817f4f6848bb3450463d90aac70684e5a45a19455cc748d2b83e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mcp_discovery.rs:656-674 | crates/temporal-runtime/src/gateway/service/mcp_discovery.rs:707-726 \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":"crates/temporal-runtime/src/gateway/service/mcp_discovery.rs"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6fc63c9bd466da789502d35b0f3ae55ff0899bf95263a10b9ed8e82ff65a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mod.rs:3154-3173 | crates/temporal-runtime/src/gateway/service/mod.rs:3392-3411 \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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":3154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e751ae13277f137cfeb9bfe424de2db5055c2b0e44ac73d9db931e8cd989c80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/harness/src/storage/session.rs:992-1010 | crates/harness/src/storage/session.rs:1046-1064 \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":"crates/harness/src/storage/session.rs"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9342ebccfac7540d3f85a5a9ee37fc0f260a88f3176fcce955c4040ff71fac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/common.rs:194-212 | crates/test-support/src/runner/drive.rs:750-768 \u2014 before extracting anything, compare \u0060crates/temporal-runtime/src/worker/activities/common.rs\u0060 and \u0060crates/test-support/src/runner/drive.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/common.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"94692798eebe834f8c37928c06ca6bcafcce248f7554884c6c011c27e85cc8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): crates/llm-runtime/src/openai_completions.rs:192-208 | crates/llm-runtime/src/openai_responses.rs:177-194 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/openai_completions.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"36afdfb0e34ec5aea1d8180d33f6a3fcd0873f3a45fa95a5098439e48c9ac74d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/state.rs:353-370 | crates/temporal-runtime/src/worker/activities/state.rs:411-428 \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":"crates/temporal-runtime/src/worker/activities/state.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"edafd6e86ad166637c4a4949972fed99ab4c25596108ec638c7cf62deda4cd8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/cli/src/auth_cli.rs:1260-1276 | crates/cli/src/auth_cli.rs:1292-1308 \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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d93f42ec65d838c747dd9965e76cf5bb3168eb57293179c4c0b52e081baace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/llm-clients/src/openai/completions.rs:96-112 | crates/llm-clients/src/openai/responses.rs:109-125 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/completions.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 212 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"271098b00fee645840d6b25c544ff5f59b3af46a87c8405cf293d383dfe1d570"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/store-fs/src/blob.rs:129-145 | crates/store-pg/src/object.rs:153-169 \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":"crates/store-fs/src/blob.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebe48ec1a01913feb42993b567131c798396d4dbe87885b6321b3850e81fb7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/store-fs/src/blob.rs:215-231 | crates/store-pg/src/shared.rs:10-26 \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":"crates/store-fs/src/blob.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb5a1de3fc713788703097cb802010de838c19abf2f022ea33544a8bed1ff81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/storage.rs:367-382 | crates/temporal-runtime/src/worker/activities/storage.rs:395-411 \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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"12321fc46082d9fda9f9771429903b6febed17f05e2a856c40c8214e9e1d5bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): crates/temporal-workflow/src/config.rs:248-263 | crates/temporal-workflow/src/workflows/bots/mod.rs:62-77 | crates/temporal-workflow/src/workflows/channels/mod.rs:43-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-workflow/src/config.rs"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3268dfa782994048cb1c0e65de0d054df1b7337364ab0749b8b501dedbcdd5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/environment-client/src/controller.rs:54-69 | crates/environment-client/src/data.rs:136-151 \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":"crates/environment-client/src/controller.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4ac14d15f07eedc2c853bd65f09606e8cb2de3099193df89848109f75c7c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): crates/llm-runtime/src/openai_completions.rs:234-247 | crates/llm-runtime/src/openai_responses.rs:226-241 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/openai_completions.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab052a82a658c317a555c82cdbc8f6b617dcf563be762568e513b9d8aabf350e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/tools/src/fs/local.rs:220-235 | crates/tools/src/fs/scoped_local.rs:342-357 \u2014 before extracting anything, compare \u0060crates/tools/src/fs/local.rs\u0060 and \u0060crates/tools/src/fs/scoped_local.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/local.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"8316e13e394437fbf757694411c8cac486c9b95587aa35e494dc98ade1e7b073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/harness/src/core/components/run.rs:1226-1240 | crates/harness/src/core/components/run.rs:1243-1257 \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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa463474b8d7a8e6298bb8f6efdf223a2058af56effc7759bc195b1cfd39eef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/llm-clients/src/openai/completions.rs:767-781 | crates/llm-clients/src/openai/responses.rs:1181-1195 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/completions.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 212 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd315056cdea0b9cb3d1b01d471cf968dd0e6ab86239cdbbd1bfef15c9640a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mod.rs:4565-4577 | crates/temporal-runtime/src/gateway/service/mod.rs:4588-4602 \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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"77dd5a94f35852bb7ed6b9080a872d21f4b2ab5ac70c846916c393ceed3cdd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/tools/src/fs/local.rs:88-102 | crates/tools/src/fs/scoped_local.rs:206-220 \u2014 before extracting anything, compare \u0060crates/tools/src/fs/local.rs\u0060 and \u0060crates/tools/src/fs/scoped_local.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/local.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"564f42ff36f53671d691c5bbb7dd48495d3b42b350daaa853b94dc9a05798fda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/tools/src/workflow_tool.rs:434-448 | crates/tools/src/workflow_tool.rs:475-489 \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":"crates/tools/src/workflow_tool.rs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e552fe5821db5d35fcc99e4c9a74c0c8dfb917b06619c4c18d65b0f0a0bbd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): crates/llm-clients/src/openai/completions.rs:179-192 | crates/llm-clients/src/openai/responses.rs:238-251 | crates/llm-clients/src/openai/responses.rs:378-391 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/completions.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 212 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3c0d6248cdd6e4d66096fc83fc204a027c4dc764f8eda5180866b59e5da690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/cli/src/mcp_cli.rs:728-741 | crates/cli/src/mcp_cli.rs:776-789 \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":"crates/cli/src/mcp_cli.rs"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25cb58fa758223892d1ca259575f60e3c11d485e05d507f97dc9e857c9441c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): crates/environment-daemon/src/filesystem/search.rs:48-60 | crates/environment-daemon/src/filesystem/search.rs:82-95 \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":"crates/environment-daemon/src/filesystem/search.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e09d0c68ef96ae64d4af52a80aa34125c11b331a4913bee6cf1a111b5e785d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/llm-clients/src/openai/completions.rs:120-133 | crates/llm-clients/src/openai/responses.rs:138-151 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/completions.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 212 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"282089660998033cf780158c30141457544081c6b40be23c8825395a60baa46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/models_api.rs:241-254 | crates/temporal-runtime/src/gateway/service/models_api.rs:451-464 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/service/models_api.rs"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13380fa8766ff877cee5d7772722c1ef22701fb50905ee09a98ec9722e051f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/temporal-workflow/src/workflows/session/session_state.rs:444-457 | crates/temporal-workflow/src/workflows/session/workflow_starts.rs:231-244 \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":"crates/temporal-workflow/src/workflows/session/session_state.rs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"757165d4e3075fcac0eac71fa755c2488d64f258ce3414a686877e690e817e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/temporal-workflow/src/workflows/session/session_state.rs:459-472 | crates/temporal-workflow/src/workflows/session/workflow_starts.rs:246-259 \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":"crates/temporal-workflow/src/workflows/session/session_state.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d15349cc0d1b849229badd8af5186191cde1e76c9e0eb72b39466f6fb451779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): crates/llm-clients/src/anthropic/messages.rs:334-346 | crates/llm-clients/src/openai/completions.rs:272-284 | crates/llm-clients/src/openai/responses.rs:293-305 | crates/llm-clients/src/openai/responses.rs:456-468 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"2130dc26fab44bf372b04f370e798d27d7111dd4be88a3866542ea74db6eb3ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/llm-runtime/src/anthropic_messages.rs:1158-1170 | crates/llm-runtime/src/openai_completions.rs:845-857 | crates/llm-runtime/src/openai_responses.rs:791-803 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"940dbf5ad58546289fa68a4f9598992529d9cf827b4f8c1ab34490db702bb880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/api-projection/src/lib.rs:1372-1384 | crates/api-projection/src/lib.rs:1398-1410 \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":"crates/api-projection/src/lib.rs"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdcfc41112af5dd6d0f6b3cb89482a7147194e3ac831c5a15aaf6551c6a119f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/bots/src/poll.rs:29-41 | crates/bots/src/render.rs:306-318 \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":"crates/bots/src/poll.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bde0ba7bebf76179e4e2364cb9cbf9e21605ff572bf7baf67a0b7499503d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): crates/environments/src/memory.rs:304-316 | crates/environments/src/memory.rs:331-342 \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":"crates/environments/src/memory.rs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1065b79e6745de9ed190cc139012e1351eca52074214f6a6848bc728828729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/harness/src/core/components/turn.rs:546-558 | crates/llm-runtime/src/anthropic_messages.rs:1591-1603 \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":"crates/harness/src/core/components/turn.rs"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"310c920bd6f94d676e50d6b6a8d5f8a0e730e011b36cb22be33c4b193ae8755d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/store-pg/src/session.rs:105-117 | crates/store-pg/src/session.rs:1702-1714 \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":"crates/store-pg/src/session.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8a9326b5c67b23ea3f65938673c960f58d97eef243328e65f053f7d34c93f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/storage.rs:323-335 | crates/temporal-runtime/src/worker/activities/storage.rs:341-353 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f58f36c52e4165eacd2f992545375ad7207ef9b426eb161a75bcbba2e45c655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/temporal-workflow/src/workflows/session/drive.rs:796-808 | crates/temporal-workflow/src/workflows/session/drive.rs:895-907 \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":"crates/temporal-workflow/src/workflows/session/drive.rs"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e14069df876841e8074c934be5d4867cd108bce442672f736206dd6c429e67d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/cli/src/mcp_cli.rs:704-715 | crates/cli/src/mcp_cli.rs:747-758 | crates/cli/src/vfs_cli.rs:429-440 \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":"crates/cli/src/mcp_cli.rs"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10f104d4630e649d9bb8c6c07c6475a227f97ec8f93da7aaa67a5870bf38720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/llm-clients/src/anthropic/messages.rs:1166-1177 | crates/llm-clients/src/openai/completions.rs:742-753 | crates/llm-clients/src/openai/responses.rs:1155-1166 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d586484c4d162565ca7fb67bc6757e3dbc992e1536508661869d5a453621e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): crates/llm-runtime/src/anthropic_messages.rs:1497-1508 | crates/llm-runtime/src/openai_completions.rs:1195-1205 | crates/llm-runtime/src/openai_responses.rs:1224-1234 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b8f11bdd2f62156303ca13b2cf532784223e6044cc76b597f6195fe70a56fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/api/src/bin/export-schema.rs:15-26 | crates/temporal-workflow/src/bin/export-workflow-contract.rs:16-26 \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":"crates/api/src/bin/export-schema.rs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3752d5ddba02f33f170d145fe44c981b0d414bfe28fb2183364e632a87e9767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): crates/cli/src/chat/tui/custom_terminal.rs:129-140 | crates/cli/src/chat/tui/custom_terminal.rs:176-186 \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":"crates/cli/src/chat/tui/custom_terminal.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a821882cd5541f22bd25a6ee41f9b73f2578609ef254a8bcca2b6aaf82774e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/harness/src/core/components/approval.rs:283-294 | crates/harness/src/core/components/approval.rs:304-315 \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":"crates/harness/src/core/components/approval.rs"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"273f244feb5068ef17d9068fda82334962b071a66aabf238ffa22009aafcd429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/llm-clients/src/openai/audio.rs:274-285 | crates/llm-clients/src/openai/responses.rs:1228-1239 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/audio.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/audio.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ddd13405ec635ce1579273711158ae491ffdf893317b076492a5aeee78d221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mod.rs:1048-1059 | crates/temporal-runtime/src/gateway/service/mod.rs:1073-1084 \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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed29eebf97981dfcea63008128e2144f90b2ee50db3db144cc094916dbf7871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tools/src/fs/apply_patch/seek_sequence.rs:34-45 | crates/tools/src/fs/apply_patch/seek_sequence.rs:47-58 \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":"crates/tools/src/fs/apply_patch/seek_sequence.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68c98197dc052630070179484f58f9c74b7be3dd2cf77203956a33b9b469f6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/tools/src/fs/vfs.rs:523-534 | crates/tools/src/fs/vfs.rs:682-693 \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":"crates/tools/src/fs/vfs.rs"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda4339645714957ea8df73fc06b32c4b0e5781c34f44d5b9c3d72a512024d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/cli/src/auth_cli.rs:730-740 | crates/cli/src/auth_cli.rs:773-783 | crates/cli/src/auth_cli.rs:790-800 | crates/cli/src/auth_cli.rs:1356-1366 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/auth_cli.rs"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4b9fdbf3cf2b8aaa08e64c3f85b4cabd85ab59b6975cd425d56bf0f0b82fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/cli/src/auth_cli.rs:1092-1102 | crates/cli/src/auth_cli.rs:1116-1126 | crates/cli/src/auth_cli.rs:1217-1227 | crates/cli/src/auth_cli.rs:1279-1289 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/auth_cli.rs"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afb8b91e398005bc24faf596443a0cd863858027edb3bd8eef203e17be86d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): crates/llm-clients/src/anthropic/messages.rs:1256-1266 | crates/llm-clients/src/openai/audio.rs:300-310 | crates/llm-clients/src/openai/completions.rs:843-853 | crates/llm-clients/src/openai/responses.rs:1254-1264 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85a11207d6648a48a31eb10d7544f819c40b3008509a4ea70b55c738c7f877d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/llm-clients/src/openai/audio.rs:120-130 | crates/llm-clients/src/openai/completions.rs:125-135 | crates/llm-clients/src/openai/responses.rs:143-153 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/audio.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/audio.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b31129c292d52f2409530e79a97f34b1325499a6fad0a6d97e278597a88423e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/cli/src/auth_cli.rs:850-860 | crates/cli/src/auth_cli.rs:890-900 \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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7c4a6d04b59b4e8b5b354dfdad665e2c753f53ed0a90993f4a372945ecad97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/cli/src/connection.rs:578-588 | crates/cli/src/connection.rs:690-700 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/connection.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"b916d116786aad65239cf3dc62e3d73657a969bfdf1420cd86c7bc8d49b2faf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/cli/src/mcp_cli.rs:629-639 | crates/cli/src/mcp_cli.rs:672-682 \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":"crates/cli/src/mcp_cli.rs"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0c667a96c96dd4d3426a6dca164753a2c0ff70f8011965cd9d11d8a6985089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/environment-daemon/src/filesystem/transfer/mod.rs:863-873 | crates/environment-daemon/src/filesystem/transfer/mod.rs:929-939 \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":"crates/environment-daemon/src/filesystem/transfer/mod.rs"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc677510b2815959415fd35e5ae4e5b4262b3e26c9ce3c9f5cab02b57c21b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/harness/src/core/components/run.rs:1220-1230 | crates/temporal-runtime/src/gateway/service/mod.rs:343-353 \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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ca657c7bb5b09816a5df5c882718b8886bc2515349d8567f3bfbe96d7a97ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/harness/src/core/components/tooling.rs:856-866 | crates/harness/src/core/components/tooling.rs:901-911 \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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"987b9d84ba88668fc57503b36e6b65e82857ce959955ca1bd2797728a2ebc4ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/harness/src/storage/session.rs:801-811 | crates/harness/src/storage/session.rs:818-828 \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":"crates/harness/src/storage/session.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b02448d028f06fdaf0466ba0c3a939e3e7b77ae2ea79f926c19ed778c081abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/harness/src/storage/session.rs:1407-1417 | crates/store-pg/src/session.rs:1696-1706 \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":"crates/harness/src/storage/session.rs"},"region":{"startLine":1407}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead4ee1644dab7f07e10263013bded9524927eb977ddbc3da12dda330a552dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/llm-clients/src/openai/responses.rs:317-326 | crates/llm-clients/src/openai/responses.rs:337-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":"crates/llm-clients/src/openai/responses.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0459325a06866d865fb54fc64f3057eb302bc1b4ffdb43259444c9a34dfc7434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/llm-runtime/src/anthropic_messages.rs:716-726 | crates/llm-runtime/src/openai_responses.rs:530-540 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"4371320d30b7e8794b0783fcae8a48c2ded28b5fac9f0e4bf8740cc09700d360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mod.rs:2181-2191 | crates/temporal-runtime/src/gateway/service/mod.rs:2647-2657 \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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f9f97f175dfa25ac1f4310b52362e60e2471bdd026a1d363c70208adc1a8b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/temporal-runtime/src/worker/session_tools.rs:181-190 | crates/temporal-runtime/src/worker/session_tools.rs:205-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69d345e0f7e38f6c54a3f3274cb6ca6f81fcd9605bf5449827c610b267c54ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/temporal-runtime/src/worker/session_tools.rs:942-952 | crates/temporal-runtime/src/worker/session_tools.rs:985-996 \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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f78c8c2424aa6656f831f5e6873ea5b0896b0ac8456724bc263502e18f3dd7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/temporal-workflow/src/workflows/session/activity_calls.rs:39-49 | crates/temporal-workflow/src/workflows/session/activity_calls.rs:101-111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-workflow/src/workflows/session/activity_calls.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"115933e28504c61deb3e7ac036016f72f0f6b655b38b8a32123df0d4eb071a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tools/src/concurrency.rs:225-235 | crates/tools/src/concurrency.rs:269-279 \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":"crates/tools/src/concurrency.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30e9ee5e8c0c2c10fb2215c742a9515968447b723401439d08c705ddab9c619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tools/src/fs/local.rs:140-150 | crates/tools/src/fs/scoped_local.rs:277-287 \u2014 before extracting anything, compare \u0060crates/tools/src/fs/local.rs\u0060 and \u0060crates/tools/src/fs/scoped_local.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/local.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac18ef3489d7921a80de4823beb247a3348c410afd326c6510f89a66d252459b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tools/src/prompts/vfs.rs:125-135 | crates/tools/src/skills/vfs.rs:143-153 \u2014 \u0060crates/tools/src/prompts/vfs.rs\u0060 and \u0060crates/tools/src/skills/vfs.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 48 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/vfs.rs"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c47d1c31979b3bcac054296c6c1d6694ff6204e8d94655d86844140aca160e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 13): crates/llm-clients/src/anthropic/messages.rs:290-298 | crates/llm-clients/src/anthropic/messages.rs:312-321 | crates/llm-clients/src/anthropic/messages.rs:360-369 | crates/llm-clients/src/openai/completions.rs:186-195 | crates/llm-clients/src/openai/completions.rs:242-250 | crates/llm-clients/src/openai/responses.rs:206-214 | crates/llm-clients/src/openai/responses.rs:245-254 | crates/llm-clients/src/openai/responses.rs:269-278 | crates/llm-clients/src/openai/responses.rs:318-327 | crates/llm-clients/src/openai/responses.rs:339-348 | crates/llm-clients/src/openai/responses.rs:385-394 | crates/llm-clients/src/openai/responses.rs:411-420 | crates/llm-clients/src/openai/responses.rs:433-442 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a6291c01b10102b4ccf836a6241f185a12ac177a480b745bcc8c3aaa3aa9ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/cli/src/mcp_cli.rs:732-741 | crates/cli/src/mcp_cli.rs:780-789 | crates/cli/src/vfs_cli.rs:456-465 \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":"crates/cli/src/mcp_cli.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"7641bb4e41635a0b8369ddceb6717655d1ab3d159489d436a22e0fd0309cd790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/harness/src/core/components/tooling.rs:835-844 | crates/harness/src/core/components/tooling.rs:888-897 | crates/harness/src/core/components/tooling.rs:928-937 \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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cb1cc95f88785b0dda7eb5beb8aad4252f57e4e2b3d739e990cdbd44e362b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): crates/harness/src/storage/session.rs:1411-1420 | crates/store-pg/src/session.rs:104-112 | crates/store-pg/src/session.rs:1700-1709 \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":"crates/harness/src/storage/session.rs"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f95e036c97f70f3941300d79f75ade47a93fa43ddaae10e0f1d773045cd314e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/llm-runtime/src/openai_completions.rs:212-221 | crates/llm-runtime/src/openai_completions.rs:279-288 | crates/llm-runtime/src/openai_responses.rs:201-210 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/openai_completions.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a9c9c25833cac7e18b46506eaf49e196a742d919e184f242c077d97bb50114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/cli/src/auth_cli.rs:746-755 | crates/cli/src/mcp_cli.rs:645-654 \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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e316be754c1714fe3debefa9f392507e42cb33e731516914b7ac8bde813a062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/cli/src/auth_cli.rs:948-957 | crates/cli/src/mcp_cli.rs:570-579 \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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b72f1ccfdc77d9b163f635b70bbee595f445d7e18f17850e9c5ddf5a8a77da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/cli/src/auth_cli.rs:992-1001 | crates/cli/src/auth_cli.rs:1030-1039 \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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3d98ae0d2cc847ea02376943744475eb7f9dfed03824c2fba881e7311ddd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/environment-daemon/src/filesystem/confinement.rs:183-192 | crates/environment-daemon/src/filesystem/transfer/mod.rs:149-158 \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":"crates/environment-daemon/src/filesystem/confinement.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c733116b7cb77218842c26738a59446da0d05698b5d5c6f392d30456b355b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/environment-provider-incus/src/server.rs:795-804 | crates/environment-provider-incus/src/server.rs:830-839 \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":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8493fdabc45cdecfe67fd02b7dc4d488053f12ff3eab727251528a84d3730b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/llm-clients/src/openai/responses.rs:264-273 | crates/llm-clients/src/openai/responses.rs:288-297 \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":"crates/llm-clients/src/openai/responses.rs"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"da13a2f0d78625862ac936a43a06ed9d0e14566769903624f196f8cfa1bc45c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/llm-runtime/src/anthropic_messages.rs:1776-1785 | crates/llm-runtime/src/openai_completions.rs:1260-1269 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcabf074514a5b069b89de20147c20d7638c1e3c8f9d9897a2150ff46e12ea32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/llm-runtime/src/openai_completions.rs:454-463 | crates/llm-runtime/src/openai_completions.rs:496-505 \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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"b850da5cd681719197fb44235900ac346580df7e05a2affd58b9a085a1a3d68f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/llm-runtime/src/openai_completions.rs:478-487 | crates/llm-runtime/src/openai_completions.rs:516-525 \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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4292f6606a7f3538cdf633a542763f005120e73e4fb26ad5c31e2da669d75d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/store-pg/src/environment.rs:548-557 | crates/store-pg/src/environment.rs:591-600 \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":"crates/store-pg/src/environment.rs"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2dbf7a4d1e45fac26a843c0b7c575af87d782211929ea803505ab0e911b485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/state.rs:594-603 | crates/temporal-runtime/src/worker/activities/state.rs:622-631 \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":"crates/temporal-runtime/src/worker/activities/state.rs"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ed83c9a43a29537c6dd9a2de084e728a8fa8448a9e2d403bf89d2c5572e71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/temporal-workflow/src/workflows/bots/controller.rs:306-315 | crates/temporal-workflow/src/workflows/channels/conversation.rs:289-298 \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":"crates/temporal-workflow/src/workflows/bots/controller.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad1857f42ea338eca8accf1209c4e0bb9d30c3131d821469d9c5cb0851301c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/temporal-workflow/src/workflows/session/drive.rs:785-794 | crates/temporal-workflow/src/workflows/session/drive.rs:884-893 \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":"crates/temporal-workflow/src/workflows/session/drive.rs"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd087714b1e82f5f3b91a35c0faf1623ecbf10957a2913e6074cf51920f1285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tools/src/fs/local.rs:118-127 | crates/tools/src/fs/scoped_local.rs:238-247 \u2014 before extracting anything, compare \u0060crates/tools/src/fs/local.rs\u0060 and \u0060crates/tools/src/fs/scoped_local.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/local.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9b6ea5d6ce56b23fe038e9d47f0adb15ecdd75d4b20765accd03336820455e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tools/src/runtime/inline.rs:329-338 | crates/tools/src/runtime/inline.rs:393-402 \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":"crates/tools/src/runtime/inline.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac0009d0608d24dd0ae087487d8df500d540e3276f0b19a8b93abe0df33a84c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/harness/src/core/components/context.rs:2281-2289 | crates/temporal-runtime/src/gateway/service/mod.rs:429-437 | crates/tools/src/prompts/assembler.rs:700-708 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/harness/src/core/components/context.rs"},"region":{"startLine":2281}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2298e6bc0ed7dbc1e483b9e940c57dbbe4268afc0b495601e0b6fecfb6a238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): crates/llm-clients/src/openai/responses.rs:267-274 | crates/llm-clients/src/openai/responses.rs:291-298 | crates/llm-clients/src/openai/responses.rs:408-416 \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":"crates/llm-clients/src/openai/responses.rs"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae348a2dc79d9af21e87289d21806f44cb4e244fde3a8903c6d747054ab11c3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/temporal-runtime/src/worker/activities/state.rs:321-329 | crates/temporal-runtime/src/worker/activities/state.rs:352-360 | crates/temporal-runtime/src/worker/activities/state.rs:410-418 \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":"crates/temporal-runtime/src/worker/activities/state.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8893bdf7545bd4bca309877b223af32c0462e56572412e763faadd6c5469c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/bots/src/views.rs:281-289 | crates/bots/src/views.rs:310-317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/bots/src/views.rs"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"642543b759c2aca34cd102ecd149d9258ed1606b460cc5f04bb547f2ba233853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/cli/src/env_cli.rs:319-327 | crates/cli/src/env_cli.rs:337-345 \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":"crates/cli/src/env_cli.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"340f72b542c10059da816153b6a105f770d525b32aa4ca00184bc10a01f139c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/harness/src/core/components/run.rs:1325-1333 | crates/harness/src/core/components/run.rs:1346-1354 \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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27eb0910d24996f6d906564083bbb66f893f8e28899f375168268f80572e7d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/llm-clients/src/openai/completions.rs:142-150 | crates/llm-clients/src/openai/responses.rs:160-168 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/completions.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 212 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de499f44e0e4b4301a4a71e64ee2141b264fe32e71355ed8783018316544df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/llm-runtime/src/openai_completions.rs:272-280 | crates/llm-runtime/src/openai_responses.rs:365-373 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/openai_completions.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc6d970ee57b5db8c37ae5b0d3d6eb710fd971b9a5d4cc76433fa1fdff0652e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/store-pg/src/mcp.rs:521-529 | crates/store-pg/src/mcp.rs:538-546 \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":"crates/store-pg/src/mcp.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"4636f0721e140947ed3153c21050925f28847a9ba6b5e447853f57845013ee3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/temporal-runtime/src/environments/lifecycle.rs:686-692 | crates/temporal-runtime/src/environments/lifecycle.rs:1084-1092 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/environments/lifecycle.rs"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbdb8099adbdd0050429098c292c7be5b91f58163717a45af9bbd88a640e37c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/workflow.rs:142-149 | crates/temporal-runtime/src/gateway/service/workflow.rs:207-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/service/workflow.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42360d57ae23897c31318a1e9de848eee6e6e9715910b2ce3b2bf358e8e85ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tools/src/fs/local.rs:131-139 | crates/tools/src/fs/scoped_local.rs:261-269 \u2014 before extracting anything, compare \u0060crates/tools/src/fs/local.rs\u0060 and \u0060crates/tools/src/fs/scoped_local.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/local.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"75542c406ceaad9f532ee21a3dec7433412405b184d724acc2d00e985d29a65d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/harness/src/storage/session.rs:801-808 | crates/harness/src/storage/session.rs:818-825 | crates/harness/src/storage/session.rs:840-847 \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":"crates/harness/src/storage/session.rs"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"899fe5d00dadca646dd2baaf61884ab4deb363bda8dc75aafa5b49718ffc9522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/llm-clients/src/anthropic/messages.rs:1240-1247 | crates/llm-clients/src/openai/audio.rs:280-287 | crates/llm-clients/src/openai/responses.rs:1234-1241 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"440fce09fed6b9dd39071a35a9fa12d8f20b3634f2a07f8f7869d85810dd6d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/auth/src/mcp_oauth.rs:668-675 | crates/auth/src/mcp_oauth.rs:696-703 \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":"crates/auth/src/mcp_oauth.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf9cd712e7e33031b520981e20d4b7360567b913ba589ac6bfd81d9a6953e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): crates/cli/src/chat/tui/bottom_pane/list_selection.rs:209-215 | crates/cli/src/chat/tui/bottom_pane/list_selection.rs:282-289 \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":"crates/cli/src/chat/tui/bottom_pane/list_selection.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fd43dc12755404ed3afbf5be243cb8d88d05136cfca36a593e68e08f59b239"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/environment-daemon/src/jobs.rs:494-501 | crates/environment-daemon/src/process.rs:436-443 \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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"79151fef39bec9473e5d578a7f00b14dc7b74867d83ae576c4b9e1e3bcfdd416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/temporal-runtime/src/worker/mcp.rs:901-908 | crates/temporal-runtime/src/worker/mcp.rs:925-932 \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":"crates/temporal-runtime/src/worker/mcp.rs"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c3c758ac302479265ff6c269d38aed0b6d25aadd5a96d40c22117998014a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/temporal-runtime/src/worker/session_tools.rs:827-834 | crates/tools/src/environment/jobs.rs:795-802 \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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"b420337c16af5e558bca42abead4f1da38f85ac7cb71bfb81658fd12411f6595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/temporal-workflow/src/workflows/bots/controller.rs:318-325 | crates/temporal-workflow/src/workflows/channels/conversation.rs:301-308 \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":"crates/temporal-workflow/src/workflows/bots/controller.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9b251514ac72636ba0efbec833a7431d8466175f39c04b49e7d816f86da72c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tools/src/fs/memory.rs:68-75 | crates/tools/src/fs/vfs.rs:949-956 \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":"crates/tools/src/fs/memory.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b772cdd58d2a50f77b93826ec6ebcf58d20d48397ff1e3e7ceb9ed74acd11ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tools/src/prompts/vfs.rs:298-305 | crates/tools/src/skills/vfs.rs:300-307 \u2014 \u0060crates/tools/src/prompts/vfs.rs\u0060 and \u0060crates/tools/src/skills/vfs.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 48 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/vfs.rs"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"30991228af6f71d78ef0d1b2cdfbe03094eb7a044fae0051b36da1b511ea4c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tools/src/runtime/inline.rs:359-366 | crates/tools/src/runtime/inline.rs:422-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/runtime/inline.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb4fb021c107b4a7274635facf99f85b3ff38f9a23fe7e1ce0372927d2f18b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/llm-clients/src/anthropic/messages.rs:359-365 | crates/llm-clients/src/openai/completions.rs:271-277 | crates/llm-clients/src/openai/responses.rs:432-438 | crates/llm-clients/src/openai/responses.rs:455-461 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d037e945caea9ca0c553dd6cbddcf258859cb16bf83f3456d5c88a75650379"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): crates/temporal-runtime/src/gateway/service/mod.rs:2180-2186 | crates/temporal-runtime/src/gateway/service/mod.rs:2531-2537 | crates/temporal-runtime/src/gateway/service/mod.rs:2646-2652 | crates/temporal-runtime/src/gateway/service/mod.rs:3700-3706 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2e7fe908b40a5dd05e51cd96bb326273f72d2363a81f892cb78fe9f2224853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/temporal-runtime/src/worker/activities/state.rs:597-603 | crates/temporal-runtime/src/worker/activities/state.rs:609-615 | crates/temporal-runtime/src/worker/activities/state.rs:625-631 \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":"crates/temporal-runtime/src/worker/activities/state.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"44444368e37f1ac947dd5de0676547a87b0a2661252a8177375211b7f32fa84f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crates/cli/src/chat/tui/cell.rs:661-667 | crates/cli/src/chat/tui/cell.rs:674-679 \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":"crates/cli/src/chat/tui/cell.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0bed8b8c0d5fadd6b9e0ab9651540c5a5f41cfe344781434f6599184c6a796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/environment-daemon/src/filesystem/transfer/capture.rs:295-301 | crates/environment-daemon/src/filesystem/transfer/publish.rs:859-865 \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":"crates/environment-daemon/src/filesystem/transfer/capture.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2748266525ece8c588058baf60806a09550d5f0b66d21b3cfb8a36702a8196e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/environment-provider-incus/src/server.rs:194-200 | crates/temporal-runtime/src/environments/fake_controller.rs:277-283 \u2014 before extracting anything, compare \u0060crates/environment-provider-incus/src/server.rs\u0060 and \u0060crates/temporal-runtime/src/environments/fake_controller.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f075f1d959834e6e7e875ccfec61d6c1be6a64ed6e93f1e9541c30e686e58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/eval/src/main.rs:1156-1162 | crates/eval/src/main.rs:1166-1172 \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":"crates/eval/src/main.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d58def310aa364506f3ae621863eb6cc21d1adcc67326fbe99a749639ffea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/llm-clients/src/anthropic/messages.rs:311-317 | crates/llm-clients/src/anthropic/messages.rs:333-339 \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":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a0a6b97ed99fd0b84b39b8002865e2ec453e431253f7d7c526b7266100493f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/store-pg/src/bots.rs:597-603 | crates/store-pg/src/bots.rs:654-660 \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":"crates/store-pg/src/bots.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c806a960d850d0cf6ddb478bdbaebfe2d6edb024a02c58392809d85fbeb3e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/temporal-runtime/src/channels/control_plane.rs:250-256 | crates/temporal-runtime/src/channels/control_plane.rs:265-271 \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":"crates/temporal-runtime/src/channels/control_plane.rs"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"077eedc05d5f8225a902741f3773cceb7b4d93c36c68923c21dcef8e36c16a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mod.rs:2187-2193 | crates/temporal-runtime/src/gateway/service/skills.rs:33-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9966ef123376a086c1c66c1e56c7d02f4abf703eb129d85eba01d382eecdcce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/state.rs:344-350 | crates/temporal-runtime/src/worker/activities/state.rs:402-408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/state.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb60d411a2a7f7930cf644e288a6582d23d7e7de349eba87ee1763e90aae8a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tools/src/fs/apply_patch/seek_sequence.rs:26-32 | crates/tools/src/fs/apply_patch/seek_sequence.rs:39-45 \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":"crates/tools/src/fs/apply_patch/seek_sequence.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"793a5efcc6b49b7597730bc7254a9535cdec34c63bd12ca276319c6c285ba5f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/tools/src/prompts/assembler.rs:156-162 | crates/tools/src/skills/catalog.rs:122-128 \u2014 before extracting anything, compare \u0060crates/tools/src/prompts/assembler.rs\u0060 and \u0060crates/tools/src/skills/catalog.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/assembler.rs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8cb5eff7be701e2c602000cfad51c881150d8eae15a9264343d687dbac71f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/vfs/src/snapshot.rs:706-712 | crates/vfs/src/snapshot.rs:723-729 \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":"crates/vfs/src/snapshot.rs"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"df92df96a94348b4a9b6bc1c7428653622281357e311aee3b2abe816037b14fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/harness/src/core/components/tooling.rs:1840-1845 | crates/harness/src/core/components/tooling.rs:1907-1912 | crates/harness/src/core/components/tooling.rs:2023-2028 \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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"9182bd5f1413ca78ce33124bfbc0dca4ba26c7caed89a90516d4c494f03618a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/temporal-runtime/src/gateway/service/mod.rs:3102-3107 | crates/temporal-runtime/src/gateway/service/mod.rs:3127-3132 | crates/temporal-runtime/src/gateway/service/mod.rs:3352-3357 \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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":3102}}}],"partialFingerprints":{"codehealthFindingId/v1":"698e0a2cd5eed0ac19e49c3ba18a2a8202b5c982b4b50d82cf38226f19013444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/store-pg/src/cas_sweep.rs:162-167 | crates/store-pg/src/cas_sweep.rs:284-289 \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":"crates/store-pg/src/cas_sweep.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"067b1adafc1bac69b5f57e148ac05723f8fe007098e96f788e51d53009544393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mod.rs:2241-2246 | crates/temporal-runtime/src/gateway/service/mod.rs:3057-3062 \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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"892b6d0b3b12113e22938de6694b81457c12947de3ff3c930f8059d8c01a1ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/session_preparation.rs:101-106 | crates/temporal-runtime/src/gateway/service/session_preparation.rs:186-213 \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":"crates/temporal-runtime/src/gateway/service/session_preparation.rs"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0085b915710d60732abfe063abb8f4668253e3023316279d0e6e95bb4037d042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/temporal-workflow/src/workflows/channels/conversation.rs:1067-1072 | crates/temporal-workflow/src/workflows/channels/conversation.rs:1304-1309 \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":"crates/temporal-workflow/src/workflows/channels/conversation.rs"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd697b63dfb7ad0864c72c28c7c42dea1461db471249f896da1c57f65c8ebb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/environment-daemon/src/filesystem/confinement.rs:154-158 | crates/environment-daemon/src/filesystem/confinement.rs:193-197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/filesystem/confinement.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae74e99141fe156e79bb2a4b43d31a2b26bd0fd7e2cb79d96d3c8fcd076abf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/environment-provider-incus/src/server.rs:413-417 | crates/temporal-runtime/src/environments/fake_controller.rs:405-409 \u2014 before extracting anything, compare \u0060crates/environment-provider-incus/src/server.rs\u0060 and \u0060crates/temporal-runtime/src/environments/fake_controller.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8edfd212225169dda1ad7ef550a5da52b3b37fb2d4a2aa1959ca90e1f1d9681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (166 lines \u00D7 2): crates/temporal-workflow/src/activities.rs:73-360 | crates/temporal-workflow/src/workflows/bots/activities.rs:41-206 \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":"crates/temporal-workflow/src/activities.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd58b09ec93242e1cf4c8a537ba22fd66e43beaa372e02231eaeb7e15c90c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/bots/src/filter.rs:268-273 | crates/bots/src/poll.rs:332-337 | crates/bots/src/webhook.rs:288-293 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/bots/src/filter.rs"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4661585dd7bd3d8e1de19bc573b7f984c681b4f1002605f88673f0689119b381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/cli/src/chat/driver.rs:2252-2263 | crates/cli/src/chat/tui/cell.rs:696-707 \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":"crates/cli/src/chat/driver.rs"},"region":{"startLine":2252}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaef241df7f7c030e3288db6d00e2c2219b08fd863bc8e618a40a39aa847ffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/cli/src/chat/tui/app.rs:620-638 | crates/cli/src/chat/tui/bottom_pane/mod.rs:465-483 \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":"crates/cli/src/chat/tui/app.rs"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"90af4aa1f2bfde20dbe286001d74d23beefe9f83c3ec4c9ed8d5cae5116cf6dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/cli/src/chat/tui/cell.rs:496-505 | crates/cli/src/chat/tui/markdown.rs:386-395 \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":"crates/cli/src/chat/tui/cell.rs"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"569184a851af84bca9495789bd553a9aaaa895cb45dfa7250b520a0746b10d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/environment-daemon/src/filesystem/os_unix.rs:371-375 | crates/environment-daemon/src/filesystem/os_windows.rs:694-698 \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":"crates/environment-daemon/src/filesystem/os_unix.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae8b48a58c6de25f29966c68ff3234093065f988d9dc574aa3396bd9b94c11f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/environments/src/lib.rs:137-144 | crates/temporal-runtime/src/gateway/service/bots_api.rs:63-70 \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":"crates/environments/src/lib.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8549b0abf1538efae686e28e1d7339e2f1e852f91ac289da643ac658da699cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/environments/src/lib.rs:2432-2441 | crates/store-pg/src/environment_registration.rs:467-476 \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":"crates/environments/src/lib.rs"},"region":{"startLine":2432}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c55563103297be820279c4cb95543e56bdec7360ff3778f110d19fd5ebe691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/eval/src/main.rs:982-991 | crates/temporal-workflow/src/workflows/session/bootstrap.rs:155-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/eval/src/main.rs"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"73089d6dcef63c0ac86766e7c31f0e6bd066afc4f7530430562321186f191de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/harness/src/storage/blobs.rs:474-479 | crates/temporal-runtime/src/worker/reaper.rs:1314-1319 \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":"crates/harness/src/storage/blobs.rs"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e60be7fc8d8001e6e22494328df31c373629a25540a130b93ba1b9fa5c34df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/llm-clients/src/openai/audio.rs:64-71 | crates/llm-clients/src/openai/completions.rs:64-71 | crates/llm-clients/src/openai/responses.rs:71-78 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/audio.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/audio.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c06a5b97380985b64716b737ad798da33a75f32880b47ab3455c7543140ee65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/llm-clients/src/openai/audio.rs:73-81 | crates/llm-clients/src/openai/completions.rs:73-81 | crates/llm-clients/src/openai/responses.rs:80-88 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/audio.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/audio.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3780fe29f8454b3b4f47627a83d74523eea1a036bad89877444aedb05308c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/llm-clients/src/openai/audio.rs:261-266 | crates/llm-clients/src/openai/responses.rs:501-506 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/audio.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/audio.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"65eebf701722ff8f180bd75a0cd520c0df280e85975acab273fe9f4404d884a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/llm-runtime/src/anthropic_messages.rs:905-913 | crates/llm-runtime/src/openai_responses.rs:611-619 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"67dcbe158f2e2c4ccd04454b7553c9d990ba460125daf5c07c7a4f13f6c33588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/llm-runtime/src/anthropic_messages.rs:1402-1412 | crates/llm-runtime/src/openai_completions.rs:1447-1457 | crates/llm-runtime/src/openai_responses.rs:1048-1058 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_completions.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"596d3704a82ef98dbffc2b383098c7628412fda3b4a55c92ade12d369142aa1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/store-pg/src/environment.rs:1699-1708 | crates/temporal-runtime/src/environments/lifecycle.rs:107-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/environment.rs"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c26048e11630ce06160dbee17390ff32ea6e2706c382570b68214172b6745d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): crates/store-pg/src/shared.rs:55-60 | crates/temporal-runtime/src/environments/lifecycle.rs:151-156 | crates/temporal-runtime/src/gateway/http.rs:1100-1105 | crates/temporal-runtime/src/gateway/registration.rs:1780-1785 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/shared.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e683d7c7bccd105bb1af6d417bd34294afeccc24c43c7f668501c36e1b9d6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/temporal-workflow/src/workflows/session/admissions.rs:253-257 | crates/test-support/src/runner/drive.rs:613-617 \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":"crates/temporal-workflow/src/workflows/session/admissions.rs"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8766c3a865f05a0fca6a4df5388e112e0c98ea886b0f779929d6240f264bd54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tools/src/fs/local.rs:197-201 | crates/tools/src/fs/scoped_local.rs:319-323 \u2014 before extracting anything, compare \u0060crates/tools/src/fs/local.rs\u0060 and \u0060crates/tools/src/fs/scoped_local.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/local.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c9a883032bae1c9133868dda1487ab571b8e07009177829d4ff2a11d9c2257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tools/src/fs/vfs.rs:1044-1053 | crates/vfs/src/snapshot.rs:787-796 \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":"crates/tools/src/fs/vfs.rs"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"646b4459021640b039d411a42e7991bf2556f0602a300ee2304085139b8b464c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tools/src/prompts/assembler.rs:661-668 | crates/tools/src/skills/catalog.rs:476-483 \u2014 before extracting anything, compare \u0060crates/tools/src/prompts/assembler.rs\u0060 and \u0060crates/tools/src/skills/catalog.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/assembler.rs"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"969049962d36b69ff858bf65d807a1d775c84dd9b8cc3d708d93fffd8462e741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tools/src/prompts/assembler.rs:674-679 | crates/tools/src/skills/catalog.rs:485-490 \u2014 before extracting anything, compare \u0060crates/tools/src/prompts/assembler.rs\u0060 and \u0060crates/tools/src/skills/catalog.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/assembler.rs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bff3983ab15fa236f7bfb8b20c8d29183e3fe7cebf32352cae383c2f50085d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tools/src/prompts/vfs.rs:224-231 | crates/tools/src/skills/vfs.rs:226-233 \u2014 \u0060crates/tools/src/prompts/vfs.rs\u0060 and \u0060crates/tools/src/skills/vfs.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 48 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/vfs.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7868212fe824f029287d3357d2eadc5f775f19b74a70bbbbba3a82f8bdbcd212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/api-projection/src/lib.rs:2384-2391 | crates/temporal-runtime/src/gateway/service/api_config.rs:437-444 \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":"crates/api-projection/src/lib.rs"},"region":{"startLine":2384}}}],"partialFingerprints":{"codehealthFindingId/v1":"84206f6c590bbac86c37f9622963e18b59b0331b5986e5bd3b8533f2b3aeccb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/api-projection/src/lib.rs:2517-2522 | crates/temporal-runtime/src/gateway/service/mcp_api.rs:428-433 \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":"crates/api-projection/src/lib.rs"},"region":{"startLine":2517}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a72498a38529fadb5bcda8d9bb10ad147cb11e9cddfc844ba1aa4bc013b7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/auth/src/broker.rs:543-547 | crates/auth/src/flow.rs:426-430 \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":"crates/auth/src/broker.rs"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"b940c5a229ea7caf859ed2368752954e96c08c3dfc29f4f70d984f17d35601e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/auth/src/lib.rs:235-242 | crates/mcp/src/lib.rs:794-801 \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":"crates/auth/src/lib.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2167233ff56c87c6f14c1c762b51b547b23a8875c9e33cde92cebaaf5f894903"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/auth/src/lib.rs:257-264 | crates/mcp/src/lib.rs:803-810 \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":"crates/auth/src/lib.rs"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6e7ae6b04020485a73ca1783d73c40dfe78af5919e61699437c62cba272b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/bots/src/views.rs:596-602 | crates/channels/src/media.rs:214-220 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/bots/src/views.rs"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa0c989bfcfa78e1e8ed12a6f7081195a612d46712bebb8a7b98f4de0e27c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/environment-client/src/controller.rs:79-87 | crates/environment-client/src/data.rs:104-112 \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":"crates/environment-client/src/controller.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bc8dfe621718c91e94b7edc0abf6d5577db6cbb7dac9426e186ba4144fe48f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/harness/src/blob.rs:70-77 | crates/harness/src/emission.rs:30-37 \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":"crates/harness/src/blob.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fc805d938c2ea434b13f8435870befb46534d9cfc74e9b8c7b57c007d3d4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/llm-clients/src/openai/audio.rs:40-52 | crates/llm-clients/src/openai/responses.rs:45-57 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/audio.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/audio.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b919c0141ed6f3a6ad44425d7d45f4fe8f0fb9bfe59543aa04cbdb3edb2297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/models_api.rs:708-713 | crates/temporal-runtime/src/universe.rs:460-465 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/gateway/service/models_api.rs"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f4d8f119d58b5d85ea17c88b57bfd3b6f627fbdaba2d9391cd7720df69d66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tools/src/prompts/assembler.rs:591-596 | crates/tools/src/skills/catalog.rs:362-367 \u2014 before extracting anything, compare \u0060crates/tools/src/prompts/assembler.rs\u0060 and \u0060crates/tools/src/skills/catalog.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/assembler.rs"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c93fefd714b167555234780a7b18320a8c4e7d41afe9de70e5b1c10a7592b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tools/src/prompts/assembler.rs:692-697 | crates/tools/src/skills/catalog.rs:503-508 \u2014 before extracting anything, compare \u0060crates/tools/src/prompts/assembler.rs\u0060 and \u0060crates/tools/src/skills/catalog.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/assembler.rs"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37b98cd75feaee7a691435722b5da7df65ead1dd6da4cfb5a9c5ed29ee9a5ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tools/src/prompts/vfs.rs:55-64 | crates/tools/src/skills/vfs.rs:73-82 \u2014 \u0060crates/tools/src/prompts/vfs.rs\u0060 and \u0060crates/tools/src/skills/vfs.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 48 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/vfs.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"25629e3da8bedcf1c200c42caf68963a86971f8f391971bfde8bb54f4ae86205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/tools/src/prompts/vfs.rs:233-243 | crates/tools/src/skills/vfs.rs:235-245 \u2014 \u0060crates/tools/src/prompts/vfs.rs\u0060 and \u0060crates/tools/src/skills/vfs.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 48 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/prompts/vfs.rs"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de2a43ab99cb78ff7da4702f75dd4dec2b13b9caa7df5f319b8e6cc5482c910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): crates/store-pg/src/mcp.rs:244-296 | crates/store-pg/src/mcp.rs:337-384 \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":"crates/store-pg/src/mcp.rs"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fb70a9d93f46b456c8a56f7d5608b54d7e1c63c41286899407f900920f2ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): crates/store-pg/src/auth.rs:246-279 | crates/store-pg/src/oauth.rs:76-106 | crates/store-pg/src/oauth.rs:214-244 \u2014 before extracting anything, compare \u0060crates/store-pg/src/auth.rs\u0060 and \u0060crates/store-pg/src/oauth.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/auth.rs"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dd18df2e6b574a41a7c00a61bbae246a48063063df57c68e8286e9fbc0d032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): crates/store-pg/src/profile.rs:22-50 | crates/store-pg/src/profile.rs:226-250 \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":"crates/store-pg/src/profile.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b459fb08a88c7de6d86cdccc3a05205ca5970731f01f129fb3c91e0d5e66153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/store-pg/src/environment_registration.rs:146-162 | crates/store-pg/src/environment_registration.rs:188-203 \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":"crates/store-pg/src/environment_registration.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dea98fb0e3c979e7d7288e4a841b1fbd41063d9775e4eaa1848d527f1f0f5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): crates/store-pg/src/auth.rs:452-466 | crates/store-pg/src/bots.rs:357-373 | crates/store-pg/src/channels.rs:282-291 | crates/store-pg/src/channels.rs:326-336 | crates/store-pg/src/environment.rs:1284-1292 | crates/store-pg/src/oauth.rs:321-337 \u2014 before extracting anything, compare \u0060crates/store-pg/src/auth.rs\u0060 and \u0060crates/store-pg/src/oauth.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/auth.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f1c4ba21d1bc5a98be8db04d68efdb25cbe8f6ae4598d1ba42a538b784a019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): crates/store-pg/src/auth.rs:452-466 | crates/store-pg/src/bots.rs:357-373 | crates/store-pg/src/bots.rs:1079-1088 | crates/store-pg/src/channels.rs:282-291 | crates/store-pg/src/channels.rs:326-336 | crates/store-pg/src/environment.rs:1284-1292 | crates/store-pg/src/oauth.rs:321-337 \u2014 before extracting anything, compare \u0060crates/store-pg/src/auth.rs\u0060 and \u0060crates/store-pg/src/oauth.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/auth.rs"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5b224db261b53a8d2920082f9003b011fbe9dc343fe93dd7609702f67cc818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/store-pg/src/channels.rs:40-54 | crates/store-pg/src/channels.rs:211-226 \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":"crates/store-pg/src/channels.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdd96d0efc506b5b19660f9fdd71f5cb7a17edb0418525299d0ebc5cc7e2620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/llm-runtime/src/params.rs:240-255 | crates/llm-runtime/src/params.rs:304-319 \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":"crates/llm-runtime/src/params.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b344475af42b6db08820e235af16f6fa6ee286b8dc555c35f324d15a3eb8c166"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/session_preparation.rs:83-97 | crates/temporal-runtime/src/gateway/service/session_preparation.rs:171-182 \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":"crates/temporal-runtime/src/gateway/service/session_preparation.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0699bf232e00731a7a2ab9f7b761f1fc06a99752d64385dbf574ecfe2f74096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/llm-runtime/src/openai_completions.rs:1181-1194 | crates/llm-runtime/src/openai_responses.rs:1210-1223 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/openai_completions.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f2f95c03cd8d7dc996a6b3092ffee5a24d3d0597c39e4a4b682caed3a8f669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/store-pg/src/bots.rs:338-351 | crates/store-pg/src/bots.rs:615-623 | crates/store-pg/src/bots.rs:632-640 \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":"crates/store-pg/src/bots.rs"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"24eb83af00efe02b26b78dbac113c5c58f2c96a6371ef91b2cf5e76614477171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/store-pg/src/session.rs:986-998 | crates/store-pg/src/session.rs:1982-1994 \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":"crates/store-pg/src/session.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de4dd89d3689e1b7f78518c2cbc576d5bb0c49a80bd2579135eb732657e1026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mod.rs:3142-3152 | crates/temporal-runtime/src/gateway/service/mod.rs:3374-3386 \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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":3142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3409405621e2b192551aedd23974eae8e1daa690b6af85e17d7ce822dfb0f772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/harness/src/core/admit.rs:834-845 | crates/harness/src/core/admit.rs:873-884 \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":"crates/harness/src/core/admit.rs"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b7cd4e49dbaa441812d3f58e28eb25668b600f15c3bd3e7a657ce64e265aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/temporal-runtime/src/gateway/service/session_preparation.rs:83-94 | crates/temporal-runtime/src/gateway/service/session_preparation.rs:171-180 | crates/temporal-runtime/src/gateway/service/session_preparation.rs:251-260 \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":"crates/temporal-runtime/src/gateway/service/session_preparation.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c42cd2d75301c885ce6a0ed69148e1f0c66d2e4c2db896c14edef4518eff200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): crates/store-pg/src/auth.rs:319-330 | crates/store-pg/src/auth.rs:513-524 | crates/store-pg/src/oauth.rs:141-152 | crates/store-pg/src/oauth.rs:184-195 | crates/store-pg/src/oauth.rs:274-285 | crates/store-pg/src/providers.rs:86-97 | crates/store-pg/src/providers.rs:129-140 \u2014 before extracting anything, compare \u0060crates/store-pg/src/auth.rs\u0060 and \u0060crates/store-pg/src/oauth.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/auth.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c79359cb752d1acda8f7c4d041fe87139577047d13138d22e16a0baf73a8a5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/store-pg/src/mcp.rs:98-108 | crates/store-pg/src/mcp.rs:221-231 \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":"crates/store-pg/src/mcp.rs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"77377089a3a85969a635bd581bf09b72637492a9f23225df14450155fa3fc6c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): crates/store-pg/src/auth.rs:329-339 | crates/store-pg/src/auth.rs:400-410 | crates/store-pg/src/auth.rs:435-445 | crates/store-pg/src/auth.rs:465-475 | crates/store-pg/src/auth.rs:497-507 | crates/store-pg/src/auth.rs:523-533 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/auth.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"22899553717adabc8f225b250430e43fb55cbd0930d2ecd8253722743c4c7d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): crates/temporal-workflow/src/workflows/session/observability.rs:140-150 | crates/temporal-workflow/src/workflows/session/observability.rs:163-173 | crates/temporal-workflow/src/workflows/session/observability.rs:226-236 \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":"crates/temporal-workflow/src/workflows/session/observability.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6260810433860a587fc466d16ffd9da235823a8e23ca560866270af6f0e0a9a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/store-pg/src/profile.rs:88-98 | crates/store-pg/src/profile.rs:203-213 \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":"crates/store-pg/src/profile.rs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b07302da10faeec7779c42cc20ef76cbdc7898a70de8ad575956fd2d549653d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/cli/src/chat/tui/app.rs:585-595 | crates/cli/src/chat/tui/app.rs:599-609 \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":"crates/cli/src/chat/tui/app.rs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4637fb8bb391f726f0dd672fd786c8ac4c9ff357b2d74732b4ce1cb1356e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/store-pg/src/vfs.rs:159-169 | crates/store-pg/src/vfs.rs:285-295 \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":"crates/store-pg/src/vfs.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c2f3040be7304bc483d52312288d3ce5aa7bf11f5512fc036e86a38fd2a159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/store-pg/src/session.rs:716-726 | crates/store-pg/src/session.rs:745-755 \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":"crates/store-pg/src/session.rs"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8166523f029bcdfd105a42bef59e17fe16761ea82a93c0a4c27ee1a8f48419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/tools/src/transfer.rs:733-742 | crates/tools/src/transfer.rs:803-810 \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":"crates/tools/src/transfer.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"18869e0c25a3e6b120ca8e686617837ca3066eaad7c7751b4eb924689057ada8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/llm-clients/src/anthropic/messages.rs:1215-1224 | crates/llm-clients/src/openai/responses.rs:1209-1218 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d193d8867e65acc22d1268b5bf6dac62f8c77faa0405cb72a7df121c08179f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/store-pg/src/session.rs:921-930 | crates/store-pg/src/session.rs:1064-1073 \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":"crates/store-pg/src/session.rs"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b44f9d0bd5726daa9bfacd8c25beed594c93fe11ad262c18c8ac0da4433ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/store-pg/src/bots.rs:765-774 | crates/store-pg/src/bots.rs:797-806 \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":"crates/store-pg/src/bots.rs"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0d645f385545b5f7e99e3dceb6e82a8ae1236df9382fc66f9f2c77d3514ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/store-pg/src/session.rs:646-655 | crates/store-pg/src/session.rs:1066-1075 \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":"crates/store-pg/src/session.rs"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5058892577e5358668dded443bb506f8a2ab1864be2ebc6c68827b464515077"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/store-pg/src/bots.rs:303-312 | crates/store-pg/src/bots.rs:425-434 \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":"crates/store-pg/src/bots.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55dfbaa52dc90053da1b28f0e2e9b415b9f2d7f66d25c2d20e2b2982857cc38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/store-pg/src/channels.rs:146-155 | crates/store-pg/src/channels.rs:186-195 \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":"crates/store-pg/src/channels.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bcbf29b9f5b1888ecda1be84276c2e085440509ecadad5ad48a785ff56d579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/tools/src/workflow_tool.rs:401-410 | crates/tools/src/workflow_tool.rs:440-449 \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":"crates/tools/src/workflow_tool.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"deceac5237f6518334ea620de77b2ef96c1a9d7c30233bd851258447fa50a917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/harness/src/core/components/tooling.rs:1624-1633 | crates/harness/src/core/components/tooling.rs:1843-1852 \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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1624}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ac8d38dec9c4b7489e1f422a36bf564851865aa805e0913ddac59ddbbd54a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/harness/src/core/drive.rs:1882-1891 | crates/harness/src/core/drive.rs:1908-1917 \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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"3814bbb264fe1965d9ef321c267b1f0e7316c1839a95a56e96f1b93f6d262402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/store-pg/src/bots.rs:603-612 | crates/store-pg/src/bots.rs:660-669 | crates/store-pg/src/bots.rs:697-706 \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":"crates/store-pg/src/bots.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32be17b1a0f80f91a268c2f4320990a83d3834e23ec60718632f94aa6c5e2d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/mcp/src/lib.rs:640-647 | crates/mcp/src/lib.rs:713-722 \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":"crates/mcp/src/lib.rs"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ab414ada541c4e58a9a8f009f529ce453d609f5c0a3fb89a3c8019c62c8b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/harness/src/core/drive.rs:1557-1566 | crates/harness/src/core/drive.rs:1608-1617 \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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fe92df610e1a39e79adadf955ca8d02b8a6790034dc198e2a1828bd3456f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/harness/src/core/components/promise.rs:597-605 | crates/harness/src/core/components/promise.rs:617-625 \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":"crates/harness/src/core/components/promise.rs"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"4784117cf55b00b88978aa28b0f7c0b66fdcf936f699a5556546f6a23a0ae560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/eval/src/main.rs:1191-1199 | crates/eval/src/main.rs:1207-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":"crates/eval/src/main.rs"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2e70e80bdd941f31a908a57886638a888011d98440eaaf695f66687e3a82de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/eval/src/main.rs:191-199 | crates/eval/src/main.rs:249-257 \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":"crates/eval/src/main.rs"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"80062bd35afb145e32dd2be51565c0a0a657df47529f193787b076247384d401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/environments.rs:37-45 | crates/temporal-runtime/src/gateway/service/workflow.rs:304-312 \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":"crates/temporal-runtime/src/gateway/service/environments.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd781bd1d2e278dd9bf173d7a08627e25aeae473c6fe997075158cca2f9326e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/llm-clients/src/anthropic/messages.rs:1189-1196 | crates/llm-clients/src/openai/completions.rs:765-773 | crates/llm-clients/src/openai/responses.rs:1179-1187 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/completions.rs\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"683f0d0232021050b1fc9727c80a375f9bfe4662322cbbd23e66111ce6d8aa85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tools/src/fs/scoped_local.rs:68-76 | crates/tools/src/fs/scoped_local.rs:251-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":"crates/tools/src/fs/scoped_local.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a57aa2b0443d496056d46e39f30728daec1c25efec73b5b8e15ec3d45291cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/cli/src/auth_cli.rs:1195-1203 | crates/cli/src/auth_cli.rs:1313-1321 \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":"crates/cli/src/auth_cli.rs"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f1f15f61829bdeb5f15a32e6dba2816924c32faaf79fb08606201a1d8735fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/llm-runtime/src/anthropic_messages.rs:1812-1820 | crates/llm-runtime/src/openai_responses.rs:1431-1439 \u2014 before extracting anything, compare \u0060crates/llm-runtime/src/anthropic_messages.rs\u0060 and \u0060crates/llm-runtime/src/openai_responses.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a21175233274c8190a6cb1d3de277a65c01127e69466e2f0d4e1c1069e200a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tools/src/fs/local.rs:207-215 | crates/tools/src/fs/scoped_local.rs:329-337 \u2014 before extracting anything, compare \u0060crates/tools/src/fs/local.rs\u0060 and \u0060crates/tools/src/fs/scoped_local.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/local.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9def0dc176088123325a8b78b55eccaa350c222b18cdf37a358879e6c7c632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/tools/src/concurrency.rs:342-350 | crates/tools/src/concurrency.rs:354-362 \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":"crates/tools/src/concurrency.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3893409edf177c54060bfa1de9cb6f8e7a13a8923e6bd82fb18cd1cd5483c3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/tools/src/fs/local.rs:31-36 | crates/tools/src/fs/scoped_local.rs:37-45 \u2014 before extracting anything, compare \u0060crates/tools/src/fs/local.rs\u0060 and \u0060crates/tools/src/fs/scoped_local.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 84 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/tools/src/fs/local.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c18567ab9f34a041bcf5ac8e88efaf237d27d904d0c54cd6a4fe16743b343b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/harness/src/core/components/tooling.rs:1619-1626 | crates/harness/src/core/components/tooling.rs:1718-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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51dce7278aea98d82aea883d73db9fa642b310e9a09c57071c7438f3cceae55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/environments.rs:39-46 | crates/temporal-runtime/src/gateway/service/workflow.rs:532-539 \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":"crates/temporal-runtime/src/gateway/service/environments.rs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"58134cc16f7c8b19c4d73b2074b4933c7b2f352b0f5ee6a5a6219710d16aed21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/llm-clients/src/openai/completions.rs:787-794 | crates/llm-clients/src/openai/responses.rs:1199-1206 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/openai/completions.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 212 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/openai/completions.rs"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"f414983fd4b960892c897e4cb3e7a1850cf8b1efea32b3f2fa1a1132cdb5c1b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/harness/src/core/drive.rs:1548-1555 | crates/harness/src/core/drive.rs:1599-1606 \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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a44773c389bafd1fd468af8b926f1737a966c32f1959ca9813a3321371679b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/store-pg/src/bots.rs:301-307 | crates/store-pg/src/bots.rs:423-429 | crates/store-pg/src/bots.rs:443-450 \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":"crates/store-pg/src/bots.rs"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e27e1fbc019ef8135cadc2048928733b156644eafd1c001e12865595bf18151"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/store-fs/src/blob.rs:171-178 | crates/store-fs/src/blob.rs:198-205 \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":"crates/store-fs/src/blob.rs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5311d465ef5e365e7c4bf4814efff968aff3ea6af10a43b38eeca668ac98b4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/temporal-runtime/src/gateway/service/mod.rs:2691-2698 | crates/temporal-runtime/src/gateway/service/mod.rs:2818-2825 \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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2691}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e71387c088e30563dce1e5edfa94d921a5b3fbf2188edc1cf65a6730f700df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/store-pg/src/environment.rs:483-490 | crates/store-pg/src/environment.rs:713-720 | crates/store-pg/src/environment_registration.rs:105-112 \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":"crates/store-pg/src/environment.rs"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95326f08eeec3806c24853e8c9b4cb1379b5a64f483177759cf336249465685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/api-projection/src/lib.rs:3088-3094 | crates/api-projection/src/lib.rs:3099-3105 \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":"crates/api-projection/src/lib.rs"},"region":{"startLine":3088}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5b0356dfd1ddf34490375140ff5d0a45ee167b9b81a96c51d777166c3dce8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/store-pg/src/environment.rs:732-738 | crates/store-pg/src/environment_registration.rs:278-284 \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":"crates/store-pg/src/environment.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"b765403c775c909a42678c40fc9e5b2666293bf606886599717ba9ac76c45807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/harness/src/core/components/tooling.rs:1955-1961 | crates/harness/src/core/drive.rs:1143-1149 \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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c34b299643fa9b428bf3f8ae6ec98dc3ea7272c91243f2e6c311970f6f3b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/store-pg/src/auth.rs:586-592 | crates/store-pg/src/oauth.rs:536-542 \u2014 before extracting anything, compare \u0060crates/store-pg/src/auth.rs\u0060 and \u0060crates/store-pg/src/oauth.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/store-pg/src/auth.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7ad80d9f455951ecd0c4838808db312cdb763f65ca814adf5570a91293a36f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/store-pg/src/environment.rs:1315-1321 | crates/store-pg/src/environment_registration.rs:331-337 \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":"crates/store-pg/src/environment.rs"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69683b975aa3c036acd24b4e648c362c12be13b57fa40faf82512bc4b505efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/auth/src/github.rs:441-447 | crates/auth/src/oauth.rs:789-795 \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":"crates/auth/src/github.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1252cb93ed633d17a8748d4aeeeed7cb5589dc8964ba149e4747e317a7c2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/harness/src/core/components/turn.rs:473-479 | crates/harness/src/core/components/turn.rs:506-512 \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":"crates/harness/src/core/components/turn.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a507ca075ba8bea89f2bdba07980d0a5d0cf8898479792bd7e35d85d4843018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/llm-clients/src/anthropic/messages.rs:1209-1214 | crates/llm-clients/src/openai/responses.rs:1203-1208 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91ac6152286018b5443315feceb0150a8b6b5d5dc47ef48a650e26777463b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/environment-daemon/src/server.rs:208-213 | crates/environment-daemon/src/server.rs:228-233 \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":"crates/environment-daemon/src/server.rs"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"283156694676a4c273fb1226854cb5d309065d485f41c1d2dc5c0c6a026a2bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): crates/llm-clients/src/anthropic/messages.rs:1234-1239 | crates/llm-clients/src/openai/audio.rs:274-279 | crates/llm-clients/src/openai/responses.rs:1228-1233 \u2014 before extracting anything, compare \u0060crates/llm-clients/src/anthropic/messages.rs\u0060 and \u0060crates/llm-clients/src/openai/responses.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/anthropic/messages.rs"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e419440a09a9a8fa2997a061dbfa4423111fc3a29869fb64c05550424b84098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/temporal-runtime/src/gateway/http.rs:1060-1065 | crates/temporal-runtime/src/gateway/registration.rs:857-862 \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":"crates/temporal-runtime/src/gateway/http.rs"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c4ac72c15468e5cce55a10a48b4561dabba5aa838c3be6e7cd3eb31b804219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/temporal-runtime/src/worker/activities/storage.rs:500-505 | crates/temporal-runtime/src/worker/activities/storage.rs:520-525 \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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0eec4e151b799ff590c3f3b300312eeb651c7b2f13a554ef111ce67ea280e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/auth/src/lib.rs:323-328 | crates/mcp/src/lib.rs:766-771 \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":"crates/auth/src/lib.rs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"450cb72f71693440ee39cbbf2aef583377351d58b4a131cef0f3983d09235431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/tools/src/transfer.rs:940-944 | crates/tools/src/transfer.rs:993-997 \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":"crates/tools/src/transfer.rs"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"1951f0bf4111e00bada71e00c9c36aef1485b6b65b4c1580141eb4a42e5fe69d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/mcp/src/lib.rs:634-638 | crates/mcp/src/lib.rs:707-711 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/mcp/src/lib.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1ad0ed794c39e9b9a0c58f53dad92bb9192dccd5024d42c3bcc1fc91b351dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/temporal-runtime/src/config/object_storage.rs:55-59 | crates/temporal-runtime/src/config/object_storage.rs:121-125 \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":"crates/temporal-runtime/src/config/object_storage.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"46efa191908e2e51f516af16b59d445bfd655eec7000b321f6cf1ca42af8b857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/codemode/src/engine.rs:363-367 | crates/codemode/src/engine.rs:407-411 \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":"crates/codemode/src/engine.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"334d7ff8ed1e2ae6283c3620046f62c434b7dc71e9f3195aaf66736f7c9ac709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/environment-provider-incus/src/incus.rs:273-278 | crates/environment-provider-incus/src/incus.rs:363-368 \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":"crates/environment-provider-incus/src/incus.rs"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f395db27ab49d5c3dd763c872c6afb8123f2a74cc3edacc4badd75824b636f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/environment-provider-incus/src/server.rs:773-778 | crates/environment-provider-incus/src/server.rs:823-828 \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":"crates/environment-provider-incus/src/server.rs"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"f572043f7e5606a74209aa0a7759d9dbee7c654a8de95f1230300d73134b5f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/test-support/src/runner/drive.rs:96-111 | crates/test-support/src/runner/drive.rs:530-545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/test-support/src/runner/drive.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8753c298f06f495b77dfe5103305ff2f691500b041ef3b2e98d374143354d003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/test-support/src/runner/drive.rs:164-175 | crates/test-support/src/runner/drive.rs:400-411 \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":"crates/test-support/src/runner/drive.rs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a216d1ed495b2e2d85d3c43d4c878ac2ae424a3e25f4defdfa42c8f798bf2f9a"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project store-pg: store-pg has instability 0.91 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"69fc78c04a95b88087cd79e28d4a4060b5c6cabce44aed06efda0f75fbcb4c08"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: @lightspeed-ai/platform-db: @lightspeed-ai/platform-db: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"932c5443e14c099e458368e884a5d3bf03821fc2dd836048815b77bb8df4f43d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: codemode: codemode: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f254dcd79ddbbf7767e60dff593db046b86f39ddacc04a7a6ca1838a2be367a4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: llm-clients: llm-clients: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9a2f37045cd6d18cea7ed0784ab7f5c1346985c6ed79257620326fb64f63b66a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: api: api: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 11 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"823ce4ae1e2ae4cb02f167a0613786104b965d0072e165472a4958b5d77d1a54"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: environment-protocol: environment-protocol: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 8 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6877b8703df8a40f87c2c9d44529f72e14f1ba2dd506c4fcbc53314f141b7f4b"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: harness: harness: abstractness 0.03, instability 0.00, distance 0.97 \u2014 zone of pain \u2014 concrete and depended on by 13 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8f1233615a39f01d58d61a5aeb9ea87666462099d64556afca1c73e24948dbfd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: @lightspeed-ai/sdk: @lightspeed-ai/sdk: abstractness 0.21, instability 0.00, distance 0.79 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ee2fb6506be57abb014e3dd47a49e6f041067c1e8c8e84d438649904e958e049"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ActivityState (LCOM4 6): ActivityState\u0027s methods fall into 6 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 6 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":"crates/temporal-runtime/src/worker/activities/state.rs"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c1ca55bddb3cac2de367c3831740cb00946c305ec7b6fc729d4729ad2ceae0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EnvironmentToolContext (LCOM4 6): EnvironmentToolContext\u0027s methods fall into 6 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 6 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":"crates/tools/src/environment.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f934139e0b5eb899d52b4f24e875a733ac70893335574e66f03c95eaf58d2235"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: names a method\u0027s data and each kind of event: 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":"clients/typescript/test/client.test.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8ccc6527e1713b10ae9a983027333c4b5c7afc2b1e327125ed617fc858bc2b"}},{"ruleId":"D13","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":"54a42447f599f675b4dd6aaee5838f133a60aaf8d416a4bb34e48d17910e8e0f"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"e026270b2553647daba1038d9df4c6cd4874595536af4708afb20b5f1d055198"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"b8e84c1f7312cb2eb794484e479f8c4802735b0971d3b70540afcb810dda8ca8"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"fc89eef174aca9262100b190f9389cd5903e59088e97fae7207514cf803e5892"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"7692b1fa601ed99427a0caace91231050a59308a5dd10db4d66e48898c6831d9"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"45caa5f007accdcbc6e5fac45e949777e7744a6cd95df5c93241d0259a4ee107"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"fc6418456d2dc9cd74e7dc2bc8e7bf853ecc57ec655d2b1e561e6338deb0aa66"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"1d8ca321b94309ff3bd9b249b650981869ef9ef21c4ee7310155d124fe97c730"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"ae79baa48a8ec1f11b384d1fdcc17440d9b11700434a8510f0a20734ee80db9b"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"324e8e539fd4252ab27168e4839d6e9acb254c9c880aa2007f267a0a0fd77eb9"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"41e2e9b8b8c3ec6a68b7ac38e2ceeb15dc94914dbf1d6439936951d93ed2420b"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/SessionsPage.tsx: platform/web/src/pages/SessionsPage.tsx changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 237 in SessionsPage.SessionDetail at line 1316. 3 of those changes were fix/bug commits, and the other 27 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/SessionsPage.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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e0c82ec416a99f5e08fc117fc8f72565f0d7cd90b62a5adcec069977736f62"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/backend/src/routes/gateway.ts: platform/backend/src/routes/gateway.ts changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 246 in gateway.gatewayRoutes at line 399. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/backend/src/routes/gateway.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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a702f68cb6a394f1ed5c81d7cc33eecc3e1faa778f65c59e18075c49117bcf54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/sessions.ts: platform/web/src/demo/routes/sessions.ts changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 140 in sessions.sessionRoutes at line 65. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/sessions.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":"platform/web/src/demo/routes/sessions.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef066fa2cdad819da7b868a6db358fac276dda66c41a38b6e8795b4ffdc78d32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/api-projection/src/lib.rs: crates/api-projection/src/lib.rs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in CoreAgentProjector::project_event_kind at line 763. 1 of those changes was a fix/bug commit, and the other 28 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/api-projection/src/lib.rs\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":"crates/api-projection/src/lib.rs"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"69381017f54298659f9b04801330d93b6b00d78b0087116ef45a226492ec4969"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/lib/sessions/transcript.ts: platform/web/src/lib/sessions/transcript.ts changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in transcript.applyEvents at line 266. 2 of those changes were fix/bug commits, and the other 21 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/lib/sessions/transcript.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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cad47e99b6ff1a9e40030d293bcc30e752a4d06079df03821848ac1506de69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/session/session-config-editor.tsx: platform/web/src/components/session/session-config-editor.tsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in session-config-editor.configError at line 410. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/session/session-config-editor.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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"41051ada9fe94526718ecbe73d415ad8d08a98a02cef17d004ae4ec7fe731f3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/McpServersPage.tsx: platform/web/src/pages/McpServersPage.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in McpServersPage.ServerDialog at line 240. 1 of those changes was a fix/bug commit, and the other 11 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/McpServersPage.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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f31438f2a3f472bfd7aab070d70011d989f70d9796c2f3ddcc83adc8e9fda52"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/session/composer.tsx: platform/web/src/components/session/composer.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 110 in composer.SessionComposer at line 51. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/session/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":"platform/web/src/components/session/composer.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4778e62ef9ddb38fe68942f296a33deb2e4b32409c25bd0ed705ba9d87d8d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/admit.rs: crates/harness/src/core/admit.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 111 in harness::core::admit::admit_command at line 19. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/admit.rs\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":"crates/harness/src/core/admit.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7675222bc3a33c6351984e7baff5283976edc1667fcf8a7e8f117f60a9deebd7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/drive.rs: crates/harness/src/core/drive.rs changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in harness::core::drive::tool_call_completed_proposals_inner at line 1794. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/drive.rs\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":"crates/harness/src/core/drive.rs"},"region":{"startLine":1794}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec256bff9a9cf112e4d7549eb96a0b8f9fd1f14357b55f1aa704528e31b7777"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/bots.ts: platform/web/src/demo/routes/bots.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in bots.botRoutes at line 1047. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/bots.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":"platform/web/src/demo/routes/bots.ts"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d3c7573a8243e42b2fd0b358e73f0ffc38b237dd4e4477a80ea8e146d2d760"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/session/session-settings-sheet.tsx: platform/web/src/components/session/session-settings-sheet.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in session-settings-sheet.LiveSessionSetup at line 95. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/session/session-settings-sheet.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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a87dc548407d04ad6a063883a72d17f37cd7871a1e1126c94c98121eb45216"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/secrets.ts: platform/web/src/demo/routes/secrets.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in secrets.secretRoutes at line 443. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/secrets.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":"platform/web/src/demo/routes/secrets.ts"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8eb7971a9c557be7aa6fc73323e9fc74b9a128dcef9dea4de712d3ce117f39f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/gateway/service/mod.rs: crates/temporal-runtime/src/gateway/service/mod.rs changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in GatewayAgentApi::replace_context at line 2807. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/gateway/service/mod.rs\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":"crates/temporal-runtime/src/gateway/service/mod.rs"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7346e7d2a1ec559203617eaf876de576293e4e201aa6f2500918233653f0590"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/backend/src/routes/universes.ts: platform/backend/src/routes/universes.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in universes.universeRoutes at line 140. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/backend/src/routes/universes.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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4352059285a79c7901cd520ef5d81b55f0d1e090fcd70d1d109d59b2b5544fdc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/cli/src/chat/driver.rs: crates/cli/src/chat/driver.rs changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ChatSessionDriver::chat_events_from_session_event at line 1051. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/cli/src/chat/driver.rs\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":"crates/cli/src/chat/driver.rs"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73670ec25d8e84818f1322f324ac986d4b7a781d17bef1027a39b9339417195"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/BotCreatePage.tsx: platform/web/src/pages/BotCreatePage.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in BotCreatePage.Wizard at line 138. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/BotCreatePage.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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9569020f4480cd08985666f65713c5add6afbe9e4620f67debf110cdd1cd37c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/worker/session_tools.rs: crates/temporal-runtime/src/worker/session_tools.rs changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SessionTools::invoke_environment_control_call at line 860. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/worker/session_tools.rs\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":"crates/temporal-runtime/src/worker/session_tools.rs"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39c8c98983fe59d4630c224b5fec56fe561060bc2034306417c9604a506e508"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/ProfilesPage.tsx: platform/web/src/pages/ProfilesPage.tsx changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in ProfilesPage.ProfileEditor at line 192. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/ProfilesPage.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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71a2f405ed3be781bb40697401ecc834246c2fdb859dc33b8447c858c2d0693"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/workspace-transfers.tsx: platform/web/src/components/workspace-transfers.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 178 in workspace-transfers.WorkspaceTransfers at line 93. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/workspace-transfers.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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"502b5b2c5311bd49462b1e5c6413f4d9a9a10791f70d47888e71139690719a39"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/platform.ts: platform/web/src/demo/routes/platform.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in platform.platformRoutes at line 11. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/platform.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":"platform/web/src/demo/routes/platform.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc3fab8d6e645d0be820a75fc9bccfa25ceec95f4bcf829c289b0596976a3a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/session/transcript-view.tsx: platform/web/src/components/session/transcript-view.tsx changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in transcript-view.UserBand at line 169. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/session/transcript-view.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":"platform/web/src/components/session/transcript-view.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ecde7fdf269b4ccbb1020917b783bbb7ca5193a696cd4428de0a0bcc8f82b59"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/WorkspacesPage.tsx: platform/web/src/pages/WorkspacesPage.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in WorkspacesPage.FileDetail at line 303. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/WorkspacesPage.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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"c922c4dfdecb2abc17c77af73550b33c8eeb46f55290aa60e8ce48e21776cbde"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/bot/setup.tsx: platform/web/src/components/bot/setup.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in setup.OtherBotsSection at line 770. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/bot/setup.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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"455bf180d0cb893360d2e02afdf422728f8e362aa3269068dc1c1848f2e60337"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tools/src/builtin/mod.rs: crates/tools/src/builtin/mod.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in BuiltinTool::name_str at line 379. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/tools/src/builtin/mod.rs\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":"crates/tools/src/builtin/mod.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"757846a410a650c1de98c3af39a4af591fb38e5f6031777cd92db3f3a45896e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/engine.ts: platform/web/src/demo/engine.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in engine.appendScriptedRun at line 951. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/engine.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":"platform/web/src/demo/engine.ts"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2373f8447259023619a2ee794d5ef4f010906e052f2f1337dfe7bc96d71b569"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/components/context.rs: crates/harness/src/core/components/context.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in harness::core::components::context::apply_event at line 1576. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/components/context.rs\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":"crates/harness/src/core/components/context.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc6030b8afcdcedd980b82749e59eaa4d801dd8cc489dc789f8bbe1f19ca109"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/bot/triggers.tsx: platform/web/src/components/bot/triggers.tsx changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in triggers.TriggersSection at line 748. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/bot/triggers.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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e6ba362a58f8ad83509f9e771f11cac1885e0fac3df68b55e847d2d3ad4300"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/dev/stack.mjs: scripts/dev/stack.mjs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in stack.createPlan at line 190. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- scripts/dev/stack.mjs\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":"scripts/dev/stack.mjs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58cbc23344df6eb597627eaf83b09c3ecbafd3c1e2fcee3630f4188084d9ea6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/EnvironmentsPage.tsx: platform/web/src/pages/EnvironmentsPage.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in EnvironmentsPage.EnvironmentList at line 99. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/EnvironmentsPage.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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d86b1b4ef754b00ee089e01ad1064cf5f8afab96ad26e13fefefb4dc41a0887"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/environments.ts: platform/web/src/demo/routes/environments.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in environments.environmentRoutes at line 315. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/environments.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":"platform/web/src/demo/routes/environments.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fa51ba66548a85bcbddcef013beaf10f37d62e7decd6d794ab59aed729fe6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/gateway/http.rs: crates/temporal-runtime/src/gateway/http.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in temporal_runtime::gateway::http::proxy_frames at line 1048. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/gateway/http.rs\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":"crates/temporal-runtime/src/gateway/http.rs"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef02686ae0df60620f10fc655639084ba1b9e3dbc463519d5375b0ce71cbabe6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/codec.rs: crates/harness/src/core/codec.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in harness::core::codec::core_agent_event_envelope_kind at line 210. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/codec.rs\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":"crates/harness/src/core/codec.rs"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77d1e1971ab04e3bee48b78b94efaa38af0b248046c4b39d22f22ad99aa75de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/llm-runtime/src/openai_completions.rs: crates/llm-runtime/src/openai_completions.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in llm_runtime::openai_completions::materialize_message at line 636. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/llm-runtime/src/openai_completions.rs\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":"crates/llm-runtime/src/openai_completions.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca315768ef82ea3f6609ebc4f3927f23730e46b8280416fab6bb743501aefabd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/subagents.rs: crates/temporal-runtime/src/subagents.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SubagentService::prepare at line 243. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/subagents.rs\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":"crates/temporal-runtime/src/subagents.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"518150d750f13f7c49c8fb92606d9c0731ce695bca8e50e8a4d04fc244960063"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/components/tooling.rs: crates/harness/src/core/components/tooling.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in harness::core::components::tooling::park_tool_batch at line 1693. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/components/tooling.rs\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":"crates/harness/src/core/components/tooling.rs"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"d916720c678fc8da2fa520b5068ad6320dc6a2fe4c4065399145d6d773230b12"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/llm-runtime/src/openai_responses.rs: crates/llm-runtime/src/openai_responses.rs changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in llm_runtime::openai_responses::result_from_response_with_catalog at line 1108. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/llm-runtime/src/openai_responses.rs\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":"crates/llm-runtime/src/openai_responses.rs"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43dd46a48b799cfe4c526d14df4d262e09bc7af42476ee16b03b40f3346c812"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/main.rs: crates/temporal-runtime/src/main.rs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in temporal_runtime::run_api_key_command at line 353. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/main.rs\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":"crates/temporal-runtime/src/main.rs"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e60f2f3f8e044a89ac366fd57bb890839b1dde76c42560acd8c4059081023d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/worker/activities/storage.rs: crates/temporal-runtime/src/worker/activities/storage.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in temporal_runtime::worker::activities::storage::materialize_await_result at line 153. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/worker/activities/storage.rs\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":"crates/temporal-runtime/src/worker/activities/storage.rs"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d86b2bfe9bfc76e36856352b3a49fd4e427ac14c5e35e1dc6902d2f0bb1a62"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/components/run.rs: crates/harness/src/core/components/run.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in harness::core::components::run::apply_event at line 828. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/components/run.rs\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":"crates/harness/src/core/components/run.rs"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"025d52f75fe9bb181f069711e23d24f6514cbec1df5041ac96511f4e3c604496"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/components/workflow_tool.rs: crates/harness/src/core/components/workflow_tool.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in harness::core::components::workflow_tool::validate_recorded_invocation at line 1513. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/components/workflow_tool.rs\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":"crates/harness/src/core/components/workflow_tool.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"808be38facba2ecd4caeb002f3aff66ed62381be78963bf52a77bf91d4d52f80"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/AdminUsersPage.tsx: platform/web/src/pages/AdminUsersPage.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in AdminUsersPage.EditUserDialog at line 139. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/AdminUsersPage.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":"platform/web/src/pages/AdminUsersPage.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"46baa3774e7844b3bcd5680f7270b4268964a396c13e8873f2385bebbad04c9f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/environment-daemon/src/process.rs: crates/environment-daemon/src/process.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ProcessManager::read at line 373. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/environment-daemon/src/process.rs\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":"crates/environment-daemon/src/process.rs"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb05170685464cf21ccc852b0eaae3a1b84016a75ab74a287aedf9c10d31d754"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/components/turn.rs: crates/harness/src/core/components/turn.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in harness::core::components::turn::apply_event at line 292. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/components/turn.rs\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":"crates/harness/src/core/components/turn.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"7614b12586c1f58aca4703cc69e6ba1e751cc78060c54cedd40f11f7e348890f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/llm-runtime/src/anthropic_messages.rs: crates/llm-runtime/src/anthropic_messages.rs changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in AnthropicMessagesLlmAdapter::generate at line 215. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/llm-runtime/src/anthropic_messages.rs\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":"crates/llm-runtime/src/anthropic_messages.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82115c95b57271e1dad7736adca9cd13f07058f221badb6935cc80be9396b49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/workspaces.ts: platform/web/src/demo/routes/workspaces.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in workspaces.workspaceRoutes at line 20. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/workspaces.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":"platform/web/src/demo/routes/workspaces.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"21401c821e0059b3d8f6ccc928950bcb86adfc2fe5d51e87f1100f78921bc04d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/bot/detail.tsx: platform/web/src/components/bot/detail.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in detail.BotDetail at line 130. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/bot/detail.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":"platform/web/src/components/bot/detail.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d28367eebd483f115bc02b1e12d1f1f2d22714a8dc22575d0cb4f467d6242b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/environment-daemon/src/jobs.rs: crates/environment-daemon/src/jobs.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in JobManager::read at line 411. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/environment-daemon/src/jobs.rs\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":"crates/environment-daemon/src/jobs.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fd808afe3de534da84d3477a0e1b667ebbf5d9ba89735961f72c3a9635e951"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/admin.ts: platform/web/src/demo/routes/admin.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in admin.adminRoutes at line 79. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/admin.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":"platform/web/src/demo/routes/admin.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c537523a7b355d774f4efc5639f88172a86ffb969bc5488f5722a6ccc647ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/backend/src/routes/bots.ts: platform/backend/src/routes/bots.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in bots.botRoutes at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/backend/src/routes/bots.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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df5776f2b166178ea3246c1e9290920b2209e60a70023ec6a508b2c2a3b273b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/worker/activities/context_refresh.rs: crates/temporal-runtime/src/worker/activities/context_refresh.rs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in temporal_runtime::worker::activities::context_refresh::refresh_context at line 29. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/worker/activities/context_refresh.rs\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":"crates/temporal-runtime/src/worker/activities/context_refresh.rs"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccf586cd3a63b878dccd0a0f53885fe07af63afa91e2e4cde337f2ef21117bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/harness/src/core/components/config.rs: crates/harness/src/core/components/config.rs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in harness::core::components::config::validate_features at line 832. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/harness/src/core/components/config.rs\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":"crates/harness/src/core/components/config.rs"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"439966a183b058faab2be993aad6adb0122137db663e5fed70e0c5d16a85c1d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/lib/sessions/tail.ts: platform/web/src/lib/sessions/tail.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in tail.useSessionTail at line 38. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/lib/sessions/tail.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":"platform/web/src/lib/sessions/tail.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbb584884f2c16de07f43eb961083beb9d29414ea0f133b05c76ab830272672"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-workflow/src/workflows/session/drive.rs: crates/temporal-workflow/src/workflows/session/drive.rs changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in temporal_workflow::workflows::session::drive::drive_until_idle at line 263. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-workflow/src/workflows/session/drive.rs\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":"crates/temporal-workflow/src/workflows/session/drive.rs"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb3bca5cca8fdd6a0902fac0686d6da3b58f37b4244ce17e0acec9de14b7f82"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/App.tsx: platform/web/src/App.tsx changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in App.App at line 46. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/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":"platform/web/src/App.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"42174d8ec5d9dae3c3f3b87420ea079701bec46cb9e38e48e89761a0a8b82141"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tools/src/builtin/canonical.rs: crates/tools/src/builtin/canonical.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in tools::builtin::canonical::description at line 35. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/tools/src/builtin/canonical.rs\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":"crates/tools/src/builtin/canonical.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c7a8a54f92b7349af64b86005755b2d53ffe156c97cca49264f66065d26b2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-workflow/src/workflows/session/admissions.rs: crates/temporal-workflow/src/workflows/session/admissions.rs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in temporal_workflow::workflows::session::admissions::admit_admissions at line 7. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-workflow/src/workflows/session/admissions.rs\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":"crates/temporal-workflow/src/workflows/session/admissions.rs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc48378d705c067a7c8d1da6f0be423c84cb4b24bbe1746d693371c86ced32c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/session/tool-trace.tsx: platform/web/src/components/session/tool-trace.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in tool-trace.ToolCallRow at line 297. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/session/tool-trace.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":"platform/web/src/components/session/tool-trace.tsx"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5fe6003597ab082e31b02536ec1e72cdf3da8da8cfd61d221506e7c0bd0de4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tools/src/toolset.rs: crates/tools/src/toolset.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in tools::toolset::register_toolset at line 411. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/tools/src/toolset.rs\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":"crates/tools/src/toolset.rs"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"440d20e86dc2d8d0d188a0099a0d0e872001855d65b21577e10c563c4b97c7c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/cli/src/chat/tui/transcript.rs: crates/cli/src/chat/tui/transcript.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in TranscriptState::apply_chat_event at line 62. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/cli/src/chat/tui/transcript.rs\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":"crates/cli/src/chat/tui/transcript.rs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c00339665da892bb1f4ce00eb85939cb6971f44a45ad40554b2bd29af6a2186"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/backend/src/routes/setups.ts: platform/backend/src/routes/setups.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in setups.ensureCredential at line 265. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/backend/src/routes/setups.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":"platform/backend/src/routes/setups.ts"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"8247263b4b8bb49f34f21c10948f242482cf9904540b3cc14007f93dac05c338"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/cli/src/chat/tui/app.rs: crates/cli/src/chat/tui/app.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ChatTuiApp::apply_slash_command at line 420. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/cli/src/chat/tui/app.rs\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":"crates/cli/src/chat/tui/app.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abb5b18d2df3a4b52385ffc9d915ca071c5a0148df4cec82c34b19bbcf8f7db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-workflow/src/workflows/session/mod.rs: crates/temporal-workflow/src/workflows/session/mod.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AgentSessionWorkflow::run at line 144. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-workflow/src/workflows/session/mod.rs\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":"crates/temporal-workflow/src/workflows/session/mod.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e607917dcb1a2dd37e09fc98a0be14937ea5f38f5ebab007ba56047c878673"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/environments/lifecycle.rs: crates/temporal-runtime/src/environments/lifecycle.rs changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in Reconciler::provision_step at line 755. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/environments/lifecycle.rs\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":"crates/temporal-runtime/src/environments/lifecycle.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"b196709ce8ed52a1c0cc3826e2c93e4f6c199a03d456c7bc8f14cf8c0ea62c4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/cli/src/session_cli.rs: crates/cli/src/session_cli.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in cli::session_cli::handle at line 249. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/cli/src/session_cli.rs\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":"crates/cli/src/session_cli.rs"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"be40f6c78423bbbe2b40b3b305a3f53c0e149e207937129134af5811beff5c8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/worker/mcp.rs: crates/temporal-runtime/src/worker/mcp.rs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in temporal_runtime::worker::mcp::visible_mcp_result at line 998. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/worker/mcp.rs\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":"crates/temporal-runtime/src/worker/mcp.rs"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc7443b0002ad16051b7147de858a725f07ff762de18f93052a4856fb6fd6a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-workflow/src/workflows/environment_job.rs: crates/temporal-workflow/src/workflows/environment_job.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in EnvironmentJobWorkflow::run at line 35. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-workflow/src/workflows/environment_job.rs\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":"crates/temporal-workflow/src/workflows/environment_job.rs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2930d2912e40c5e4552527dc1b2bce63117573acd5e1fcce6e6bf662c2063c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/SetupsPage.tsx: platform/web/src/pages/SetupsPage.tsx changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in SetupsPage.SetupCard at line 107. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/SetupsPage.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":"platform/web/src/pages/SetupsPage.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4db028fa2e54333ed0186660441899294a17e44a7fb3d848aea1f503797591"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/app-shell.tsx: platform/web/src/components/app-shell.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in app-shell.AppShell at line 94. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/app-shell.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":"platform/web/src/components/app-shell.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ecef2fbd94ab90d5696ddd1f3d12f176ec0a424ee453ec1608abd2a5584c30"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/backend/src/auth.ts: platform/backend/src/auth.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in auth.createAuth at line 38. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/backend/src/auth.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":"platform/backend/src/auth.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46d4eeb5e8cbf6abfa6e9a46e5845ca45eba8db0663f09dc54fda5ea7752e1e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tools/src/workflow_tool.rs: crates/tools/src/workflow_tool.rs changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in tools::workflow_tool::derive_completion_keys_from_source at line 384. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/tools/src/workflow_tool.rs\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":"crates/tools/src/workflow_tool.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76c1180757b4202e0e5839116326aa5ce8e0086b407705a42887dd75aa1a309"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/ApiKeysPage.tsx: platform/web/src/pages/ApiKeysPage.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ApiKeysPage.ApiKeyList at line 63. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/ApiKeysPage.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":"platform/web/src/pages/ApiKeysPage.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"256810a5ca4df109823df668e9d3859d61aaab1a742442515add1a0f09e52fe6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/channels/activities.rs: crates/temporal-runtime/src/channels/activities.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in temporal_runtime::channels::activities::emit_chat_event at line 603. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/channels/activities.rs\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":"crates/temporal-runtime/src/channels/activities.rs"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d9c1fd3acba64af7bf4ca1d79f8648a5f35178c0920cc4f9cd25b02a109499"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/AdminUniversesPage.tsx: platform/web/src/pages/AdminUniversesPage.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AdminUniversesPage.AdminUniversesPage at line 60. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/AdminUniversesPage.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":"platform/web/src/pages/AdminUniversesPage.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8936e92cfb19730a9a134305118ade324484ddf6c41dad39574c078a0c1f8a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/lib/sessions/run-sections.ts: platform/web/src/lib/sessions/run-sections.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in run-sections.sectionsByRun at line 75. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/lib/sessions/run-sections.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":"platform/web/src/lib/sessions/run-sections.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfff5a8c029d13c9460fe39806425eea31f7098e84063bb792a91d9f12b306b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/gateway/service/session_lifecycle.rs: crates/temporal-runtime/src/gateway/service/session_lifecycle.rs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in GatewayAgentApi::start_session_internal at line 433. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/gateway/service/session_lifecycle.rs\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":"crates/temporal-runtime/src/gateway/service/session_lifecycle.rs"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"491c358bc0f5bcd07981ffab90a428e27dc9720d99e5ee1ef1301b747ebd6a7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/api/src/access.rs: crates/api/src/access.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in MethodGroup::of at line 175. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/api/src/access.rs\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":"crates/api/src/access.rs"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b341ce1e747fb591bee377328cb1e28d190f12ee7649564a999c1180599a5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tools/src/definitions.rs: crates/tools/src/definitions.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in tools::definitions::resolve at line 87. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/tools/src/definitions.rs\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":"crates/tools/src/definitions.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"881d4968ea7a4655c735828c7e02dd5c59aa6234b0c75ae30178bd36cd143477"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/mcp.ts: platform/web/src/demo/routes/mcp.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in mcp.materialize at line 30. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/mcp.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":"platform/web/src/demo/routes/mcp.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d3278dc8e947e8fb38b66cd2550dd79d44112118b3479d4173b83bc1690194"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/models/model-api-key.tsx: platform/web/src/components/models/model-api-key.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in model-api-key.OpenAiCompatibleForm at line 316. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/models/model-api-key.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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e1861a4c7c3868320ee0489e67f016a73f41615d0dc624dbddcd8432a6f55f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/environment-daemon/src/filesystem.rs: crates/environment-daemon/src/filesystem.rs changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in environment_daemon::filesystem::io_error at line 792. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/environment-daemon/src/filesystem.rs\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":"crates/environment-daemon/src/filesystem.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba2e0abc4b4f08ac65d4f76fd34b10d6f6cd3f069932b6b2db7a45d80b4a44a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/backend/src/routes/channel-accounts.ts: platform/backend/src/routes/channel-accounts.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in channel-accounts.channelUniverseRoutes at line 80. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/backend/src/routes/channel-accounts.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":"platform/backend/src/routes/channel-accounts.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"df490917de1d6b7f4bdba1854e7ec9dcedefc1478119d14b21b5f4aea3edf2f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/session/session-resources.tsx: platform/web/src/components/session/session-resources.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in session-resources.SessionResourceChips at line 71. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/session/session-resources.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":"platform/web/src/components/session/session-resources.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d641aa0792d6ccc185a956366273125047678cb6a2445fe17b4bf9a3de84b9c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/AdminEnvironmentProvidersPage.tsx: platform/web/src/pages/AdminEnvironmentProvidersPage.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AdminEnvironmentProvidersPage.AdminEnvironmentProvidersPage at line 73. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/AdminEnvironmentProvidersPage.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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4695c5f26103c3c562dda35538d8ac3f007ebf77286708055268a10ba1b873c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-workflow/src/workflows/subagent_execution.rs: crates/temporal-workflow/src/workflows/subagent_execution.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in SubagentExecutionWorkflow::run at line 78. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-workflow/src/workflows/subagent_execution.rs\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":"crates/temporal-workflow/src/workflows/subagent_execution.rs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93cd08c3ae8f2702442e6e51babfb7073f6bea6caa7518013ce4be628adb660"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/bot/status.tsx: platform/web/src/components/bot/status.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in status.botStatus at line 19. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/bot/status.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":"platform/web/src/components/bot/status.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"da10ae840f6dd8e5f1b1e80e3e407bb21640f100107b663bf456c619e3b8dead"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/models/add-model-provider-dialog.tsx: platform/web/src/components/models/add-model-provider-dialog.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in add-model-provider-dialog.AddModelProviderDialog at line 28. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/models/add-model-provider-dialog.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":"platform/web/src/components/models/add-model-provider-dialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"11793e9593f9b2eb12462934259d531b840afb84555650db4b829c0a9ad4ea85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/cli/src/chat/tui/slash.rs: crates/cli/src/chat/tui/slash.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in SlashCommandKind::command_with_args at line 199. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/cli/src/chat/tui/slash.rs\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":"crates/cli/src/chat/tui/slash.rs"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcd96e0033d730aa961ae4df1fd517e87688f7155eec5b6e98e73c8fae27dc9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/environment-provider-incus/src/edge.rs: crates/environment-provider-incus/src/edge.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in environment_provider_incus::edge::proxy_websocket at line 146. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/environment-provider-incus/src/edge.rs\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":"crates/environment-provider-incus/src/edge.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3465c540bef6c1e3363c8e31210b0b31b34eaa217acd8ae996f9013dd76d6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/ChannelsPage.tsx: platform/web/src/pages/ChannelsPage.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ChannelsPage.Channels at line 77. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/ChannelsPage.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":"platform/web/src/pages/ChannelsPage.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ccc01f394ee8449e894ae7f4dc5b736a909025164e81b331e7c08d188c61e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/AdminChannelsPage.tsx: platform/web/src/pages/AdminChannelsPage.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in AdminChannelsPage.AdminChannelsPage at line 33. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/AdminChannelsPage.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":"platform/web/src/pages/AdminChannelsPage.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe269c254aa02396198d162aa91981f7e517d48f89b966d39b40cf90be0b7f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/mcp/tool-picker.tsx: platform/web/src/components/mcp/tool-picker.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in tool-picker.ToolPicker at line 48. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/mcp/tool-picker.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":"platform/web/src/components/mcp/tool-picker.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62478bcaa49fe7fd5b90e277d52aa61a9d901bd12763679ad70957df12ed020"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/bot/activity.tsx: platform/web/src/components/bot/activity.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in activity.BotActivity at line 66. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/bot/activity.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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe004deae0c62973aa8d59b6c6304447b86f21c8b3f3f968a1cb7173d94402ad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/tools/src/transfer.rs: crates/tools/src/transfer.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in tools::transfer::capture_selection at line 493. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/tools/src/transfer.rs\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":"crates/tools/src/transfer.rs"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd61abd372c2500a705e2379a3bec0d7576de86f7adab34186c2e99f29d6992"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/AdminApiKeysPage.tsx: platform/web/src/pages/AdminApiKeysPage.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in AdminApiKeysPage.AdminApiKeysPage at line 55. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/AdminApiKeysPage.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":"platform/web/src/pages/AdminApiKeysPage.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f854d12355282e9e73c3b390d8446ff52e7a12c1dbb07caa5a9454ae289a98"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/backend/src/runtime-client.ts: platform/backend/src/runtime-client.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in MemberClient.requireSession at line 114. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/backend/src/runtime-client.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":"platform/backend/src/runtime-client.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5497356f40774e8a377ff88d89831ddd725ec0f2d8a5f444b6e405fa23d3765d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/router.ts: platform/web/src/demo/router.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in router.createDemoRouter at line 18. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/router.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":"platform/web/src/demo/router.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"721254654591a160cd8bff14bd6f895123bc9781587935d6d20026f82c1e33e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/dev/cli-connection.mjs: scripts/dev/cli-connection.mjs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in cli-connection.prepareCliConnection at line 22. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- scripts/dev/cli-connection.mjs\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":"scripts/dev/cli-connection.mjs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcfcf0942f8d4b6ab696d3ce988a176451aee9dd721654cfd3023c375e436a5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/connectors/src/providers/whatsapp/delivery.ts: platform/connectors/src/providers/whatsapp/delivery.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in delivery.deliver at line 64. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/connectors/src/providers/whatsapp/delivery.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":"platform/connectors/src/providers/whatsapp/delivery.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"054ea85f9370dfa509c6a1b61a216316f8d27eb0cd481851c0f07c02e67100e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/temporal-runtime/src/gateway/service/session_preparation.rs: crates/temporal-runtime/src/gateway/service/session_preparation.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in SessionPreparationService::prepare_toolset at line 297. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/temporal-runtime/src/gateway/service/session_preparation.rs\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":"crates/temporal-runtime/src/gateway/service/session_preparation.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"551d467e1c875808c86de606e82a89f6e290ecefc494854961bbd2c9ae16ed17"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/BlobPage.tsx: platform/web/src/pages/BlobPage.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in BlobPage.BlobDetail at line 34. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/BlobPage.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":"platform/web/src/pages/BlobPage.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a15443a4a82690c1988d7d538211693ed6fdb944786f4355f8451ad4c21ca38"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/auth/src/providers.rs: crates/auth/src/providers.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in auth::providers::validate_model_endpoint at line 177. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/auth/src/providers.rs\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":"crates/auth/src/providers.rs"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7809f9512a68f20d88ff428ad147dccb45bad7b654883bbc109adcf9a0efcc7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/demo/routes/auth.ts: platform/web/src/demo/routes/auth.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in auth.authRoutes at line 7. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/demo/routes/auth.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":"platform/web/src/demo/routes/auth.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa03a23c1c8d2ef4f849c0c76645dc7e5e4ca17008571339c5192fd672f124e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/components/bot/environment-card.tsx: platform/web/src/components/bot/environment-card.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in environment-card.BotEnvironmentCard at line 24. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/components/bot/environment-card.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":"platform/web/src/components/bot/environment-card.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e726fc3f3b3027ed2a07a2090dca04cef3cd13657ec77054dc823b4d31ab6597"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: platform/web/src/pages/ModelsPage.tsx: platform/web/src/pages/ModelsPage.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ModelsPage.Models at line 29. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- platform/web/src/pages/ModelsPage.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":"platform/web/src/pages/ModelsPage.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"18606dbe61381b5f158a2dbcb9ccc8ee969955c51478e4fd978420568103cfbf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/auth/src/flow.rs: crates/auth/src/flow.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in OAuthFlowService::complete_callback at line 237. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/auth/src/flow.rs\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":"crates/auth/src/flow.rs"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e3b0112aaedb6a5fa1714e35a58afb0e2fb6368341744236d32cd5655f48e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/llm-runtime/src/compaction.rs: crates/llm-runtime/src/compaction.rs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in llm_runtime::compaction::compact at line 90. 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-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:05:45 \u002B01:00\u0027 --until=\u00272026-11-07 14:05:45 \u002B01:00\u0027 --full-history --no-merges -- crates/llm-runtime/src/compaction.rs\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":"crates/llm-runtime/src/compaction.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b1403ede16173c02f474860096ba0a5f641256e9e28205a245b6d8ab68f88c"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060LightspeedAgentAPI\u0060 spells \u0060API\u0060 where 168 names in the project spell it \u0060Api\u0060: 168 of 169 names in project lightspeed spell the token \u0060Api\u0060 (168 of 169; unit: names in project lightspeed containing \u0060Api\u0060). Peers: clients.typescript.src.generated.types.AgentApiErrorKind (clients/typescript/src/generated/types.ts:54); clients.typescript.src.generated.types.AgentApiError (clients/typescript/src/generated/types.ts:1554); clients.typescript.src.generated.types.AgentApiOutcomeOfAuthClientCreateResponse (clients/typescript/src/generated/types.ts:1567); clients.typescript.src.generated.types.AgentApiOutcomeOfAuthClientDeleteResponse (clients/typescript/src/generated/types.ts:2526); clients.typescript.src.generated.types.AgentApiOutcomeOfAuthClientListResponse (clients/typescript/src/generated/types.ts:2533). Rename to \u0060LightspeedAgentApi\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/typescript/src/generated/types.ts"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5bdf6b904c66d859d1eed8c900f10481264f2cc3dcdc60f6921e8cc29bd0c1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022This sets the cookie to keep the sidebar state.\u0022 repeats the code it sits on: 4 of its 5 words (sets, cookie, sidebar, state) are already in \u0060document.cookie = \u0060${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}\u0060\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/ui/sidebar.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f95cb0c2d2fb14b7bd29471fd1421742f415b3d09a6fc015f721d74c572effc"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022The shared query for a universe\u0027s open environments.\u0022 repeats the code it sits on: 4 of its 5 words (query, universe, open, environments) are already in \u0060export function openEnvironmentsQuery(universeId: string)\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/lib/environments.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e0f6687ea769f3e87a1a98af13a5cb20adc8b384fb5583b5c96dbee23c3bcb"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 7 of 35 project(s) overshoot their size bounds, lowering Project Cohesion to 6.0/10. The most over is \u0060crates/temporal-runtime\u0060 (69872 LoC, 178 module-visible types across 9 directories). 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":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","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":"6546866a1c67b8a0edcdd1bf931ac6090e10a78596332346fc99a04fb71eec66"},"taxa":[{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"2a79bf6a33efe3812cea0c44f01519e6c4ffebe99887d4e5472edfff44220b1d"},"taxa":[{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"58cf883b4186ce9b1246f756ca9b4d59629fdd0fefcdacef9c5f4d8afeaa2384"},"properties":{"commitSha":"4da162ea7a140415498102dd79d059bc6e07d1c8"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"2a4fa248aa971fabff2e5c89952ca715e1ea2843fe468165262de4c4fdab32b4"},"properties":{"commitSha":"68903fadeb3bf11999fe0e2bbe70dd0c40f1f75f"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"fbdf4954a083997a918b8fe95443d9c1c83228674191aa532b67e5bfffd8bd0d"},"properties":{"commitSha":"4da162ea7a140415498102dd79d059bc6e07d1c8"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"2366b08414b9a7f66f773ffd6d8173c64ed41ec9951929905b99086f07ec1867"},"properties":{"commitSha":"68903fadeb3bf11999fe0e2bbe70dd0c40f1f75f"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"5a4a66cf884b5168b6b92ccf8a5596d7405cd2488918db34ef96ae77722a93b7"},"properties":{"commitSha":"68903fadeb3bf11999fe0e2bbe70dd0c40f1f75f"}},{"ruleId":"D28","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":"394c9daa56c0d7a6bd88f2f743441089ea2f823bcdb6b9b69367ef23df64eb7b"},"properties":{"commitSha":"2966244a7d189f9e51795d329030367178f767bb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"681236d4e3a71ee8755e01f42d430b2891b3b54f79f2145949b1149a1d6d154a"},"properties":{"commitSha":"2966244a7d189f9e51795d329030367178f767bb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"05a9c13cbf740dff06f8b0263ef03172f5079052b7c83e6e1aa84db01a28f5cc"},"properties":{"commitSha":"e152a090cafab576784ee445367b7b5dfde1dfe7"}},{"ruleId":"D28","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":"3565ed505aca90e19895169632cf06b7c7f6f070ce0900fa0cbda3258a6f691f"},"properties":{"commitSha":"2966244a7d189f9e51795d329030367178f767bb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"7724917b311821111902f68d9c9ffea563a535b2a1f279cd47cb068e3e21a14f"},"properties":{"commitSha":"2966244a7d189f9e51795d329030367178f767bb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"e273be200b81f8815caea535db4aa5f5c70adcf833de28f144b613f25eec195e"},"properties":{"commitSha":"02f5016f64407a4fc621e47e106f0a74ab1e004b"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"d62ff050c8b7aec9bc4273f01e90227eb0cbb38044f8feb19ad94e78bb7a20cd"},"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":"b82ec22f326542d81b62908b7a767798d37d7d5fc1d1884416e872f994930753"},"taxa":[{"id":"CWE-913","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"3dcc5e884260aa262c9ee1ffb3b614160147e9ba65f33a0bfa9ed008ab55106f"},"taxa":[{"id":"CWE-319","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":"994aec1580bf143747e715a43bc391c4e204111e1d2673517bf9d82af76eca43"},"taxa":[{"id":"CWE-319","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":"721e65ceb6cac7cca1f2cf2f7752fc38155dc81b61fedb6bfeda6cc05718adf5"},"taxa":[{"id":"CWE-319","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":"a252b17c874a1b2f3ad7b0706b5767273c416b385994692cc495afa939780ace"},"taxa":[{"id":"CWE-310","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":"f9cede495e731b98dece0cc1348ab88b102d3623ce895e1d30d7c154c88c503e"},"taxa":[{"id":"CWE-319","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":"854f60358e9265819fffe442e9f810e8959083f9284f74175a27f11b621b8417"},"taxa":[{"id":"CWE-319","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":"ef20c20fca5d6d84fd4797b1070b3f9f9365312b4bc6ca921db6b77ef9331cd0"},"taxa":[{"id":"CWE-319","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":"0087c7bc8c0300ff3d08cf7879203d9c0f7788a7fb952de36ba8e5118b767dfd"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22995033016ae3861d571b2c92ada6244555e3aeec08bc870b909cda12b35c06"},"properties":{"dependency":{"package":"rustls","version":"0.23.45","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0346","RUSTSEC-2026-0347","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"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":"232458f1e861a473d11b103db83010acd3c76ee2f5eb5b53069ae6f2eda9586f"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.9","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"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":"7ec937081c3ad6882e9c07735996d40cd6d5332ac535d70bb5252c6040e1f211"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.15","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"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":"c78c7c829ffb431fb928ff724c9cf0276a780b7b7d9be87f32343d1209a988f8"},"properties":{"dependency":{"package":"webpki-root-certs","version":"1.0.9","advisory":"RUSTSEC-2026-0383","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0382"],"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":"2b5cc6a78fe02a95b2f6755616011982ae866dcba8c2aeaae7b037f36ce19be5"},"properties":{"dependency":{"package":"unsafe-libyaml","version":"0.2.11","advisory":"RUSTSEC-2024-0449","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":"c64e30c28e3c0e2ac4c865fc1656b78d3404e0bf0484e55f9176b7c5f283f360"},"properties":{"dependency":{"package":"tokio","version":"1.53.2","advisory":"RUSTSEC-2026-0386","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":"109eb8c2be00952287a6643744da7dcc2c9a7a6618d7cac60ea6539c1687dfd6"},"properties":{"dependency":{"package":"ctutils","version":"0.4.2","advisory":"RUSTSEC-2026-0385","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":"64363d74ce1f052fae524dc374bd082dc62972fb05982f1a96c21eb7c322e135"},"properties":{"dependency":{"package":"pulldown-cmark","version":"0.13.4","advisory":"RUSTSEC-2026-0414","aliases":["RUSTSEC-2026-0433"],"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":"b57bd94a9054ab1a78280337953ab23bcb5d2500ea7f4b4abe8dc82a1ef1d633"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e48ac159ff7e45e7e8caf46fd08634e372e75c9d630e99e5dd84a5fa49a5f3b3"},"properties":{"dependency":{"package":"deepmerge","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e45e246a1f81abefb49a56aac3206586aa4e8e56c31f950f23000eac0c049f74"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5bd2a8f496b2ef1905716f90a63bd1e262cfcae5d621411e5927831d2ce9469e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"f7401dd9ce98b64cf0c24e1e87178a153b3b4e90d20e281b810d39054bf2137f"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58d8ab1ceb76640ce298014388b449287c42191052f1d750ac87d0d1254bafc8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: schema_export.rs \u2194 mod.rs: \u0060crates/api/src/schema_export.rs\u0060 and \u0060crates/temporal-runtime/src/gateway/service/mod.rs\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006096f53174\u0060 updat mcp (at that commit the file was still \u0060crates/temporal-server/src/gateway/service/mod.rs\u0060); \u00609632333e\u0060 job tests (at that commit the file was still \u0060crates/temporal-server/src/gateway/service/mod.rs\u0060); \u006043e0c9bf\u0060 profiles cli (at that commit the file was still \u0060crates/temporal-server/src/gateway/service/mod.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/api/src/schema_export.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c16022ce6d96aac339b1cc0fdef6deb8b3aa41cbaf16c417f953acb7d54ebd1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: mod.rs \u2194 session_tools.rs: \u0060crates/temporal-runtime/src/worker/activities/mod.rs\u0060 and \u0060crates/temporal-runtime/src/worker/session_tools.rs\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006020c0b83b\u0060 Native MCP in mixed tool batches (at that commit the files were still \u0060crates/temporal-server/src/worker/activities/mod.rs\u0060 and \u0060crates/temporal-server/src/worker/session_tools.rs\u0060); \u0060b760d89f\u0060 better await tool returns (at that commit the files were still \u0060crates/temporal-server/src/worker/activities/mod.rs\u0060 and \u0060crates/temporal-server/src/worker/session_tools.rs\u0060); \u0060a26d502c\u0060 job workflow refactor (at that commit the files were still \u0060crates/temporal-server/src/worker/activities/mod.rs\u0060 and \u0060crates/temporal-server/src/worker/session_tools.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/temporal-runtime/src/worker/activities/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"127fece26d736ef951bb07edcaecda7fabe00aeeb1739871441b0eb874563b12"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: main.rs \u2194 drive.rs: \u0060crates/eval/src/main.rs\u0060 and \u0060crates/harness/src/core/drive.rs\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006048b0e890\u0060 tools config (at that commit the file was still \u0060crates/engine/src/core/drive.rs\u0060); \u0060c93c566c\u0060 manual compaction (at that commit the file was still \u0060crates/engine/src/core/drive.rs\u0060); \u0060e6bde85d\u0060 compaction oai inital (at that commit the file was still \u0060crates/engine/src/core/drive.rs\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/eval/src/main.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da9cb4b24a537b1527201ed40ee9305e21d6e72a99de4ce3ee68786f0e273d2"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f72fee26ee41e9f6e2dbeee58f74796b4c3f06104a50d56e6141cee961f8ab8"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1518022d2f3b8fde81bfbeabd8d16bf753deffadf9ad9879f33fa132ec92a8b"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/models/model-defaults.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"07040dfa1bb043cc44d714abda809ef68dd717a0663c774022d5a9c0a82f638a"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This select is named only by the placeholder of its value part. Nothing is typed into a select, so the placeholder does not vanish on input: it is shown as the trigger\u0027s text until a value is chosen, and then the chosen value replaces it \u2014 so at no point does the control state what the choice is for, and the trigger\u0027s role (combobox) takes its name from the author, not from that text. Name it: an aria-label on the trigger, or an id on the trigger with a \u003Clabel htmlFor\u003E pointing at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c431b8cee1eaa83cc7d4abd67d82741e6bf0fd67928f74891d627b0173ede25"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CCombobox\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"52686a3bd4ce1f3fcf3386e87a86187408ee9d6dcc34c8419b71ede62e6dd64b"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f36c7fd3539852c3438e7094a492a1f1c0a9c67fd6e4443546cea8e64d07152"}},{"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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fa2edcf7224e0d19633c850f2d7dba060aa38908f59549269a72a7c4cc0bd5"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b07915363b6e7211b159e5f39e987427ec3b14a986acbe800641f198c86cc2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"478adccb2e42193c4c4b4ad7af7a31dacf7a6fd72e4b2c99e78ee10f6010dcb4"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"acec76652ad7fb179b4aa1bc5473d7d9eb1f3e42a79c2feaaca0325ade4ec34c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"99259f9ae6f1d65cc28590d72f49c84aa6e29eef97414c4af332920afa8150cb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cdiv\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/resize-handle.tsx"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c247dafeb745c5736048c4101adbc0205b07bdf69e9911bffd00d4a80d15e6b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/session/composer-model-picker.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a983e5e4cfb5cad28a0973cd9080be9af3b990e45ca2d4c770ea68e265c7755"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (3.8:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/ui/progress-steps.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d375e8c4b6d5cea71e8f8f120432916adfbe168ceabd764d5bcdb5b6fee47eb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1461e4cbffda200128c2f02d78cd2fda88b0bfb3ba6bd9af808071408d928eb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"687877dfa84f271a1bb1f9f00a92870c74d66dd474bf80f67bb57ed8c29a8165"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc02808405fdc5dac333bb7cdbb99984d626421a89621241d2879155d3da5f6d"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 133 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"AX8","level":"error","message":{"text":"Production project references a test project: eval \u2192 test-support: \u0060eval\u0060 (production) references the test project \u0060test-support\u0060. Production must never depend on test code \u2014 it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e4927f640ab1fb62b3468832552281a35e4c61dbad003063786fe96a83367163"}},{"ruleId":"C4","level":"note","message":{"text":"Partial data-retention evidence: A retention mechanism is present, but the data-lifecycle is not yet complete \u2014 missing: a scheduled purge / cleanup job (a scheduled task that deletes rows past their retention \u2014 diesel::delete(\u2026.filter(created_at.lt(cutoff))), purge_expired\u2026 / delete_old\u2026)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6c843eccaff7ffcfe5241125b74768c2364055ab6678b12b10d47f44086afa4"}},{"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":"P10","level":"note","message":{"text":"Large public API surface: 2152/2686 types (80%) declared in the published library are public. For a library, every public type is a stability contract \u2014 keep implementation types off the surface and expose only the intended API."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed2ba843444ae377c17142f58f714e281e4bd3f183ab100ee1fbef389875d3e6"}},{"ruleId":"P12","level":"warning","message":{"text":"Workspace package\u0027s tests never run by CI: \u0060platform/backend\u0060 is a workspace package with 213 test(s) in 27 file(s) (e.g. \u0060platform/backend/src/api.test.ts\u0060, \u0060platform/backend/src/auth-access.test.ts\u0060), but no CI command runs them \u2014 no step names the package and no workspace-wide command reaches it, so its tests gate nothing. Run its tests in CI, or delete them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3cea4e933c85ca0336375b2f83edfe441ecc79dfe5f4eea8a16252c6652ce8"}},{"ruleId":"P12","level":"warning","message":{"text":"Workspace package\u0027s tests never run by CI: \u0060platform/configurator-mcp\u0060 is a workspace package with 21 test(s) in 4 file(s) (e.g. \u0060platform/configurator-mcp/test/generated.test.ts\u0060, \u0060platform/configurator-mcp/test/http.test.ts\u0060), but no CI command runs them \u2014 no step names the package and no workspace-wide command reaches it, so its tests gate nothing. Run its tests in CI, or delete them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/configurator-mcp/package.json"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d240b1bb9e2576930f5c523a16beaddcade3631735e15efb3be46fd781d4003c"}},{"ruleId":"P12","level":"warning","message":{"text":"Workspace package\u0027s tests never run by CI: \u0060platform/connectors\u0060 is a workspace package with 63 test(s) in 18 file(s) (e.g. \u0060platform/connectors/test/account-runner.test.ts\u0060, \u0060platform/connectors/test/admission.test.ts\u0060), but no CI command runs them \u2014 no step names the package and no workspace-wide command reaches it, so its tests gate nothing. Run its tests in CI, or delete them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/connectors/package.json"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ab7face467696651cfbf79f3972147ceda79d29e41501e0279f269ae846adf"}},{"ruleId":"P12","level":"warning","message":{"text":"Workspace package\u0027s tests never run by CI: \u0060platform/db\u0060 is a workspace package with 15 test(s) in 1 file(s) (e.g. \u0060platform/db/src/workload-identity.test.ts\u0060), but no CI command runs them \u2014 no step names the package and no workspace-wide command reaches it, so its tests gate nothing. Run its tests in CI, or delete them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/db/package.json"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a89688eaf245161a5fc6e030603f993d78244da8c539b0a734adea04ba480a"}},{"ruleId":"P12","level":"warning","message":{"text":"Workspace package\u0027s tests never run by CI: \u0060platform/web\u0060 is a workspace package with 771 test(s) in 117 file(s) (e.g. \u0060platform/web/src/App.test.tsx\u0060, \u0060platform/web/src/components/activity-dot.test.ts\u0060), but no CI command runs them \u2014 no step names the package and no workspace-wide command reaches it, so its tests gate nothing. Run its tests in CI, or delete them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/package.json"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"221388338a500b4f72f1a0f596aca1388a202e8b7ef5d60cadefdd45e33b4ef6"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 7/18 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060crates/api\u0060, \u0060crates/cli\u0060, \u0060crates/environment-protocol\u0060, \u0060crates/environment-provider-incus\u0060, \u0060crates/eval\u0060 and 6 more."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"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":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"P6","level":"warning","message":{"text":"Release pipeline publishes an empty version: \u0060.github/workflows/release-tag.yml:45\u0060 writes \u0060rust_version=$LIGHTSPEED_RELEASE_RUST_VERSION\u0060 to \u0060$GITHUB_OUTPUT\u0060, but \u0060$LIGHTSPEED_RELEASE_RUST_VERSION\u0060 is assigned nowhere in that \u0060run:\u0060 block, and nowhere else in the workflow. The block runs under \u0060set -u\u0060, so the step ABORTS instead of publishing \u2014 the release never reaches the publisher."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release-tag.yml"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"46170ce2dda35d4a5b499e0674298dd8b44fd5947625f9448dfcddad2e8a3168"}},{"ruleId":"P6","level":"warning","message":{"text":"Release pipeline publishes an empty version: \u0060.github/workflows/release-tag.yml:46\u0060 writes \u0060version=$LIGHTSPEED_PRODUCT_VERSION\u0060 to \u0060$GITHUB_OUTPUT\u0060, but \u0060$LIGHTSPEED_PRODUCT_VERSION\u0060 is assigned nowhere in that \u0060run:\u0060 block, and nowhere else in the workflow. The block runs under \u0060set -u\u0060, so the step ABORTS instead of publishing \u2014 the release never reaches the publisher."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release-tag.yml"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb62b58096ae845d913248df567a5371645064b10ef619c0764c07816747da5"}},{"ruleId":"P6","level":"warning","message":{"text":"Release pipeline publishes an empty version: \u0060.github/workflows/snapshot-main.yml:45\u0060 writes \u0060version=$LIGHTSPEED_PRODUCT_VERSION\u0060 to \u0060$GITHUB_OUTPUT\u0060, but \u0060$LIGHTSPEED_PRODUCT_VERSION\u0060 is assigned nowhere in that \u0060run:\u0060 block, and nowhere else in the workflow. The block runs under \u0060set -u\u0060, so the step ABORTS instead of publishing \u2014 the release never reaches the publisher."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/snapshot-main.yml"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa92efe17cdd2a8f9f0bd2ab4469f4b30f1bd5e48dfaf039d0338e1152a1faf2"}},{"ruleId":"P6","level":"warning","message":{"text":"Release pipeline publishes an empty version: \u0060.github/workflows/snapshot-main.yml:46\u0060 writes \u0060rust_version=$LIGHTSPEED_RELEASE_RUST_VERSION\u0060 to \u0060$GITHUB_OUTPUT\u0060, but \u0060$LIGHTSPEED_RELEASE_RUST_VERSION\u0060 is assigned nowhere in that \u0060run:\u0060 block, and nowhere else in the workflow. The block runs under \u0060set -u\u0060, so the step ABORTS instead of publishing \u2014 the release never reaches the publisher."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/snapshot-main.yml"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9755703359a15873a785f722c4b511863402298891261c5e33aa004644d3ab8"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::builder(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/cli/src/api_client.rs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75ef4c205db205e2c0baf09a81aa153f236b3bf299697effd448187b59b0b4c"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060reqwest::Client::new(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-provider-incus/src/edge.rs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7899db9954fd0ddd2ce7dc1534c101fd728a2d6815e38fd9b6804388b2ba7b0c"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/scripts/check-sso.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0657761ab670b4a5723563cb4df6f653f19fe6df98964bdb7ffa721630f93c35"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/scripts/check-sso.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2feb7d135374c726eb13ab2f8c47b703b7b1fb560f28db3a8118e81dfca68366"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060fetch(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/scripts/check-sso.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7db2808af99c16a517d20dcb5b297670fcf710cfd522035af91738c099725c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060diffCommand\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":"platform/web/scripts/screendiff.mjs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"99dd6c6ae743a99b26e7c681761bcb9f71af3af4eac464d57d61c6a59c42487a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060diffCommand\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":"platform/web/scripts/screendiff.mjs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19bdc2d1bd8bc9924dac9a9d8fc2c6a10bc862c451d3710a8445445011cb11a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060diffCommand\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":"platform/web/scripts/screendiff.mjs"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad76f6d56ea8d60b505e7132241bc210be59d97132f008787cec52d48031a67"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060diffCommand\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":"platform/web/scripts/screendiff.mjs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0538aae5a0d59b0f1a3262fe242688bb2a02b8bf73462ea07a9eb3352af18924"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060capture\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":"platform/web/scripts/screendiff.mjs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dee27c6b3769423a8bb60000442d7c2829fe010602b74e92fb520859309fe1e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060capture\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":"platform/web/scripts/screendiff.mjs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d557f78895c854291cce3cdcaada1c3fbcf936e8fee3c810190e96772b53f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (44 clone groups): 44 duplicated blocks under platform/web/src/ have copies in at least two of the sibling directories components, lib, pages \u2014 17 of them are reported below, and 27 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 44 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 44 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 44 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":"platform/web/src/components/universe-switcher.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfc15eff8c6e98528c8ef6d22f2f8f136886f010615f4a020084bd3761f086d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 6 sibling directories (6 clone groups): 6 duplicated blocks under platform/ have copies in at least two of the sibling directories backend, cli, configurator-mcp, connectors, shared, web \u2014 5 of them are reported below, and 1 is 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":"platform/configurator-mcp/src/upstream-client.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d37f80b3a226f9e35dbe80856141d275b0009a856433703bfe4098f3a7585fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (6 clone groups): 6 duplicated blocks under platform/web/src/components/ have copies in at least two of the sibling directories bot, credentials, mcp, models, session \u2014 2 of them are reported below, and 4 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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e944f95ae5ad22a92549e7038285f808854dbeeb7251985bb71651d871928962"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (219 matched lines \u00D7 2 locations): platform/web/src/pages/AdminApiKeysPage.tsx:69 \u00B7 platform/web/src/pages/ApiKeysPage.tsx:80 \u2014 the two spans are one implementation copied and then locally edited \u2014 1359 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":"platform/web/src/pages/AdminApiKeysPage.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1186712578f61c764a3293bcf8495eeff8130b9db761af9c82a8aab688a3cac8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (136 matched lines \u00D7 2 locations): platform/web/src/pages/ApiKeysPage.tsx:73 \u00B7 platform/web/src/pages/CredentialsPage.tsx:128 \u2014 the two spans are one implementation copied and then locally edited \u2014 697 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":"platform/web/src/pages/ApiKeysPage.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fb25b913f681a976a1be9e9d8bf2323a76dd86637211baf0dcfbfca761cc00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (105 matched lines \u00D7 2 locations): platform/web/src/components/ui/dialog.tsx:10 \u00B7 platform/web/src/components/ui/sheet.tsx:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 462 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":"platform/web/src/components/ui/dialog.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b44cc5058e92546cb6af08fa1f17398c164f4f9450c9d0fa2fe19b869d34111"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (97 matched lines \u00D7 2 locations): platform/web/src/pages/ChannelsPage.tsx:325 \u00B7 platform/web/src/pages/CredentialsPage.tsx:469 \u2014 the two spans are one implementation copied and then locally edited \u2014 529 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":"platform/web/src/pages/ChannelsPage.tsx"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e880a52023f639f7761000df39d7ada7e947d6ef14cc0bb4bf775e19ea7709"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (70 matched lines \u00D7 2 locations): platform/web/src/components/ui/combobox.tsx:122 \u00B7 platform/web/src/components/ui/select.tsx:103 \u2014 the two spans are one implementation copied and then locally edited \u2014 257 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":"platform/web/src/components/ui/combobox.tsx"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0f06c678fd1725a7f89da07c2d9e55ca5c191782cb9e935bae21f14cc4c6eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (58 matched lines \u00D7 2 locations): platform/connectors/src/presentation/telegram.ts:24 \u00B7 platform/connectors/src/presentation/whatsapp.ts:19 \u2014 the two spans are one implementation copied and then locally edited \u2014 376 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":"platform/connectors/src/presentation/telegram.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44b8de00a692ae9effd90b0df993ae72049ae2a2cd60fd2687e1531c9f66ab0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (54 matched lines \u00D7 2 locations): platform/web/src/components/models/model-api-key.tsx:224 \u00B7 platform/web/src/components/models/model-api-key.tsx:542 \u2014 the two spans are one implementation copied and then locally edited \u2014 253 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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0570db1652e47e8680ccaec985058cd95fc48f93b76a5a6291404ae48510b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2 locations): platform/web/src/pages/ProfilesPage.tsx:688 \u00B7 platform/web/src/pages/WorkspacesPage.tsx:651 \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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf315e022cc7784a8e2cf639a84a01689039169976d84deb5abba042fbc3b8ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (40 matched lines \u00D7 2 locations): platform/web/src/components/universe-switcher.tsx:118 \u00B7 platform/web/src/pages/WorkspacesPage.tsx:605 \u2014 the two spans are one implementation copied and then locally edited \u2014 263 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":"platform/web/src/components/universe-switcher.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"99916fd94012fcaf69dd7994c8f77a251dccc3a8580c93c24d121953efb13ba0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): platform/connectors/src/providers/telegram/delivery.ts:37 \u00B7 platform/connectors/src/providers/whatsapp/delivery.ts:38 \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":"platform/connectors/src/providers/telegram/delivery.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9b5a432af47f1fa19904a8e08020e1fdda4a1e4f207840f72465bbb4e03772"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (35 matched lines \u00D7 2 locations): platform/web/src/pages/ProfilesPage.tsx:576 \u00B7 platform/web/src/pages/SessionsPage.tsx:1243 \u2014 the two spans are one implementation copied and then locally edited \u2014 216 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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc50ae34f5fec9d7b25e28c4b2a0fce0da134e6c77f43869258a8c833ec6fa3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): platform/web/src/components/ui/dropdown-menu.tsx:19 \u00B7 platform/web/src/components/ui/popover.tsx:14 \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":"platform/web/src/components/ui/dropdown-menu.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6d195d6a03f2e61b6cb5902311e40aad47eb615dc026332baeabfc5fb4f543"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): platform/web/src/components/credentials/github-app.tsx:211 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:463 \u2014 the two spans are one implementation copied and then locally edited \u2014 187 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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfec650ff25c3d871644bb788e8c6b38a70ba0297881ab6c850b2d694bff1d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): platform/web/src/pages/AdminEnvironmentProvidersPage.tsx:97 \u00B7 platform/web/src/pages/AdminUniversesPage.tsx:101 \u2014 the two spans are one implementation copied and then locally edited \u2014 201 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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7105219ed8b6410b07eaa497de0f6c97774536024e219c56f7d3df158e2f2271"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1420 \u00B7 platform/backend/src/routes/gateway.ts:1464 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"85328a517796975bef7035f012226c6a0cb8aaa9e46519e0ebc2ec644ca8f5ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): platform/web/src/components/ui/field.tsx:10 \u00B7 platform/web/src/components/ui/message.tsx:5 \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":"platform/web/src/components/ui/field.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3661d5af8caf6edbbaacff3be1022863672f67e49d062a32700eb34f3581620a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (28 matched lines \u00D7 2 locations): platform/web/src/components/models/model-api-key.tsx:123 \u00B7 platform/web/src/components/models/subscription.tsx:72 \u2014 the two spans are one implementation copied and then locally edited \u2014 155 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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ca2622f0c169ae9fe9a7e1553f39297e6ea9eefa9b41dfe44b4ba704e91f05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): platform/web/src/pages/SessionsPage.tsx:473 \u00B7 platform/web/src/pages/SessionsPage.tsx:528 \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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de62b75970de9ebb500261d84b37bffb22e9c89d4922907fe509d223f881a80"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3 locations): platform/web/src/components/workspace-transfers.tsx:767 \u00B7 platform/web/src/components/workspace-transfers.tsx:832 \u00B7 platform/web/src/components/workspace-transfers.tsx:984 \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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab0dec7f2a31dcd1ad3ea904356c4801c3f07974a2c35c26a5c2f2128a8cc15"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): platform/web/src/pages/MembersPage.tsx:150 \u00B7 platform/web/src/pages/ProfilesPage.tsx:371 \u2014 the two spans are one implementation copied and then locally edited \u2014 99 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":"platform/web/src/pages/MembersPage.tsx"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f148f6889e6fd0be51335f78045a11a2535dc1404d5e35c93707acfd97f7a4c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3 locations): platform/web/src/components/ui/dropdown-menu.tsx:7 \u00B7 platform/web/src/components/ui/popover.tsx:6 \u00B7 platform/web/src/components/ui/tooltip.tsx:20 \u2014 the 3 copies are spread across 3 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":"platform/web/src/components/ui/dropdown-menu.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6d842c8928e0974b7c8c6726d7141ce24e80465fdc0753abc92a6293feb830"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:2145 \u00B7 platform/backend/src/routes/gateway.ts:2175 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ff722f6233025e47b0b60dafa51bf574271d0a6d393e026461823017e1030d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): platform/connectors/src/providers/telegram/media.ts:86 \u00B7 platform/connectors/src/providers/whatsapp/media.ts:157 \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":"platform/connectors/src/providers/telegram/media.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"078597b14002b04903a1020c13ab158c77cfca7e63335310ddbb90a8e805c277"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): platform/web/src/pages/ProfilesPage.tsx:98 \u00B7 platform/web/src/pages/SessionsPage.tsx:197 \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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b7ef7dbc1d48afca64c989601bff42d59d141948e1e0130f5aab10eeae8334"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:684 \u00B7 platform/backend/src/routes/gateway.ts:708 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"30df6960cb97701c1bce6f64c0b4cfca7444522cf35e4ffc2a1b3759b083fcfb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): platform/web/src/components/confirm-danger-button.tsx:30 \u00B7 platform/web/src/pages/GeneralSettingsPage.tsx:253 \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":"platform/web/src/components/confirm-danger-button.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f5c05f96562bf67ddc6286d5e9a4880d82fa84292a7bc972df343d4c491485"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): platform/configurator-mcp/src/upstream-client.ts:74 \u00B7 platform/connectors/src/providers/telegram/media.ts:136 \u2014 the two spans are one implementation copied and then locally edited \u2014 92 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":"platform/configurator-mcp/src/upstream-client.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"26eb4f85375254b72316c2572def551454e6c7cb7d3d35dd6b7015e48272be58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): platform/web/src/components/bot/chat.tsx:21 \u00B7 platform/web/src/components/bot/detail.tsx:130 \u2014 the two spans are one implementation copied and then locally edited \u2014 69 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":"platform/web/src/components/bot/chat.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b389abaf0fd12deaee648e00a57f844cbdeead3e4f8ede77f874049ea9b62d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): platform/web/src/components/bot/send-event-dialog.tsx:51 \u00B7 platform/web/src/pages/MembersPage.tsx:285 \u2014 the two spans are one implementation copied and then locally edited \u2014 90 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":"platform/web/src/components/bot/send-event-dialog.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4009b9be307d704f7fbc52174aefab8a491709c07153335e8b322efa337db3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): platform/web/src/components/credentials/github-app.tsx:180 \u00B7 platform/web/src/components/models/model-api-key.tsx:534 \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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0359d3086dd4d721de98636df44dfa107cd9594093526b3049def3bf79ad4e2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): platform/web/src/components/icons/bot.tsx:8 \u00B7 platform/web/src/components/icons/bot.tsx:40 \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":"platform/web/src/components/icons/bot.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3064e776fb70db9cb2d8fcec318dc77c7b0c225d5ee1c88432fb52060a87f6d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): platform/web/src/pages/AdminEnvironmentProvidersPage.tsx:316 \u00B7 platform/web/src/pages/GeneralSettingsPage.tsx:254 \u2014 the two spans are one implementation copied and then locally edited \u2014 84 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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc01199d1737462d8406f452f8f6335c230ad28420dcf24540255f0b8b5bf97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): platform/web/src/pages/GeneralSettingsPage.tsx:254 \u00B7 platform/web/src/pages/ProfilesPage.tsx:371 \u2014 the two spans are one implementation copied and then locally edited \u2014 80 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":"platform/web/src/pages/GeneralSettingsPage.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b246e891b6fd90a81a50e2dd56bfbc791639bab859c06c0e65b89bea2db3b49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): platform/web/src/pages/ProfilesPage.tsx:124 \u00B7 platform/web/src/pages/WorkspacesPage.tsx:200 \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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"23790195cbc285094ebf56540b85255fda65eed751541f81190eac381e2eea1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): platform/web/src/components/session/session-config-editor.tsx:1588 \u00B7 platform/web/src/components/session/session-config-editor.tsx:1605 \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8bf6610ad4df760bb42fced1f27c1242585fcedebc2a0cc3cf8ffba59a2eba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): platform/web/src/components/workspace-transfers.tsx:728 \u00B7 platform/web/src/components/workspace-transfers.tsx:805 \u00B7 platform/web/src/components/workspace-transfers.tsx:954 \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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"647f219951cd2644e9eeec65ddfc5d2edb75271c0f30e7ad08f5a81f1d06de6e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): platform/web/src/pages/ChannelsPage.tsx:269 \u00B7 platform/web/src/pages/GeneralSettingsPage.tsx:254 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 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":"platform/web/src/pages/ChannelsPage.tsx"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6f4ae811305540a7c4c1f7ba5dda18ae04dc5439095d08f3fc1f7dc4f7c119"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): platform/scripts/generate-config-reference.mjs:51 \u00B7 platform/scripts/generate-config-reference.mjs:83 \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":"platform/scripts/generate-config-reference.mjs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c094a1b5fd0a2ff17859b12c5bd3bbc58cc323cf80ac3918fa443339b3f60b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): platform/web/src/pages/AdminUniversesPage.tsx:429 \u00B7 platform/web/src/pages/SessionsPage.tsx:1072 \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":"platform/web/src/pages/AdminUniversesPage.tsx"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf34b668aaf70f45401f6f8d02d15f15fd89237864d7c32767186f0b78e4cde"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): platform/web/src/pages/CredentialsPage.tsx:260 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:557 \u2014 the 2 copies are spread across 2 files, 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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff915422b97b42807b40c8cf02c426fa00c3cb84cc1256130a7f83a5248e6a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): platform/web/src/pages/EnvironmentsPage.tsx:1185 \u00B7 platform/web/src/pages/SessionsPage.tsx:1167 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88870312bf6983400fb5b5a9159d25184a9f447db796dc037d045c800d85830"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:459 \u00B7 platform/backend/src/routes/gateway.ts:1557 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19100e59fa14ffb42c57226ed6ccef6274939f918b2a48809a6894faa85188a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:2125 \u00B7 platform/backend/src/routes/gateway.ts:2232 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ce4d097ede14f8ee950438bb81449ec0691028a4526bfc03d88c5fdce10f08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): platform/web/src/components/icons/bot.tsx:69 \u00B7 platform/web/src/components/icons/bot.tsx:97 \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":"platform/web/src/components/icons/bot.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50cf5b1f77f7997226e8e57e365c0598750a02526233328f533344792e22f4a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): platform/web/src/components/session/session-config-editor.tsx:1512 \u00B7 platform/web/src/components/session/session-config-editor.tsx:2221 \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84e5fe2281543007fd974df02150f62d77647b13f751ae8f834b3cb4d8e7df1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 12 locations): platform/web/src/components/ui/avatar.tsx:63 \u00B7 platform/web/src/components/ui/card.tsx:28 \u00B7 platform/web/src/components/ui/card.tsx:53 \u00B7 platform/web/src/components/ui/card.tsx:76 \u00B7 \u002B8 more site(s) not listed \u2014 the 12 copies are spread across 7 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":"platform/web/src/components/ui/avatar.tsx"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad542d849addcac3f4b1f7ec59eb93661855ff9b5c38caea487639c961593647"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): platform/web/src/components/workspace-transfers.tsx:906 \u00B7 platform/web/src/components/workspace-transfers.tsx:1079 \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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a20f96cbab81c3dbf63862d1bc6a1b0b35743ec5db9c6b60eed9f8e47462af7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): platform/backend/src/routes/api-keys-admin.ts:21 \u00B7 platform/backend/src/routes/environment-deployment.ts:35 \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":"platform/backend/src/routes/api-keys-admin.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2111dd6ddaaa1c1413042dcf40f853d0ace7706fb2a982ef160749984aa942d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5 locations): platform/backend/src/routes/bots.ts:75 \u00B7 platform/backend/src/routes/bots.ts:183 \u00B7 platform/backend/src/routes/bots.ts:219 \u00B7 platform/backend/src/routes/channel-accounts.ts:115 \u00B7 \u002B1 more site(s) not listed \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"700887e3bd96e725e3af7dae32a71ecd8cf17b5190b2be42f5eb243f084d7b2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): platform/backend/src/routes/bots.ts:239 \u00B7 platform/backend/src/routes/bots.ts:298 \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d678d2eed358c7609dec059f9d490006292d28bdbd1bfcde8ec78712125d77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1023 \u00B7 platform/backend/src/routes/gateway.ts:1041 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8dda8adf8e2e9db7773106fbd73709d0e9464e7abe559cd527b743211eaf03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1138 \u00B7 platform/backend/src/routes/gateway.ts:1303 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b397147ca6fc033b28c9b6e33bec2b8c3ed35e28e6c151cfd1015736c9f2510"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): platform/backend/src/routes/universes.ts:166 \u00B7 platform/backend/src/routes/universes.ts:225 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"59394f11c47091553ba86a6a829748d41560b6bbe7afee0edc2a3c26e1800425"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): platform/web/src/components/credentials/github-app.tsx:92 \u00B7 platform/web/src/pages/AdminUniversesPage.tsx:431 \u00B7 platform/web/src/pages/SessionsPage.tsx:1074 \u2014 the 3 copies are spread across 3 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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eda909f9e6dc623571c207a71f3615a049488644db18592073cb5d4d0ad00d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): platform/web/src/pages/AccountPage.tsx:156 \u00B7 platform/web/src/pages/LoginPage.tsx:91 \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":"platform/web/src/pages/AccountPage.tsx"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"535b555484c53d14447ac0d2c64ec1be07f50676fd541e5e5272c59760888fff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): platform/web/src/pages/EnvironmentsPage.tsx:83 \u00B7 platform/web/src/pages/McpServersPage.tsx:56 \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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"04802eaaec358f489088fd81d9fc38a1387dfe0577185b51a0ec96a0903d930b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): platform/web/src/pages/ProfilesPage.tsx:471 \u00B7 platform/web/src/pages/ProfilesPage.tsx:488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf5c37a456f24fa0e9725af9438b5bb13234331629acd5770b4a1dafe51bf15"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): platform/backend/src/routes/bots.ts:18 \u00B7 platform/backend/src/routes/channel-accounts.ts:29 \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f23b0df3ab45e7c66118fe90b7317ce048bd913aaecf4e3d2a6a5fb018103b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:432 \u00B7 platform/backend/src/routes/gateway.ts:1534 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd609ca6c7dc1739b217a06cb2a842bf0bd4e0f8d7529568d623f92fdcf43c0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): platform/backend/src/routes/setups.ts:84 \u00B7 platform/backend/src/routes/universes.ts:470 \u00B7 platform/backend/src/routes/universes.ts:525 \u00B7 platform/backend/src/routes/universes.ts:570 \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":"platform/backend/src/routes/setups.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f7a9221abf22438b0e72fd1939f317f3d283fc007868281101b93efd34fcbf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): platform/cli/src/client.ts:28 \u00B7 platform/web/src/api.ts:66 \u2014 the two spans are one implementation copied and then locally edited \u2014 82 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":"platform/cli/src/client.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7120700dea1940e9a9cd43bae7f63df4f5e6445294225d6a8c28b777cc06ca72"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): platform/shared/src/workspace-transfers.ts:159 \u00B7 platform/shared/src/workspace-transfers.ts:176 \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":"platform/shared/src/workspace-transfers.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5418c0bc266613d847caa1291e581f4d39d587483b45f9d32adb9d636cf710ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): platform/web/src/components/bot/setup.tsx:883 \u00B7 platform/web/src/pages/BotCreatePage.tsx:596 \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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8493084e1b050c30853c0ae32218f5b1052c78497b4ad93ef0bafa2a655b96"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): platform/web/src/components/credentials/github-app.tsx:226 \u00B7 platform/web/src/components/models/subscription.tsx:153 \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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"58981de4cf9e89b4b9ad76dc06928d2a5e281779e309de1633684497a716a62d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): platform/web/src/components/icons/bot.tsx:36 \u00B7 platform/web/src/components/icons/bot.tsx:65 \u00B7 platform/web/src/components/icons/bot.tsx:93 \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":"platform/web/src/components/icons/bot.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e59fc252d8c4a680d804771623b9c0096fb26253ec565ad6db19d56756d2ea5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): platform/web/src/components/workspace-transfers.tsx:1037 \u00B7 platform/web/src/components/workspace-transfers.tsx:1077 \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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef40732e71c5b70e7b3924eee7409c9d0d95fa9c17dae51300e7f99e9a5e433c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): platform/web/src/pages/AccountPage.tsx:113 \u00B7 platform/web/src/pages/AdminUsersPage.tsx:254 \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":"platform/web/src/pages/AccountPage.tsx"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2228bc8d004667a4bfc5f1d5875f3fbd27d47209d123299dc41df9b1905bfedc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:497 \u00B7 platform/backend/src/routes/gateway.ts:1720 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bee271890f43593c85aa5291622b1bf451c2eea2e033e5ea02a79672ef95a24"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1060 \u00B7 platform/backend/src/routes/gateway.ts:1096 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"e300a3279faee77f5a6c83a71267a5a502180128c1d90ee45f9018d9fe35de84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1748 \u00B7 platform/backend/src/routes/gateway.ts:1823 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dafb2e3776129d198b89d9c3d7056950709a76cbb306099f672f2b9006c23b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): platform/backend/src/vfs.ts:110 \u00B7 platform/shared/src/workspace-transfers.ts:304 \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":"platform/backend/src/vfs.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a0e92910d160c56f69acd2d5781489f6af0ceb60a2e8c758050d859fbb0188"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): platform/web/src/components/session/session-config-editor.tsx:1386 \u00B7 platform/web/src/components/session/session-config-editor.tsx:2146 \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab346bd50bde0a66b096a14e0edf743a685d61d03767063cd79cd0288d935662"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): platform/web/src/components/universe-appearance-card.tsx:35 \u00B7 platform/web/src/components/universe-appearance-card.tsx:47 \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":"platform/web/src/components/universe-appearance-card.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd40ddb996df711b63eaf4b085e4186ff87e03735a412f7fe2bb1a0583903df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): platform/web/src/lib/sessions/list-preferences.ts:59 \u00B7 platform/web/src/lib/user-preferences.tsx:56 \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":"platform/web/src/lib/sessions/list-preferences.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8409e63c7fe2a9112aea1f2c835e7992b21825fc41f52afff08366285779082"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): platform/web/src/pages/LoginPage.tsx:25 \u00B7 platform/web/src/pages/LoginPage.tsx:51 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 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":"platform/web/src/pages/LoginPage.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13646c4e6c6d4ebdd703c40133c94d41a8aaf043b5d949b726319f6a204af01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): platform/backend/src/routes/gateway.ts:405 \u00B7 platform/backend/src/routes/gateway.ts:969 \u00B7 platform/backend/src/routes/gateway.ts:982 \u00B7 platform/backend/src/routes/gateway.ts:1733 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21415584fe473b83fcf8b7d0c6c1ceb46cbaa66ccf84f3f8198bab912ce67ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): platform/backend/src/routes/gateway.ts:545 \u00B7 platform/backend/src/routes/gateway.ts:655 \u00B7 platform/backend/src/routes/gateway.ts:742 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d321989d55b056b423068fd9d627cd4f6077fb46d0bf634435b68559934b7c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:939 \u00B7 platform/backend/src/routes/gateway.ts:1444 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"817940b026a485986481d359aa063d1baacea97e8560cb46e706bf62ff19a4b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:995 \u00B7 platform/backend/src/routes/gateway.ts:1368 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6c9af1e3e16a41ae8049cd3e5b8ad5c880abf3a7f4361bdc73bcb732db2d6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1846 \u00B7 platform/backend/src/routes/gateway.ts:1865 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3fbc465628aea8e3bd011359098eb69e005e80a54bec9d4cf36ba63cc870b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:2344 \u00B7 platform/backend/src/routes/gateway.ts:2370 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fe2d0830bb45b442ac235c2ba24bb342a4540c6622640ee83f23a5f548ad31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): platform/backend/src/routes/session-admin.ts:14 \u00B7 platform/backend/src/routes/universes.ts:440 \u2014 the two spans are one implementation copied and then locally edited \u2014 81 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":"platform/backend/src/routes/session-admin.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adfd56046402a68e354a9cd22d72ea2525746a2d4b9dc32fc0439bc51b180cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/backend/src/routes/universes.ts:341 \u00B7 platform/backend/src/routes/universes.ts:363 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"914b8a0861055ad618831029d44f434bfa68fd56f21cc571faaa4567e6c6f581"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5 locations): platform/web/src/components/bot/cron-builder.tsx:251 \u00B7 platform/web/src/components/bot/triggers.tsx:1613 \u00B7 platform/web/src/components/bot/triggers.tsx:2105 \u00B7 platform/web/src/components/bot/triggers.tsx:2117 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 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":"platform/web/src/components/bot/cron-builder.tsx"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ab8f32b32cab7d3cfec3156942512953ba9936907b50cb656ffe545716042f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): platform/web/src/components/bot/setup.tsx:495 \u00B7 platform/web/src/pages/ProfilesPage.tsx:577 \u00B7 platform/web/src/pages/SessionsPage.tsx:1244 \u2014 the 3 copies are spread across 3 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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"404812c974dd1ac5f20ffe0f4658835e1db5ae7dcfe61fc0e339b3ad955ac9b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/web/src/components/bot/status.tsx:105 \u00B7 platform/web/src/pages/ProfilesPage.tsx:449 \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":"platform/web/src/components/bot/status.tsx"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6de23780944f88515661cee2d1d333ac36385117b6557720877a4060f03bec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/web/src/components/bot/triggers.tsx:1946 \u00B7 platform/web/src/components/bot/triggers.tsx:2195 \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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"458c26937c71d5445711138387cd4b60e56892372f62c685a8109bf71f8aac1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/web/src/components/session/session-config-editor.tsx:1437 \u00B7 platform/web/src/components/session/session-config-editor.tsx:1488 \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02e40a700ed0938761be3928a88ffbcc83ce4fdec8d0baeb7d455fdaba6c6e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/web/src/components/session/session-config-editor.tsx:1471 \u00B7 platform/web/src/components/session/session-config-editor.tsx:2195 \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f353123ff39818696cdf13d9226eecf975dacfb731ed308be8fbc0b429486f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/web/src/components/session/session-config-editor.tsx:1652 \u00B7 platform/web/src/components/session/session-config-editor.tsx:1717 \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"331d4a443881f2001b6b5838db21d86c13d410c7883e3e59a632e53407040c23"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): platform/web/src/components/session/session-config-editor.tsx:486 \u00B7 platform/web/src/lib/sessions/resource-features.ts:41 \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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"9508b9cb0f80d8642811c70c9fce06c5ff809beecc72bf683f036bc0b7b4958c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6 locations): platform/web/src/pages/ApiKeysPage.tsx:49 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:83 \u00B7 platform/web/src/pages/GeneralSettingsPage.tsx:38 \u00B7 platform/web/src/pages/McpServersPage.tsx:51 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 6 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":"platform/web/src/pages/ApiKeysPage.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"941a35ac819985bfb10efa67ddf16412ed4939baebf94f4526b663f714620ba4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): platform/web/src/pages/BotsPage.tsx:54 \u00B7 platform/web/src/pages/ProfilesPage.tsx:84 \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":"platform/web/src/pages/BotsPage.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2c2e45eb8332b029ed0591bba4e9d8d9dc821a5ef9f3bf6e7844d4f92eff02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): platform/backend/src/routes/bots.ts:65 \u00B7 platform/backend/src/routes/bots.ts:97 \u00B7 platform/backend/src/routes/bots.ts:109 \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"112b52aeb0955963ab318c683a90cd41970d30ff5cd654a1eceb308e8f48c433"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): platform/backend/src/routes/bots.ts:123 \u00B7 platform/backend/src/routes/channel-accounts.ts:209 \u00B7 platform/backend/src/routes/channel-accounts.ts:243 \u00B7 platform/backend/src/routes/gateway.ts:1809 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/src/routes/bots.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea922f68d618f335cbea7a7be825f17cbd2b053ab847ad8b82e4a45cc386f5d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): platform/backend/src/routes/bots.ts:226 \u00B7 platform/backend/src/routes/bots.ts:285 \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d807e4496494bd0bdca83d0820c328dd3110623b76dc3ad8ce4b1cee0b8fddf4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 33 locations): platform/backend/src/routes/channel-accounts.ts:133 \u00B7 platform/backend/src/routes/gateway.ts:431 \u00B7 platform/backend/src/routes/gateway.ts:532 \u00B7 platform/backend/src/routes/gateway.ts:631 \u00B7 \u002B29 more site(s) not listed \u2014 the 33 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":"platform/backend/src/routes/channel-accounts.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e006f2775f2389bd3f4775e2e9f79c56c3e65334c04d23dd523a7171a10abd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 26 locations): platform/backend/src/routes/gateway.ts:534 \u00B7 platform/backend/src/routes/gateway.ts:683 \u00B7 platform/backend/src/routes/gateway.ts:707 \u00B7 platform/backend/src/routes/gateway.ts:730 \u00B7 \u002B22 more site(s) not listed \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f09a37d148aa850526a497e35d5815148502cb48ec6d977e446bb7b7a44ed1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:667 \u00B7 platform/backend/src/routes/gateway.ts:2277 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"0902e835e540829226cef51fb72291f8bdf02d0f8e22fd582ed12b9b753caa4b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): platform/backend/src/routes/gateway.ts:2024 \u00B7 platform/backend/src/routes/gateway.ts:2093 \u00B7 platform/backend/src/routes/gateway.ts:2139 \u00B7 platform/backend/src/routes/gateway.ts:2169 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8cc84cf1a9de77d4f61aa3b925ccd17e268cdbd121637f5b6a3a35ef6050ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): platform/web/src/components/bot/detail.tsx:167 \u00B7 platform/web/src/components/bot/setup.tsx:228 \u00B7 platform/web/src/components/bot/setup.tsx:992 \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":"platform/web/src/components/bot/detail.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb880f293ecc53b2d5779faf7b1282a1b60c41e5b26ce599f0d989485068639"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): platform/web/src/components/bot/triggers.tsx:1220 \u00B7 platform/web/src/components/bot/triggers.tsx:1336 \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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"1504616422f8a8c0cb8b475dc5af2a08be44481f8fb3d023f69e7d088b56b4ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): platform/web/src/components/models/model-defaults.tsx:141 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:1244 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 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":"platform/web/src/components/models/model-defaults.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0958ca4d32095c2afa6160a0a3db0d7b36c328f9858530eb177b016a1b154d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): platform/web/src/components/session/metadata-editor.tsx:85 \u00B7 platform/web/src/components/session/metadata-editor.tsx:94 \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":"platform/web/src/components/session/metadata-editor.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c206d864666791776b3fb2e4f103f28392d65cbcd02c07f5d0c5cd3e5acd2751"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): platform/web/src/pages/EnvironmentsPage.tsx:590 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:1659 \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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"469eeffae0ab615ac92dc1948a837e1db63e2f140ec62dab8e898f93e27b16f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): platform/web/src/pages/ProfilesPage.tsx:671 \u00B7 platform/web/src/pages/WorkspacesPage.tsx:627 \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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"53055619a660e813e93f77f0fe2634f806614cc51d5c8ec68840de2eab220c12"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): platform/web/src/pages/WorkspacesPage.tsx:603 \u00B7 platform/web/src/pages/WorkspacesPage.tsx:729 \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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0b848d644b60b784942c6630f384d3d96e174b12fc198ea8b724d00f14007a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/release/verify-manifest.mjs:78 \u00B7 scripts/release/verify-manifest.mjs:92 \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":"scripts/release/verify-manifest.mjs"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1e6502b9cd47496ed5f887faf786c6194f86e8bef14ef383bfbc3b1f77028e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): platform/backend/src/routes/bots.ts:138 \u00B7 platform/backend/src/routes/bots.ts:209 \u00B7 platform/backend/src/routes/channel-accounts.ts:273 \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e0035ae99163bf5d0c98ecf3b1c8ca4d4fbb9964180cca62dfd25d3fdd6761"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7 locations): platform/backend/src/routes/bots.ts:159 \u00B7 platform/backend/src/routes/bots.ts:177 \u00B7 platform/backend/src/routes/gateway.ts:500 \u00B7 platform/backend/src/routes/gateway.ts:781 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f50c702768ec2152825d37506a0fa342719ab2dc46f102cf005c76f4d0a98a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): platform/backend/src/routes/channel-accounts.ts:75 \u00B7 platform/backend/src/routes/gateway.ts:396 \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":"platform/backend/src/routes/channel-accounts.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"034560d0b1c6d7c03ddb0daf25dedd30d13e1e5d9828bd6af4085cfe4468b7ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): platform/backend/src/routes/channel-accounts.ts:199 \u00B7 platform/backend/src/routes/gateway.ts:941 \u00B7 platform/backend/src/routes/gateway.ts:1446 \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":"platform/backend/src/routes/channel-accounts.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5ccdb211200be21e793e240d08bce496d04149d1eb8add8c476ca729e873f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): platform/backend/src/routes/gateway.ts:522 \u00B7 platform/backend/src/routes/gateway.ts:671 \u00B7 platform/backend/src/routes/gateway.ts:2281 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cdbd8ef28a308f6d4b930776d4719b8879759ccdd70514afebc3b023baeca1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): platform/backend/src/routes/gateway.ts:788 \u00B7 platform/backend/src/routes/gateway.ts:2295 \u00B7 platform/backend/src/routes/setups.ts:88 \u00B7 platform/backend/src/routes/universes.ts:574 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39444699daf06febdea3d9ec054474fd4fe91e78b03aa1903fa54b65c437c11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): platform/backend/src/routes/gateway.ts:911 \u00B7 platform/backend/src/routes/gateway.ts:1204 \u00B7 platform/backend/src/routes/gateway.ts:2392 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d284af67900aff043a83652c6fbf03f58a7f9b5b0a9c31ba76a2f063e97426"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): platform/backend/src/routes/universes.ts:193 \u00B7 platform/backend/src/routes/universes.ts:268 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"037e123dc3d2cb462ba4c6b0c051fdc1fbf82f5d3cfd83a786b7ee4e1550dcdb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): platform/backend/src/routes/universes.ts:277 \u00B7 platform/backend/src/routes/universes.ts:412 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbfc924b25e8a4c0ca61252eea3e634ba3858ffb9b0061597c9a973bca14667"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): platform/backend/src/routes/universes.ts:380 \u00B7 platform/backend/src/routes/universes.ts:404 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"d685dda2f9fbc214084125bb59ac600a48d47e81ba2f9677f201c868947aab1b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): platform/connectors/src/media/validation.ts:71 \u00B7 platform/connectors/src/media/validation.ts:85 \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":"platform/connectors/src/media/validation.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d14ac46f548d7c1762e528fa1ed7ba42b4d801a9d5f8370144c59e51ca9e9a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): platform/shared/src/workspace-transfers.ts:65 \u00B7 platform/web/src/lib/workspace-transfers.ts:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 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":"platform/shared/src/workspace-transfers.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec9af613ac98fa3c44afae3e473f9f90311f23c6b1c8061513bc153355357ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): platform/web/src/components/models/model-api-key.tsx:531 \u00B7 platform/web/src/pages/AdminUsersPage.tsx:369 \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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7313a7735fd156a81c1d002ca0c8c1aeb642eed6f7b64c7a0ba0f17455a119c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): platform/web/src/components/ui/alert-dialog.tsx:2 \u00B7 platform/web/src/components/ui/dialog.tsx:6 \u00B7 platform/web/src/components/ui/sheet.tsx:4 \u2014 the 3 copies are spread across 3 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":"platform/web/src/components/ui/alert-dialog.tsx"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1753bfbcb286ca8f21989883b4908103ec0760117dc32d7e97515579d75b28e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): platform/web/src/pages/BlobPage.tsx:20 \u00B7 platform/web/src/pages/BotsPage.tsx:30 \u2014 the two spans are one implementation copied and then locally edited \u2014 75 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":"platform/web/src/pages/BlobPage.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb1f17cc47f8453e11d779fe12515dbb9b6bcb185e73414bb137f07246c1e2e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): platform/web/src/pages/BotCreatePage.tsx:209 \u00B7 platform/web/src/pages/McpServersPage.tsx:74 \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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d555f288c6ade6ea8b286365d921021398a07fb9471f2414c39b06b82d0b05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): platform/web/src/pages/BotCreatePage.tsx:678 \u00B7 platform/web/src/pages/ProfilesPage.tsx:576 \u00B7 platform/web/src/pages/SessionsPage.tsx:1243 \u2014 the 3 copies are spread across 3 files, 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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d391a3967abf25c4da0e0b6bba54697f23530546476112134c1e655069d9ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): platform/web/src/pages/CredentialsPage.tsx:95 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:85 \u00B7 platform/web/src/pages/McpServersPage.tsx:58 \u00B7 platform/web/src/pages/MembersPage.tsx:55 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 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 5 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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a08e1a7b1656ce40165e3062cb846a78280695cde98672a235a5ee9fc3982d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12 locations): platform/backend/src/routes/bots.ts:102 \u00B7 platform/backend/src/routes/bots.ts:199 \u00B7 platform/backend/src/routes/channel-accounts.ts:234 \u00B7 platform/backend/src/routes/channel-accounts.ts:263 \u00B7 \u002B8 more site(s) not listed \u2014 the 12 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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf3cf147ee3da02632709eca863fbca3a601aeaf11c49ab2bbffe0f195e4a1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): platform/backend/src/routes/bots.ts:197 \u00B7 platform/backend/src/routes/channel-accounts.ts:232 \u00B7 platform/backend/src/routes/channel-accounts.ts:261 \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4574aa581a778528a9dc0c5a1eacda8e67e3885bb2f85fad825295a17867900"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): platform/backend/src/routes/bots.ts:264 \u00B7 platform/backend/src/routes/bots.ts:284 \u00B7 platform/backend/src/routes/gateway.ts:612 \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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9781f17fe22f2cd7549a2551b1b874c80e6cdcb3ace4b092cb0f4690e6aeeb0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/backend/src/routes/channel-accounts.ts:60 \u00B7 platform/backend/src/routes/universes.ts:196 \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":"platform/backend/src/routes/channel-accounts.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef437d5af0b031830176eb64cc8cbcaf4a79b4ceeb0905d1ca41829222d71d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:805 \u00B7 platform/backend/src/routes/gateway.ts:1890 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c62e1522a059ebec24e7820c41475da4336e96ce63b547857f695cbde832d6c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1072 \u00B7 platform/backend/src/routes/gateway.ts:1080 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"583be6164cbb5465e78f486983396c35a14845d357fb293b98bef7d7ea81b9a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): platform/backend/src/routes/gateway.ts:1193 \u00B7 platform/backend/src/routes/gateway.ts:1700 \u00B7 platform/backend/src/routes/gateway.ts:2384 \u00B7 platform/backend/src/routes/universes.ts:465 \u2014 the 4 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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d141c7cac3400a677bc5597ed48cf950d39ea71ce27752ac56434f46eb03d55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): platform/backend/src/routes/gateway.ts:1526 \u00B7 platform/backend/src/routes/gateway.ts:1832 \u00B7 platform/backend/src/routes/gateway.ts:1915 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf31010e83a839c455cfacd80cfd7594dfe0bf8e164e3007be59ce3a3b9ca98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1677 \u00B7 platform/backend/src/routes/gateway.ts:1705 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dc5f4925a6a8d5bbd6d67e6140186de2be0ef5c3f04d01c775762520bfdffb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1937 \u00B7 platform/backend/src/routes/universes.ts:313 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f22ffa83172e8bbc8a3a23e6dd62ab1044155a842b480a511720a5f9eac50f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:2040 \u00B7 platform/backend/src/routes/gateway.ts:2192 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fe18c0e2def862e329bbe1185572f8ce69fa91f769876fdf58b6454dc6f1fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): platform/backend/src/routes/universes.ts:298 \u00B7 platform/backend/src/routes/universes.ts:315 \u00B7 platform/backend/src/routes/universes.ts:336 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"0202374cef1ace1ee23ad0af0c6ece3f9afa04bf01106ac3b29490d43ffdca12"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/backend/src/routes/universes.ts:549 \u00B7 platform/backend/src/routes/universes.ts:582 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7c321573c7a606895480b0c589b5997a8777e02e5b533a780876b3cecbac53"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/web/src/components/workspace-transfers.tsx:317 \u00B7 platform/web/src/components/workspace-transfers.tsx:538 \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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"e053a83ad11f078e7216a5a8b638975c51703cfd0ba7d90d3ae5890c5d745fa5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/web/src/lib/sessions/transcript.ts:427 \u00B7 platform/web/src/lib/sessions/transcript.ts:435 \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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac334f24821a453cbf7750c63371956b5b6a5ad0b7cdc73b4689f252dda2448"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/web/src/pages/AdminUsersPage.tsx:148 \u00B7 platform/web/src/pages/AdminUsersPage.tsx:397 \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":"platform/web/src/pages/AdminUsersPage.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9209adf5850fea1f53cef0ce19f22a35ccb2af11c9e6d57d51cecbc3ca9e6229"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/web/src/pages/EnvironmentsPage.tsx:706 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:1732 \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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cd4c77dfb526444e84e74e220631a012c342a0b158ae570c67e584bdfd4eb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): platform/web/src/pages/SessionsPage.tsx:1469 \u00B7 platform/web/src/pages/SessionsPage.tsx:1550 \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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcd3caec8c9c329d3d4af81ea0b0d63e943435b849be173f577405e8f191cba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6 locations): platform/backend/src/routes/bots.ts:257 \u00B7 platform/backend/src/routes/bots.ts:278 \u00B7 platform/backend/src/routes/gateway.ts:474 \u00B7 platform/backend/src/routes/gateway.ts:594 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9670305496f2419186df421202bdef06cf397c56129aa4fc8e65967d2b3dc27e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7 locations): platform/backend/src/routes/gateway.ts:515 \u00B7 platform/backend/src/routes/gateway.ts:869 \u00B7 platform/backend/src/routes/gateway.ts:1056 \u00B7 platform/backend/src/routes/gateway.ts:1066 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e3142ffa8b1874f3f3020ffdeef05c9e43123eabb28d6486aacfc5b060d886"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:869 \u00B7 platform/backend/src/routes/gateway.ts:900 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"27aa2edcc65e96db9382ff375fa6b56c3a6f92614f9c7bd007dc82811561b56c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:1406 \u00B7 platform/backend/src/routes/gateway.ts:2054 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"2801670587226f2f77d22611531ce5f853ea421ce3c4a9b0fe3177a77559c938"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): platform/backend/src/routes/gateway.ts:219 \u00B7 platform/shared/src/index.ts:64 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c74649450377a1bd6093909ce3ebd063c6e0262347400c530e12a8fe42d6e89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/backend/src/routes/universes.ts:499 \u00B7 platform/backend/src/routes/universes.ts:521 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"2133b268340fdb8151dd43d9cf4ee875de8ee080e57aff3985b969a27508c170"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/db/src/schema/auth.ts:17 \u00B7 platform/db/src/schema/auth.ts:88 \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":"platform/db/src/schema/auth.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f5d6ed6ae65c6b341cabfc26bd1ecb7fda16e03382d72fde85af6049788791"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): platform/web/src/components/bot/send-event-dialog.tsx:32 \u00B7 platform/web/src/pages/AccountPage.tsx:90 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:1663 \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":"platform/web/src/components/bot/send-event-dialog.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"53891cc8c855cf21a780cc20cd70f5ac067d6b3dbb8dd4b9f1569285bf8cb735"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/web/src/components/bot/setup.tsx:441 \u00B7 platform/web/src/components/bot/setup.tsx:840 \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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fadbd5670d0cf54c95465ef7b42f9371b0c2eb5c2612301a441899259c1aacc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): platform/web/src/components/models/model-api-key.tsx:96 \u00B7 platform/web/src/pages/AdminUsersPage.tsx:150 \u00B7 platform/web/src/pages/AdminUsersPage.tsx:399 \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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b12d9c299ed31536cdf0592fafbe23d62a3a8eb7dfc1b030ba7da71e4bfff7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/web/src/components/session/delete-session-dialog.tsx:52 \u00B7 platform/web/src/components/session/delete-session-dialog.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":"platform/web/src/components/session/delete-session-dialog.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bbed87913b40003b6af51647cc16ee3d957a12f94c485bea06166a988d13700"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/web/src/components/session/session-settings-sheet.tsx:586 \u00B7 platform/web/src/lib/sessions/session-resources.ts:47 \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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b21d6882e997a5c239b3176690cf08764d693751ca98d4cbd9b13d2edabc756"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): platform/web/src/pages/AdminAuditPage.tsx:21 \u00B7 platform/web/src/pages/AdminUsersPage.tsx:42 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 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":"platform/web/src/pages/AdminAuditPage.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4047a851311a2ff7c8621638fab67dc32cbe40b99b16a0a9195953e9263f223"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/web/src/pages/AdminUniversesPage.tsx:387 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:1664 \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":"platform/web/src/pages/AdminUniversesPage.tsx"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"422da15984f4c9b32894f87f0361abbc022726b4a0090e0bb95a50a4cb2b1bf2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): platform/web/src/pages/BlobPage.tsx:20 \u00B7 platform/web/src/pages/ModelsPage.tsx:21 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 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":"platform/web/src/pages/BlobPage.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3976a1affcef9d86837de7b7b1ed64e4079dca8a7893cdf9244a9e6190fd70c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/web/src/pages/BotCreatePage.tsx:156 \u00B7 platform/web/src/pages/ProfilesPage.tsx:642 \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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"047d7f591eba9f4882e928af5cb03f12d18a4102e3a7b67cc55e6f251a81912f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/web/src/pages/CredentialsPage.tsx:470 \u00B7 platform/web/src/pages/WorkspacesPage.tsx:609 \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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12357b6a5847fecc0e65bc11704230f1fa4c4d41edff1d2484e524351c8c8e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/web/src/pages/EnvironmentsPage.tsx:1608 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:1734 \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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfaf3376078eb54a08e719b65a97888ff4b68bf7c37929ef7cb5145ba73db48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): platform/web/src/pages/ProfilesPage.tsx:641 \u00B7 platform/web/src/pages/WorkspacesPage.tsx:608 \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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"476dc02f179d0747db499486b1eaab223f32417042d4606577ff8373285292ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): platform/backend/src/routes/gateway.ts:179 \u00B7 platform/backend/src/routes/gateway.ts:297 \u00B7 platform/backend/src/routes/gateway.ts:319 \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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4d80078929faf0c4362aa26dc1277e272d06af7000669a288bd4198eb350f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): platform/backend/src/routes/universes.ts:148 \u00B7 platform/backend/src/routes/universes.ts:155 \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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"834859b1fd204c13ba73c25f5f465cd7f18bde007e41510e7e911c09a00143cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): platform/db/src/schema/auth.ts:41 \u00B7 platform/db/src/schema/auth.ts:73 \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":"platform/db/src/schema/auth.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeac19998693dd1b14befc07b27c2dde12a0c7028b87b8ebc2d08f3222c5af3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): platform/shared/src/messages.ts:65 \u00B7 platform/shared/src/transcriptions.ts:5 \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":"platform/shared/src/messages.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5f20f52137ca120b06b3606ff00b40a2c4a07508fd2b05967e617cbcf88c97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): platform/shared/src/messages.ts:96 \u00B7 platform/shared/src/messages.ts:106 \u2014 the two spans are one implementation copied and then locally edited \u2014 72 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":"platform/shared/src/messages.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"946af5fb2f54e11b8b83e3b65e50cdee7e2a6ffb66bec242e4388b9da01e6ac1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9 locations): platform/web/src/components/bot/send-event-dialog.tsx:99 \u00B7 platform/web/src/pages/AdminEnvironmentProvidersPage.tsx:494 \u00B7 platform/web/src/pages/AdminEnvironmentProvidersPage.tsx:605 \u00B7 platform/web/src/pages/AdminUniversesPage.tsx:452 \u00B7 \u002B5 more site(s) not listed \u2014 the 9 copies are spread across 7 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":"platform/web/src/components/bot/send-event-dialog.tsx"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e569e74217eec0685be41e0cd2b34ba20e1e513e47e04666dc2f99a67a787c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): platform/web/src/components/bot/status.tsx:129 \u00B7 platform/web/src/lib/resource-status.ts:79 \u00B7 platform/web/src/pages/EnvironmentsPage.tsx:1645 \u00B7 platform/web/src/pages/SessionsPage.tsx:2695 \u2014 the 4 copies are spread across 4 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":"platform/web/src/components/bot/status.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dfe2af114c17cc2d46d5bef30e0adb01a59f0b1bf99c1be8f4e146bb81a739"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): platform/web/src/components/session/session-settings-sheet.tsx:132 \u00B7 platform/web/src/pages/ProfilesPage.tsx:214 \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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"05081e30747418e1756abb483545d8e1e832a5ed4b219afea778cfcb21abbb27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): platform/web/src/lib/sessions/transcript.ts:363 \u00B7 platform/web/src/lib/sessions/transcript.ts:373 \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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5bd1428f5fb0f2db3a73a0d825b01695dfd4adbdd11682f4cb98d4e8e40217"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/release/create-manifest.mjs:16 \u00B7 scripts/release/verify-manifest.mjs:58 \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/release/create-manifest.mjs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a031fe59f1a6e12a2c236f3b226e7a5cd0081228f9df9447eb11ea3180231d6a"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: platform/backend/scripts/check-sso.ts:6 imports platform/backend/test/identity-fixture.ts, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/scripts/check-sso.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3307436dad741f5884a39f38dea8c84750177a5841f93352d1b8f49a8678a14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionDetail (cyclomatic 111, cognitive 95): SessionDetail has cyclomatic complexity 111 and cognitive complexity 95; 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"07757b2700f8ff5d1840d8b0e541acd6efa3ca4247b16512a6f20e641d9393be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 82, cognitive 118): (anonymous) has cyclomatic complexity 82 and cognitive complexity 118; 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":"platform/backend/src/auth.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae8941038aaefc4cda86f60b35ce36cd3fc306e38455ccc70ddb2a8ab57b028"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ServerDialog (cyclomatic 72, cognitive 63): ServerDialog has cyclomatic complexity 72 and cognitive complexity 63; 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"870ec97bd24f9337e7461505e9bb0b4eb222cbaae879072174600a78cba8f05a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function configError (cyclomatic 68, cognitive 93): configError has cyclomatic complexity 68 and cognitive complexity 93; 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"04105afc1765d4c13480dbdaa9339b7797ff6a5426ad6ceb6452b9d89e4f48e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionComposer (cyclomatic 57, cognitive 50): SessionComposer has cyclomatic complexity 57 and cognitive complexity 50; 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":"platform/web/src/components/session/composer.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"139586ba17960e70a8d29744fd0d897ef1ae2ccad368aa617615d12da326a9f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkspaceTransfers (cyclomatic 57, cognitive 44): WorkspaceTransfers has cyclomatic complexity 57 and cognitive complexity 44; 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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da07330c795732ea7dca17ba638a6b8167e088f04aadba155937ba32102be12"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyEvents (cyclomatic 56, cognitive 58): applyEvents has cyclomatic complexity 56 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ae332e638d64fb85682b1b0cce121a91b27c20fd110ff50464c53b8f329941"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Wizard (cyclomatic 56, cognitive 51): Wizard has cyclomatic complexity 56 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 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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cb6c36424edfac16e834d279d3d3a2f9b77cfab9cdfab6b1a3c0e89d44f6da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSessionConfig (cyclomatic 52, cognitive 119): normalizeSessionConfig has cyclomatic complexity 52 and cognitive complexity 119; 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6228b7d0b7574dc415dedd632c0a39a6542ed2504ef018af86f728fefd04bfcb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createPlan (cyclomatic 52, cognitive 53): createPlan has cyclomatic complexity 52 and cognitive complexity 53; 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/dev/stack.mjs"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dadc26e3fa55c2563e0395fef1740d87a3d5987da7b6c4cf0d078e7f0d79f52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LiveSessionSetup (cyclomatic 49, cognitive 38): LiveSessionSetup has cyclomatic complexity 49 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 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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e4a8e55b2bbe7d227f7181fd15163feb9106d5ce13975bf0799ba2081712dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function NewSessionDialog (cyclomatic 47, cognitive 37): NewSessionDialog has cyclomatic complexity 47 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 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3277ba8b33c1efc657d95697f90538fbd41513dc281a1da04a12aa542ade3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyNonToolCallItem (cyclomatic 45, cognitive 72): applyNonToolCallItem has cyclomatic complexity 45 and cognitive complexity 72; 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"f016290aa909f524011b544ffd36e1e504f652b10e85808162709d43e9fc5545"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OtherBotsSection (cyclomatic 41, cognitive 36): OtherBotsSection has cyclomatic complexity 41 and cognitive complexity 36; 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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2cd8d41858a2b24a4fc23482dee9d738038636b644184ac394f7b617fc1292"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionList (cyclomatic 40, cognitive 38): SessionList has cyclomatic complexity 40 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 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cd00be4957d8068e002ca020f73ba8fe567cf3c4d04751bd185b641b87e5d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SessionResourceChips (cyclomatic 38, cognitive 37): SessionResourceChips has cyclomatic complexity 38 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 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":"platform/web/src/components/session/session-resources.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e605841c28e92199a539e4b0670b0ddc41679ff2c4ec76e2f4cd8d3647926c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function EventRow (cyclomatic 36, cognitive 30): EventRow has cyclomatic complexity 36 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 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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad80d6708bc0b988a86247fb628a019911bd7b3917991d993c005847cf8ce790"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyItems (cyclomatic 35, cognitive 56): applyItems has cyclomatic complexity 35 and cognitive complexity 56; 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a3326149b7979fa9750d0766e0196eceb1f306f7893e94d170a019ad4665f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ToolPicker (cyclomatic 34, cognitive 31): ToolPicker has cyclomatic complexity 34 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 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":"platform/web/src/components/mcp/tool-picker.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"459f0d5ee1273fc94d2a2e00ff965aaaf4316722e96a4151a3e3ab646bafcb8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FileDetail (cyclomatic 34, cognitive 30): FileDetail has cyclomatic complexity 34 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 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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd16c0d5e9f9633bfa461fe92b18ed8f6e9ce2d3f27e5b52d639588deb4c9210"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/SessionsPage.tsx: 2662 lines of code: platform/web/src/pages/SessionsPage.tsx has 2662 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":"platform/web/src/pages/SessionsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"696c4d49c5532322484af23c7a5b3781195a3ee4a97610204ef5b3aef9208f3f"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/bot/triggers.tsx: 2563 lines of code: platform/web/src/components/bot/triggers.tsx has 2563 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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db076d3994de510515c297aac7d7857d0a41f1ac01653f301ba545eb86341fa9"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/backend/src/routes/gateway.ts: 2410 lines of code: platform/backend/src/routes/gateway.ts has 2410 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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbb29dbf16af48b1c4efb8852ba455616e606b8844ad1adf616faa596804f90"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/session/session-config-editor.tsx: 2168 lines of code: platform/web/src/components/session/session-config-editor.tsx has 2168 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":"platform/web/src/components/session/session-config-editor.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"203dac73be2154a91d6020587203d067e9e22428c1cb204d51bc3d8f22c2c460"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/EnvironmentsPage.tsx: 1706 lines of code: platform/web/src/pages/EnvironmentsPage.tsx has 1706 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":"platform/web/src/pages/EnvironmentsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b523cbe99348e44ca8045644311f0f69a4f5a717fc0fda4f9568dacff9da923a"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/workspace-transfers.tsx: 1299 lines of code: platform/web/src/components/workspace-transfers.tsx has 1299 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":"platform/web/src/components/workspace-transfers.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f38986241789cc817b7c29df8b09768830adb4fa299b57e585176876fdf01a0"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/McpServersPage.tsx: 1210 lines of code: platform/web/src/pages/McpServersPage.tsx has 1210 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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"880975f0b6f2f9bc6a4b9930c9094704a402ab949c19e5666636dabc0bf625be"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/lib/sessions/transcript.ts: 1177 lines of code: platform/web/src/lib/sessions/transcript.ts has 1177 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":"platform/web/src/lib/sessions/transcript.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2a53be1d59136a03350795a7b20f1294323655617d8ff26ffd148fefbdd2e1"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/bot/setup.tsx: 1058 lines of code: platform/web/src/components/bot/setup.tsx has 1058 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":"platform/web/src/components/bot/setup.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"753b2535fbb433b5e726c0333b3c2f14d784c18b9061c3438d30610b461a523d"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/WorkspacesPage.tsx: 859 lines of code: platform/web/src/pages/WorkspacesPage.tsx has 859 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":"platform/web/src/pages/WorkspacesPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9d7ee62317f041093d554427c9f8479d5f7e8c86fb4383b8da23d30b4c3a61"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/BotCreatePage.tsx: 830 lines of code: platform/web/src/pages/BotCreatePage.tsx has 830 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":"platform/web/src/pages/BotCreatePage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f4cf5a4a1e306ba98bef1c26d856048f550578204248b06230f627fc09f0fb"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/models/model-api-key.tsx: 816 lines of code: platform/web/src/components/models/model-api-key.tsx has 816 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":"platform/web/src/components/models/model-api-key.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43006fb393b468ded9e31fc53b0bbb0c0e53b3330209defab3a41553731cb950"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/ProfilesPage.tsx: 785 lines of code: platform/web/src/pages/ProfilesPage.tsx has 785 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":"platform/web/src/pages/ProfilesPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"006dd5ccfe8703de0f917d0e172d325c5afa159ea4823ef9fa1a9f0af705ec7c"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/CredentialsPage.tsx: 697 lines of code: platform/web/src/pages/CredentialsPage.tsx has 697 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":"platform/web/src/pages/CredentialsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af9f0df2a5cf2f7214ea49d38f261f830371e4c23cfa320fdef540d1838be4a"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/api.ts: 673 lines of code: platform/web/src/api.ts has 673 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":"platform/web/src/api.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4904d77ec8ac6d528cf65cd905b0e47e81ae7ed4a3f6e20c6092e112671ca5ca"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/ui/sidebar.tsx: 673 lines of code: platform/web/src/components/ui/sidebar.tsx has 673 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":"platform/web/src/components/ui/sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0fa658aafd4c76d59823987a720b7357cddb1a69beba25c63db00c17a16d6e"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/backend/src/routes/universes.ts: 598 lines of code: platform/backend/src/routes/universes.ts has 598 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":"platform/backend/src/routes/universes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57caa898089cb669d8bb1d18943fd537a4edc0c07f478160bed7bffd0dcd1f04"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx: 598 lines of code: platform/web/src/pages/AdminEnvironmentProvidersPage.tsx has 598 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":"platform/web/src/pages/AdminEnvironmentProvidersPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c127d2182781c6e118d502b1d82fd1d21511d9d450d0f2be0f63fa1f0e7ee6e9"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/session/session-settings-sheet.tsx: 570 lines of code: platform/web/src/components/session/session-settings-sheet.tsx has 570 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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18173ced4e0c32d4a72ed19a5593d32fd16fe511683b739cd1e27cedf15821f2"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/ChannelsPage.tsx: 532 lines of code: platform/web/src/pages/ChannelsPage.tsx has 532 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":"platform/web/src/pages/ChannelsPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56235c7884c4f5fa343b2d50200b552e16d101002a6ad34687101a03eeab3b77"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/session/tool-trace.tsx: 513 lines of code: platform/web/src/components/session/tool-trace.tsx has 513 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":"platform/web/src/components/session/tool-trace.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc9e1cae1aceb16f0b627ede07bad6ac5c91e34787ccbd2efe409a205b5acd4"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/backend/src/routes/setups.ts: 486 lines of code: platform/backend/src/routes/setups.ts has 486 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":"platform/backend/src/routes/setups.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5358d091f5d091921bb3adb5f53c810af6e0faf10e137acaa6037b3a5b1a880"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/AdminUsersPage.tsx: 484 lines of code: platform/web/src/pages/AdminUsersPage.tsx has 484 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":"platform/web/src/pages/AdminUsersPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a8bd1183e4cbd66f9c72f584865daadb35f4dafff6f0e8d8debdf740dc69d4"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/bot/detail.tsx: 462 lines of code: platform/web/src/components/bot/detail.tsx has 462 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":"platform/web/src/components/bot/detail.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead2ba63cf06c054d5d61e1756ced655b867f93fb4b05fcbe1f59ecc5c11aaea"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/bot/activity.tsx: 460 lines of code: platform/web/src/components/bot/activity.tsx has 460 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":"platform/web/src/components/bot/activity.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53de58fb8a10a755b48f4bce14d14c1f1b6200fa14cf8dfc57e0422b140655c4"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/pages/AdminUniversesPage.tsx: 458 lines of code: platform/web/src/pages/AdminUniversesPage.tsx has 458 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":"platform/web/src/pages/AdminUniversesPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f3a89f3ff7ff124fcea520882e5e0c41ce12a204890cd30c8d122bb10b2ba9"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/session/composer.tsx: 442 lines of code: platform/web/src/components/session/composer.tsx has 442 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":"platform/web/src/components/session/composer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d26f62b493ad736942575109f23573113625bc752c204c6c627260b3b3f4f1e"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/web/src/components/session/transcript-view.tsx: 437 lines of code: platform/web/src/components/session/transcript-view.tsx has 437 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":"platform/web/src/components/session/transcript-view.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"affa4a4bcb2f736f11d4c0648b63c923ce4eb20546f329f288f959aa27ae11c8"}},{"ruleId":"R3","level":"warning","message":{"text":"platform/shared/src/workspace-transfers.ts: 413 lines of code: platform/shared/src/workspace-transfers.ts has 413 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":"platform/shared/src/workspace-transfers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1322888dcea784b8e9cb80a6e436810c38a162a4594c0897392a58948b3f6f9f"}},{"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":"platform/web/scripts/screendiff.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c3a5547139cc43dadfe7f24ed379e9b8d531ba53219543632e27a4dc7c1c7e"}},{"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":"platform/cli/src/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"410d35087787ed1411052c19eedb59befc945ec95b3ac411b3974d7452439e97"}},{"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":"platform/configurator-mcp/scripts/generate-tools.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3825251bdd10d86a1297afd35a66f776999bd81efb655f8fe8f17f6551240a51"}},{"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":"platform/db/scripts/check-migrations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"022cb741b0b6cca17a9cf7390e5e87dc3a083b8787636341bb3b9dbea805c8f8"}},{"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":"crates/codemode/src/prelude.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"875353b307f61fcde2f29529516c5d781ea6823024300c0dc612e5e617db7742"}},{"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":"platform/scripts/generate-config-reference.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d1839564aebac9c6b78d7155c347488ac49a5ecec1f1426b4230b832c5b8cf"}},{"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":"platform/backend/scripts/check-sso.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83360b99d9039a709e67d6917a57ab7e4d0a594e1c2df7a3eb53dc272ebdcb9"}},{"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":"scripts/release/create-sbom.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c2bf9dc747b35c68091aa8cb6efc988dd16cd10e57dd4d1e26f020337d8d86"}},{"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":"platform/connectors/src/host/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b57ffaaac6803cc7164c1ee0471b5fc7888bec6fc06b5d2d4f7fbc2afeb902b"}},{"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":"platform/cli/src/client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd660a5660facebf0b09da0a5d2c9876af2836b438b412ac9276892d1562346d"}},{"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":"platform/cli/src/prompt.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef511dd7d45c7245ebb954d72c857bb9bbbdb64cc6ef02354ff8806ed3b635c"}},{"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":"platform/scripts/check-product-identity.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd67d465ae3c39dd4e4d47ec56f4752d89c21b972ea3b41988775585398cd9f6"}},{"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":"platform/cli/src/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce001a4a5d76747549d3a5dc4ce9566b8b14efdc9e3d8106645662a51db57f1"}},{"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":"platform/backend/src/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9821e255ec01e3584a3452e7a488bfcfb4466f93f4893c18a3aa5ddc1c6cd4"}},{"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":"scripts/release/publish-archives.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b386aaa25d5d6d78d3162d115cf41e493f0adc2081945a55f160ee3bea911ceb"}},{"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":"platform/connectors/src/host/temporal-metrics.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de50e3c981a065711785d8c81eacabab5be12f689eaaeaafe22f372c0fd5af9"}},{"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":"platform/db/scripts/auth-codegen.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d206377a0c672298e9afb38a4262908085ba27a13a2052dba829fe237a8f517"}},{"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":"platform/db/scripts/patch-auth-schema.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a020965d267d27740d909746ae795dcc4ab7c958abfd450f56cbf2757092b9bd"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~20 LoC): no import path from any entry point (56 application, 19 tooling, 182 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":"platform/db/scripts/auth-codegen.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"361edb7afddbaa97faf5745f2bc84997d7e347841c1f986724ad2982f432c588"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~18 LoC): no import path from any entry point (56 application, 19 tooling, 182 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":"platform/db/scripts/patch-auth-schema.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d046f7c47a3710b2af934182ded379418b3bb124f05e506ee522ebe97e55072"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~6 LoC): no import path from any entry point (56 application, 19 tooling, 182 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":"platform/connectors/src/providers/whatsapp/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56e87a7fe66b06b98eb638b685fceaa397e698e6d6d517cfad9b9a6b89980b4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~5 LoC): no import path from any entry point (56 application, 19 tooling, 182 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":"platform/connectors/src/providers/telegram/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a4d239091d01db26bb4713ce34eb81e67abdbe8bf3be4ddc2d2cd5972ca147"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027MAX_CHANNEL_MEDIA_PER_MESSAGE\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/connectors/src/media/inbound.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6395b91880d798e792780ef28804db0fc117dbbffad26afac48859565e013b13"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027idIsRedundant\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/bot/identity.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"906c9b9035f457a11feeec68db8f93fa0cf9632023950ce20340c3b80a7bec0b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027BotStatusBadge\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/bot/status.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2a03d847305a4ef550318741e6d795b3b7e7cff8cc346799755f09729acfc1"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027fflate\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/src/routes/workspace-transfers.test.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"24da6c0e2b2bad6ea3f65d915c87bdad569616e3687c3616a08cf0c470d0c486"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027screendiff-js\u0027: Declared in platform/web/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0a4b4a03a1f664d3230454313007edd50e380c7a64d32beea1b949f3b7c2abac"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): platform/backend/src/routes/gateway.ts \u2192 platform/backend/src/routes/universes.ts \u2192 platform/backend/src/routes/gateway.ts"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acedb4509cd0b9e71d05537b871a713761a352966a727fd4476f48e2e42135a"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Rust server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: \u0060axum::serve(\u0060 (crates/temporal-runtime/src/main.rs:728)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isSafeInteger(parsed) || parsed \u003C= 0\u0060 appears character-identically in 2 files \u2014 platform/connectors/src/providers/telegram/delivery.ts, platform/connectors/src/providers/telegram/presence.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":"platform/connectors/src/providers/telegram/delivery.ts"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"269b6fefed8299fec16b98b1ee37fd51dd34b038c2cf773acef81f07b886afe2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!universe || !permissions.can(\u0022configureResource\u0022)\u0060 appears character-identically in 3 files \u2014 platform/web/src/pages/ChannelsPage.tsx, platform/web/src/pages/CredentialsPage.tsx, platform/web/src/pages/SetupsPage.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":"platform/web/src/pages/ChannelsPage.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"578f8be0df7a308e46f7936da44a0a022a13556fdff72f4aac878d5fcb0d346f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!universe || !permissions.can(\u0022manageAccess\u0022)\u0060 appears character-identically in 2 files \u2014 platform/web/src/pages/ApiKeysPage.tsx, platform/web/src/pages/GeneralSettingsPage.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":"platform/web/src/pages/ApiKeysPage.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"538a530733cd4d57b9ef7963eebb58b7caffd08013eb1f191c0fcde0208550fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number(a.revokedAtMs != null) - Number(b.revokedAtMs != null) || b.createdAtMs - a.createdAtMs\u0060 appears character-identically in 2 files \u2014 platform/web/src/pages/AdminApiKeysPage.tsx, platform/web/src/pages/ApiKeysPage.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":"platform/web/src/pages/AdminApiKeysPage.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4969f0fdc70016c88e218ced176c4d76ea50ef5d56f1dab91dda80f4e29eba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry.kind === \u0022message\u0022 \u0026\u0026 entry.role === \u0022user\u0022 \u0026\u0026 !entry.steering\u0060 appears character-identically in 2 files \u2014 platform/web/src/lib/sessions/run-sections.ts, platform/web/src/pages/SessionsPage.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":"platform/web/src/lib/sessions/run-sections.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7cbe749976cdfd660088311ef7824492c79ac3c1e50328920dbd0669bd7c7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error instanceof LightspeedRpcError \u0026\u0026 error.kind === \u0022notFound\u0022\u0060 appears character-identically in 2 files \u2014 platform/backend/src/routes/gateway.ts, platform/backend/src/routes/setups.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":"platform/backend/src/routes/gateway.ts"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"490e38d200f8b1ab691d07ca0f2a04c29f52a29da89fa9b236c3fe5b5ae08b94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status === \u0022needsReauth\u0022 || status === \u0022failed\u0022\u0060 appears character-identically in 2 files \u2014 platform/web/src/components/credentials/github-app.tsx, platform/web/src/pages/CredentialsPage.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":"platform/web/src/components/credentials/github-app.tsx"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cf8686137d778137db42b592b680a2be85232604c0990f59a7458cb9e9fee5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof body === \u0022object\u0022 \u0026\u0026 body !== null\u0060 appears character-identically in 2 files \u2014 platform/backend/src/routes/bots.ts, platform/backend/src/routes/channel-accounts.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":"platform/backend/src/routes/bots.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ff17eceedfc0b7c273d06efcaec5cc3ce20f983c60fbe368467e1d5fc7ac64"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof entry.description !== \u0022string\u0022 || entry.description.trim().length === 0\u0060 appears character-identically in 2 files \u2014 clients/typescript/scripts/generate.mjs, platform/configurator-mcp/scripts/generate-tools.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":"clients/typescript/scripts/generate.mjs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"45262d0e50c115baf77081b592b8631ba7adc3be02cb7bcaf5fa0f4f1679efcd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof entry.summary !== \u0022string\u0022 || entry.summary.trim().length === 0\u0060 appears character-identically in 2 files \u2014 clients/typescript/scripts/generate.mjs, platform/configurator-mcp/scripts/generate-tools.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":"clients/typescript/scripts/generate.mjs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a593e5baeeb3db0105942267436107088ad746ee942462787d57c41ecc310962"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0022object\u0022 || value === null || Array.isArray(value)\u0060 appears character-identically in 2 files \u2014 clients/typescript/src/workflow.ts, platform/connectors/src/media/inbound.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":"clients/typescript/src/workflow.ts"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f111d208a445e697051afcd32e877ff9f7338696da9723b617a3e60425535e2e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0022string\u0022 || value.length === 0\u0060 appears character-identically in 2 files \u2014 clients/typescript/src/workflow.ts, platform/connectors/src/media/inbound.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":"clients/typescript/src/workflow.ts"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58935b669bfaecdd574a38f08a36cbc44af866974627414edc0b6890acafcc1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022object\u0022 \u0026\u0026 value !== null \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 2 files \u2014 clients/typescript/src/client.ts, platform/backend/src/subscriptions.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":"clients/typescript/src/client.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2352b1599da3d84a7d57c8fac0c2c6ee487bb7ae2d61f752a366cd70d554b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 value.trim()\u0060 appears character-identically in 2 files \u2014 platform/backend/src/subscriptions.ts, platform/web/src/lib/sessions/transcript.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":"platform/backend/src/subscriptions.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a4a6c4a7b0e2cfc6068bb69adc2ce15bf2ab8f35df775be6d5f844ceb215b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 3 files \u2014 platform/web/src/components/session/session-settings-sheet.tsx, platform/web/src/lib/sessions/resource-features.ts, platform/web/src/lib/sessions/session-resources.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":"platform/web/src/components/session/session-settings-sheet.tsx"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d40e0b35b10c9cab2dbd883eeb1667cae4707cca72a9733eb3d9f7fab36f5fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!url.username().is_empty() || url.password().is_some()\u0060 appears character-identically in 4 files \u2014 crates/auth/src/providers.rs, crates/environment-daemon/src/upgrade.rs, crates/llm-clients/src/transport/http.rs, crates/tools/src/web/guard.rs. 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":"crates/auth/src/providers.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb6fa0581a1dae74a9a1cf8bdf4d6a0f614954a0c122111d2e1bc4563edd27f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060active_run.active_turn_id.is_some() || active_run.active_tool_batch_id.is_some()\u0060 appears character-identically in 2 files \u2014 crates/harness/src/core/components/context.rs, crates/harness/src/core/components/run.rs. 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":"crates/harness/src/core/components/context.rs"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecbc711f05606c5fd24a6bd391eb5b313145a37fb7a4cca39acdb1dae5996a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060chunk.len() \u003E 256 * 1024 || bytes.len() as u64 \u002B chunk.len() as u64 \u003E size\u0060 appears character-identically in 2 files \u2014 crates/harness/src/storage/blobs.rs, crates/store-pg/src/blob.rs. 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":"crates/harness/src/storage/blobs.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2377d306c4524731e19edcd84d9864df9afe529b9e23ca2605088197a09d20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060chunk.len() \u003E 256 * 1024 || length \u003E size\u0060 appears character-identically in 2 files \u2014 crates/store-fs/src/blob.rs, crates/store-pg/src/object.rs. 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":"crates/store-fs/src/blob.rs"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1965ad7f3ab9845653c5f3b7b1704b49851d213a30361caedfd91e65fb9b9ec1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ctx.workflow_id() != start.execution_id || start.universe_id != start.invocation.session_universe_id\u0060 appears character-identically in 2 files \u2014 crates/temporal-workflow/src/workflows/environment_job.rs, crates/temporal-workflow/src/workflows/subagent_execution.rs. 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":"crates/temporal-workflow/src/workflows/environment_job.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c326ad391243f8cf63142e47f79b066c06b4d97797806a3daf1e836386510c5f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current_width \u003E 0 \u0026\u0026 current_width.saturating_add(ch_width) \u003E width\u0060 appears character-identically in 2 files \u2014 crates/cli/src/chat/tui/cell.rs, crates/cli/src/chat/tui/markdown.rs. 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":"crates/cli/src/chat/tui/cell.rs"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd4101aa0ce404665f1986849553662d48d68d4e159a7b6f18a64f90737faf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.kind() == io::ErrorKind::NotFound \u0026\u0026 options.force\u0060 appears character-identically in 2 files \u2014 crates/tools/src/fs/local.rs, crates/tools/src/fs/scoped_local.rs. 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":"crates/tools/src/fs/local.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"229961ee7e9e0f5e8ee9822e88d5652133aa04943f63611f18b65a8e55acf743"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expected_revision \u0026\u0026 current.revision != expected\u0060 appears character-identically in 5 files \u2014 crates/mcp/src/lib.rs, crates/store-pg/src/bots.rs, crates/store-pg/src/channels.rs, crates/store-pg/src/mcp.rs. 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":"crates/mcp/src/lib.rs"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc587390000f9e4b50fcb8e15d2c8e57253da679c05f5dbeb50eb3fa8856c6a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expected_revision \u0026\u0026 expected != existing.revision\u0060 appears character-identically in 2 files \u2014 crates/bots/src/memory.rs, crates/channels/src/memory.rs. 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":"crates/bots/src/memory.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"7148b5b7d61c58932cfc752980b132e50c0293fed01bcd032a188a22c5bb82dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first == \u0027_\u0027 || first.is_ascii_alphabetic()\u0060 appears character-identically in 2 files \u2014 crates/environments/src/lib.rs, crates/temporal-runtime/src/environments/credentials.rs. 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":"crates/environments/src/lib.rs"},"region":{"startLine":2488}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7d0e93f6255d5d4d652065a038bc47f434408932e2cc86691392c8b948a9b8"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060directoryEntries\u0060 is exported, takes a document from its caller (line 46) and hands it to \u0060walk\u0060, which calls itself at line 56 (\u0060walk\u0060) with a piece of \u0060directory\u0060 \u2014 and nowhere in \u0060walk\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. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060walk\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/lib/workspace-transfers.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c17faf011ba573840c669c0cb3c6f0f59ddd7498dcee50596a4a8da888bfb0"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 3/8 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: queryFn: \u0060queryFn\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/auth.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3cbec7f88e45106ddc1133c77c54681c7c58146ad5a6fab4759f68d4204f64"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: sendSampleWebhook: \u0060sendSampleWebhook\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21d55d14dbf465f97e3c230fcda7f98ae24e67783ac2fbee7fd66d0a1ad0c75"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: api: \u0060api\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/cli/src/client.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2db51b12e1cc440584c74f8f0a76fc9f967defff0e2c9bc04cb87e1f54275ff"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: providerRequest: \u0060providerRequest\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/scripts/check-sso.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c69f621313f9f2da326560563823ca3022161cee6ff3406a36ff3a650ecfeff"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: admin: \u0060admin\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/backend/scripts/check-sso.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcffff197479165be69e92e9a34e0493374769e697e5be93a693f06baec10d3"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060classAttr\u0060 is text this program did not author, and it is written into an unquoted attribute through markup this function returns 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. HTML text encoding does not help in an unquoted attribute \u2014 whitespace ends it; quote the attribute and encode the value."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/connectors/src/presentation/telegram.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d094442b292e1ae4576c228cade582e943db690ac303da97df8b30b11d4ccc61"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeHtml(token.href)\u0060 is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns 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. HTML encoding does not help here \u2014 a \u0060javascript:\u0060 URL contains nothing it changes; allow only http(s) or a relative path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/connectors/src/presentation/telegram.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8ca45494743e3f25ceee8f8acc11e55fa5b48a2f6cef9a3cebc1d82746a012"}},{"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":"platform/web/src/pages/McpServersPage.tsx"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb93593d68e27c891021071a574152822f3160f909f82c26c4aa4fba5372950e"}},{"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":"platform/web/src/lib/audio-capture.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a00bdc24331a8850543c1373fd27ca2ebd4447dc357b5d21958b9f6acd764f"}},{"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":"platform/web/src/lib/audio-capture.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ae688db5f53d4cd4f4f4dd57998612ae23ca8ff2e3bc2bd2277a99c436001a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"platform/web/src/lib/audio-capture.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ef70ad97a45126966db38b75bd96b44b0da35848d37c328f0c263b4f3fda3a"}},{"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":"platform/web/src/lib/audio-capture.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bee51be1d543ed8ff44bb92746633f1dceb525b16d1162dceadbee718ba460"}},{"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":"platform/web/src/lib/automatic-sign-in.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b523d280b0793ce09973a0ad0fc7999623bf3812f66e3b4e8f380473880fa2d4"}},{"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":"platform/web/src/lib/composer-attachments.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2d1bacaced5f50cf89ef0f2498c399d0ea0e92f933f3b5e24f728803617f47"}},{"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":"platform/web/src/lib/composer-model.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d40cc1ecbdf87fff458561240df9ac41c3af5eb4d65f98ac6c5ca832d5f0f17"}},{"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":"platform/web/src/lib/dictation.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6476a15c4cffb612c0c74a81e8ae84bd446f34a6319b66b3ccdde88ae379eeca"}},{"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":"platform/web/src/lib/user-preferences.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c90bf2500a4b261bbfc6150520bda5ce069b27fbcb7d29ce89dd4fe769e3046"}},{"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":"platform/web/src/lib/sessions/draft.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77b5f9163ff41332032ab025328029f5958f4f3159ad43d355b229365bbf952"}},{"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":"platform/web/src/lib/sessions/list-preferences.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea490810499a3b9708e44fb15c7d7e874128e5eeb8bc0ae832c0b3a6bf130f1"}},{"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":"platform/web/src/lib/sessions/list-preferences.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a4e9b0afe7c0bde72f8fca0a36a8da469039502d679b4b6556d1e1636fc966"}},{"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":"platform/web/scripts/screendiff.mjs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7bd9111f11c96f62df73831176645407016af954a73c22004c87a377224621"}},{"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":"platform/connectors/src/providers/typing.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"380c1f0296e439ab4b1d582150a1a9fd5c6271e8ec9f304585af94ac8f0b84d6"}},{"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":"platform/backend/src/static.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacdf1b79e0f18c4d3fcf2d1b808666252e54d0ab452298bbf6533cbb6fa4ebe"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 9/10 of this repository\u0027s type-checking configuration(s) turn on strict null checking (\u0060\u0022strict\u0022: true\u0060, or \u0060\u0022strictNullChecks\u0022: true\u0060). A configuration that states neither is counted as OFF, because off is tsc\u0027s own default; a solution-style one whose \u0060\u0022files\u0022\u0060 is empty and whose \u0060\u0022references\u0022\u0060 point at other projects is in neither number, because it checks no source itself. Where it is off, \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060: passing a value that is null compiles silently and throws on the first property access."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) reduce the strict null checking score: ~1.9 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 107 assertion(s) across the 55418 source line(s) of the 274 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: platform/backend/scripts/check-sso.ts (7), platform/web/src/pages/SessionsPage.tsx (7), platform/web/src/pages/WorkspacesPage.tsx (7). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"edb251d0f8dd1deb75ff6fa12d145c3d5c948a70b0aaf8da052107c857335979"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060all\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. 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 arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/filesystem/transfer/journal.rs"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd0ddf05d06d60df6a89470ea28445ddd583024135c1149325cca0414e1383a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060group_members\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. 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 arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/process_group.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"199ef456c9d15b523f5c1522fcd01d307efe4de6558aa686dce7f2e1dac8ff2e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060group_members\u0060 turns every \u0060Err\u0060 into \u0060Vec::new()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. 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 arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/environment-daemon/src/process_group.rs"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb3761827a5c94b75dda8db8318b9148310cbf35ecbf1cf7c5cdcf7bd661e41"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060localTimezone\u0060 swallows every exception into \u0060return \u0022UTC\u0022\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":"platform/web/src/components/bot/triggers.tsx"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"052c0f4e84c2faaa34e1f6ecae4086fd3883dcad80de49ed05e5b751f97b8d2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readBody\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":"platform/web/src/demo/routes/common.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c14b2d370f2c0d59c6261cce93b796301feae60283b8684e274dd56e184d906"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060restore\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":"platform/web/src/lib/composer-attachments.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"add3ea16c453744a190a18242b2b19902bfd49d97da11b00e503ae7f9a1dd680"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readRunChoice\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":"platform/web/src/lib/composer-model.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcbdf6d3d24c6d7ed23aef4855ac9a3a151d6a13e1d936253289586d88050d6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readSessionDraft\u0060 swallows every exception into \u0060return \u0022\u0022\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":"platform/web/src/lib/sessions/draft.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d656df1f11065960ee0736cda048575492ce2f57811e22f0bcc7f9d8b3f8126"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readSessionMetadataFilter\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":"platform/web/src/lib/sessions/list-preferences.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"069f6704b8a5933838cc430689c9672a34273ca0223b71f6ad9727df843d99cd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readQueuedRecovery\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":"platform/web/src/lib/sessions/queued-message.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a05d2566c79772964dc738b62c67e478fcabbfad3b5e27e0ade06ed68e13e6f"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060message.contains(\u002232-call budget\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060message.contains(\u002232-call budget\u0022)\u0060 also satisfies \u0060message.contains(\u0022call budget\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-runtime/src/compaction.rs"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9c351bbb703cfad9a3cc4b2aad4ea52555a8fd291094a79e2b9f8816223306"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060haystack.contains(\u0022insufficient_quota\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060haystack.contains(\u0022insufficient_quota\u0022)\u0060 also satisfies \u0060haystack.contains(\u0022quota\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/llm-clients/src/error.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffb18278b61afb009a0eabf120cd487edfe72bd1bd9251d3054593c3d1c5a89"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-310","guid":"97174724-2e33-8455-b7cd-5c3258d1cb8f","name":"CWE-310","shortDescription":{"text":"CWE-310"},"helpUri":"https://cwe.mitre.org/data/definitions/310.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-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-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-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-913","guid":"062167e8-5db3-0857-a865-a1fc4aad34bc","name":"CWE-913","shortDescription":{"text":"CWE-913"},"helpUri":"https://cwe.mitre.org/data/definitions/913.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"}]}],"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":51,"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."]}]}