{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"id":"AXA1","name":"Runtime unauthenticated reachability","shortDescription":{"text":"Runtime unauthenticated reachability"},"helpUri":"https://codehealth.canine.dev/dimensions/AXA1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXH1","name":"Runtime security headers","shortDescription":{"text":"Runtime security headers"},"helpUri":"https://codehealth.canine.dev/dimensions/AXH1"},{"id":"AXI1","name":"Runtime container hardening","shortDescription":{"text":"Runtime container hardening"},"helpUri":"https://codehealth.canine.dev/dimensions/AXI1"},{"id":"AXR1","name":"Runtime accessibility (rendered)","shortDescription":{"text":"Runtime accessibility (rendered)"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"DM1","name":"Aggregate boundaries","shortDescription":{"text":"Aggregate boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/DM1"},{"id":"DM10","name":"One transaction, one aggregate","shortDescription":{"text":"One transaction, one aggregate"},"helpUri":"https://codehealth.canine.dev/dimensions/DM10"},{"id":"DM11","name":"Constructible invalid state","shortDescription":{"text":"Constructible invalid state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM11"},{"id":"DM12","name":"Ambient inputs in the domain","shortDescription":{"text":"Ambient inputs in the domain"},"helpUri":"https://codehealth.canine.dev/dimensions/DM12"},{"id":"DM4","name":"Rich vs anemic model","shortDescription":{"text":"Rich vs anemic model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"DM7","name":"Repository granularity","shortDescription":{"text":"Repository granularity"},"helpUri":"https://codehealth.canine.dev/dimensions/DM7"},{"id":"DM9","name":"Scattered domain decisions","shortDescription":{"text":"Scattered domain decisions"},"helpUri":"https://codehealth.canine.dev/dimensions/DM9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"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":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"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":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"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":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"eventview.newPrintEvent (cyclomatic 154): eventview.newPrintEvent has cyclomatic complexity 154 (threshold 15). Most of this is not in the body itself: 1 of the 154 points is its own statement and the rest belongs to 21 function literals inside it that branch (lines 381, 198, 238, \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":"internal/adapters/transport/cli/eventview/print.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f0655e445593bcaf0edf01f6e39a0a904e10a7d15a82dc0334dd18aff6469f"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeModel.Update (cyclomatic 97): runtimeModel.Update has cyclomatic complexity 97 (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":"internal/adapters/transport/cli/runtime/runtime_update.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"862e90493beb82eb5ee787f4858a264621519c46125c2ab580e6af90215fd0c8"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatComposer.ChatComposer (cyclomatic 96): ChatComposer.ChatComposer has cyclomatic complexity 96 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 62 belong to 26 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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d286a858cbc089de32701b1762e6ca19130fba30e9be51b295d76aae8d29a2"}},{"ruleId":"D1","level":"warning","message":{"text":"Projector.Apply (cyclomatic 88): Projector.Apply has cyclomatic complexity 88 (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":"internal/app/chat/presentation/projector.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c317ed446491334a7ffd5dfbc070b18167d4957eab6adbec9b6a84f2ac4ce61"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillPanel.SkillPanel (cyclomatic 85): SkillPanel.SkillPanel has cyclomatic complexity 85 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 66 belong to 18 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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"19eee7dcee411b983b3b9ffd2ab378ff6bca3ec322c955e1ebda47d434a05147"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatInput.ChatInput (cyclomatic 78): ChatInput.ChatInput has cyclomatic complexity 78 (threshold 15). Most of this is not in the body itself: 14 of the 78 points are its own statements and the rest belongs to 15 function items inside it that branch (addAttachments, submit, confirmCommand, \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":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e558ddc39f8ae0560923aea959157fffb4aa17691ba4dfa03bea4702f79d37fc"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryRecorder.RecordEvent (cyclomatic 69): HistoryRecorder.RecordEvent has cyclomatic complexity 69 (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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb74d20b01f57fc69e5db47875e2f4a481c46137743d6ffda8c761afe4db588"}},{"ruleId":"D1","level":"warning","message":{"text":"taskstream.RuntimeEventPayload (cyclomatic 58): taskstream.RuntimeEventPayload has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/chat/taskstream/protocol.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd74c48d00076a71d3f2eeb6733e6465f8cc4f9cdb9a9bf6da42fba7cb910100"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.agentMessageToCoreMessages (cyclomatic 51): chat.agentMessageToCoreMessages has cyclomatic complexity 51 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 4 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":"internal/app/chat/input.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebb06d32ce90089e6bc7a85a499017edcdcdd42c300d1c1c15bab6e07ddd0bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar.Sidebar (cyclomatic 47): Sidebar.Sidebar has cyclomatic complexity 47 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 26 belong to 11 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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5546ce122890ba93d30d4d68327a26f8001b06eb248e5c8cbbbb1e787841cec4"}},{"ruleId":"D1","level":"warning","message":{"text":"Service.Save (cyclomatic 44): Service.Save has cyclomatic complexity 44 (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":"internal/app/task/service.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6e7c493fe9ef9f895ea588596f96a6d861e3ab7d6d295d86053ad4444b6fd8"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareManagerPanel.ShareManagerPanel (cyclomatic 44): ShareManagerPanel.ShareManagerPanel has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 3 of the 44 points are its own statements and the rest belongs to 13 function items inside it that branch (load, confirmDelete, confirmDeleteFile, \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"49eb1d01a7a1cb48053ff93a4a439f5f56f301d81d59ba3d0ac2c578fb2ded75"}},{"ruleId":"D1","level":"warning","message":{"text":"GitTools.GitDiff (cyclomatic 42): GitTools.GitDiff has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/git/diff.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda676145583bf361ef3507a6213cf78efc5575525562281755cc62742cee7a5"}},{"ruleId":"D1","level":"warning","message":{"text":"memberModel.applyEvent (cyclomatic 42): memberModel.applyEvent has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/member_panel.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"94863570f3c9b1df747415396c835f43250cacb6aff2738a2880ff8f0b5bc009"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.UploadChunkHandler (cyclomatic 42): Runtime.UploadChunkHandler has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 1 of the 42 points is its own statement and the rest belongs to one function literal inside it that branches (line 964). 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad31d9759fff42138b671eac7ae14e55cc0b584a8eb778ffac169661b959a782"}},{"ruleId":"D1","level":"warning","message":{"text":"events.ValidateEventContract (cyclomatic 42): events.ValidateEventContract has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/events/protocol.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9090240661d9aba94102cf407d3a90f05ecae24c88761a0ac2df74facb7f49"}},{"ruleId":"D1","level":"warning","message":{"text":"events.decodeChatEvent (cyclomatic 42): events.decodeChatEvent has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/types/events.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa09dc063435d041b7f5eb1bc04eaeb04279d2c94476c1dc18a4d7a95bc3b99"}},{"ruleId":"D1","level":"warning","message":{"text":"SchedulePanel.SchedulePanel (cyclomatic 41): SchedulePanel.SchedulePanel has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 9 of the 41 points are its own statements and the rest belongs to 12 function items inside it that branch (showDetail, saveTask, confirmRemove, \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff7bfc9780ab2d7573e267db87a3de7a34a7ac3ad9831a6501dd0b407c905f2"}},{"ruleId":"D1","level":"warning","message":{"text":"FileManager.FileManager (cyclomatic 39): FileManager.FileManager has cyclomatic complexity 39 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 22 belong to 9 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":"web/src/features/files/FileManager.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"96afd85a8f7f55c1d4aefbde77baa8665b8373b658b2e633ed0f4e72bf227846"}},{"ruleId":"D1","level":"warning","message":{"text":"MigrationGate.MigrationGate (cyclomatic 39): MigrationGate.MigrationGate has cyclomatic complexity 39 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 11 belong to 3 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":"web/src/features/migration/MigrationGate.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"327ab247f400c2cad054f33dea09cf1ec12212bd614951249bc6ccb8f0355f66"}},{"ruleId":"D1","level":"warning","message":{"text":"Service.Execute (cyclomatic 38): Service.Execute has cyclomatic complexity 38 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 5 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":"internal/app/process/service.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59127b6608f8969bdee0d48d3f4f8411bdb59bced604ed0baa6e9b54cd35951"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryRecorder.recordTranscript (cyclomatic 37): HistoryRecorder.recordTranscript 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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bf8f0039d42f20838339218257b2540e0d998b71696966327f74e21f14b40f"}},{"ruleId":"D1","level":"warning","message":{"text":"Manager.SaveEntry (cyclomatic 37): Manager.SaveEntry has cyclomatic complexity 37 (threshold 15). Of this number, 35 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":"internal/app/memory/editor.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d9a065704d7c7655929b085df1297ca711ccd5a1b7c429212479f886e20c62"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEditors.AgentDraftDialog (cyclomatic 37): AgentEditors.AgentDraftDialog has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 13 of the 37 points are its own statements and the rest belongs to 7 function items inside it that branch (generate, a function literal at line 755, a function literal at line 686, \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ca89eafcba3c32b6bbfd5e6a5ca4f54faf3b6cabcf5d38f6c37457d3152f75"}},{"ruleId":"D1","level":"warning","message":{"text":"AssistantUIContent.InteractiveBlock (cyclomatic 36): AssistantUIContent.InteractiveBlock has cyclomatic complexity 36 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 14 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":"web/src/features/chat/openui/AssistantUIContent.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3490825d7327972ca6453e49599a8d3db1d4f55666193895c85b8bf2199960"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageList.AskPanel (cyclomatic 36): MessageList.AskPanel has cyclomatic complexity 36 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 17 belong to 4 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":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"17faeca100ce83043aaf28654da4d5b771b9a2e5d923949acb23ba6a6aa79293"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationEditors.JavaScriptTab (cyclomatic 35): IntegrationEditors.JavaScriptTab has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 10 of the 35 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 197, a function literal at line 152, a function literal at line 174, \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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76498b0604ef8307bf919967eed6ead816ede51247b406c455d64cd3c654584"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewPage.PreviewPage (cyclomatic 34): PreviewPage.PreviewPage has cyclomatic complexity 34 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 10 belong to 5 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/preview/PreviewPage.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65c0206eadf9d4e344f8aede66b776ecc677a6a68fc274ccef701c5b2d8d0ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Source.Prepare (cyclomatic 33): Source.Prepare has cyclomatic complexity 33 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 5 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":"internal/adapters/storage/migration/source.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3536343c343261828fbb188f449e9ee09cea9a98c7205ea37366a08025bfa4"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeModel.applyEvent (cyclomatic 33): runtimeModel.applyEvent 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":"internal/adapters/transport/cli/runtime/runtime_events.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a212849896c0ffcd34b63cd342cbd79ec5d1d04238e5c61ec166e19537332b6"}},{"ruleId":"D1","level":"warning","message":{"text":"stream_frontend_logic_check.analyzeEvents (cyclomatic 33): stream_frontend_logic_check.analyzeEvents has cyclomatic complexity 33 (threshold 15). Of this number, 32 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"836fb0f4facaa9a55ee8d9f7990b240cbf2fd676fdb70e59e4662fed6459986d"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.runChat (cyclomatic 32): commands.runChat has cyclomatic complexity 32 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 15 belong to 5 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":"internal/adapters/transport/cli/commands/chat.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"910be7f9e94817de7222a50c465051e487bd0df7b03215fdece4ac0f8fbb27b8"}},{"ruleId":"D1","level":"warning","message":{"text":"events.NormalizeFriendlyError (cyclomatic 32): events.NormalizeFriendlyError has cyclomatic complexity 32 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/events/friendly_error.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2aa85ed932b2aeb989135d5b2d99e17f6a56163a1b6225f090d0c0242d8962"}},{"ruleId":"D1","level":"warning","message":{"text":"mdiff.buildHunks (cyclomatic 32): mdiff.buildHunks 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":"internal/runtime/mdiff/format.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5366acfdc10c952c31c0bd03be1249fa3999c47d91c7315ee59c608b8867b1cb"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryPanel.MemoryPanel (cyclomatic 32): MemoryPanel.MemoryPanel has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 14 of the 32 points are its own statements and the rest belongs to 7 function items inside it that branch (remove, a function literal at line 60, save, \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":"web/src/features/memory/MemoryPanel.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d616aca812e3d81e2da09904d60203f833d18575d5e9ab5031715435a78514e7"}},{"ruleId":"D1","level":"warning","message":{"text":"eventview.formatTodoResult (cyclomatic 31): eventview.formatTodoResult has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4282dededeaf5874b54dd2d976f3ceb7c8f57cc6a4cf7584a41a76f54867103d"}},{"ruleId":"D1","level":"warning","message":{"text":"Service.RunQueued (cyclomatic 31): Service.RunQueued has cyclomatic complexity 31 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/chat/queue.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ee037a3481ba6e2332960f7676d7be308a2603db1bf76b6f814dcc4bd3f021"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEditors.AgentsTab (cyclomatic 31): AgentEditors.AgentsTab has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 5 of the 31 points are its own statements and the rest belongs to 9 function items inside it that branch (buildAgentsDraft, duplicateBuiltinAgent, a function literal at line 382, \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4b4785aca0e791768664235d88912c8f867c1a90118fc6ad9305b0fca14e6b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPage.QuestionNavigator (cyclomatic 30): ChatPage.QuestionNavigator has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 162, 144, 187, \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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04938c971937d941b186c25e846d8a7b5d5b43c23de243db38f0ca9c11d1786"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.save (cyclomatic 29): Store.save 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":"internal/adapters/storage/file/queue/store.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8287a2ddb902ae3fb7a2d380636304cd0acb0de6e277c599d423e836cd55610"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeModel.handleSubmit (cyclomatic 29): runtimeModel.handleSubmit 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":"internal/adapters/transport/cli/runtime/runtime_input.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54f2473c5da3e07e784b06f0df5e4482c1176e63a047f8f7a08d2887adabb33"}},{"ruleId":"D1","level":"warning","message":{"text":"askModel.Update (cyclomatic 29): askModel.Update 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":"internal/adapters/transport/cli/tui/ask.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca9d07933f429204cec1e47d8173dfce76b7cdde74984d5623302f67e59a535"}},{"ruleId":"D1","level":"warning","message":{"text":"eventlog.projectTranscriptEvents (cyclomatic 28): eventlog.projectTranscriptEvents has cyclomatic complexity 28 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 7 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":"internal/adapters/storage/file/history/history_persist.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad1251e216dd1c431aae56b4434e6c613542ca403ee84067d60dd3c8d973372"}},{"ruleId":"D1","level":"warning","message":{"text":"memory.loadMarkdownFile (cyclomatic 28): memory.loadMarkdownFile 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":"internal/adapters/storage/file/memory/store.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aace28c4648f34e540c50666062f109cbaa7a8f620453dea1d6e32a2276754a"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.WebSocketHandlerWithState (cyclomatic 28): Runtime.WebSocketHandlerWithState has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to one function literal inside it that branches (line 56). 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":"internal/adapters/transport/http/handler/websocket.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da6ab4a2000a4560eb57bad9a0778f8ddf9f14e2a12c063186f78fcde81d285"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigFields.ToolSelectField (cyclomatic 27): ConfigFields.ToolSelectField has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 8 of the 27 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 216, a function literal at line 173, a function literal at line 135, \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":"web/src/features/config/ConfigFields.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be7612bc51fd9a9fd0f34f7d3d79044f90c0147bf1aefb82459c5e1dccb292b"}},{"ruleId":"D1","level":"warning","message":{"text":"autocontinue.repairJSON (cyclomatic 26): autocontinue.repairJSON 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":"internal/adapters/runtime/agentkit/middlewares/autocontinue/repair.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3afc2bfa74ad7be8ec16ecf220ae84d694fb7aceda0071b89cfd483a345d76"}},{"ruleId":"D1","level":"warning","message":{"text":"Database.Import (cyclomatic 26): Database.Import 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":"internal/adapters/storage/sqlite/migration.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"10840627d7607eb5bc4b7630333fb6222692af12d743002ef6c3b76b0ed9a72e"}},{"ruleId":"D1","level":"warning","message":{"text":"TodoTools.TodoUpdate (cyclomatic 26): TodoTools.TodoUpdate 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":"internal/adapters/tools/builtin/todo/func.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73a828c6a0bcfb66f11c047fd7af74185765e7d004e16fd5ed01af3d3b8f673"}},{"ruleId":"D1","level":"warning","message":{"text":"auth.Login (cyclomatic 26): auth.Login 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":"internal/adapters/transport/channel/weixin/sdk/auth/login.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62f348c5fbaeabddd07657e8c3bf18e3655496fce8f423a07f947476ab40c52"}},{"ruleId":"D1","level":"warning","message":{"text":"Updater.Apply (cyclomatic 26): Updater.Apply has cyclomatic complexity 26 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 6 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":"internal/adapters/transport/cli/update/update.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfbd4eea888cbef954825e5cfbef70bc5e4db146ece763644440c3e006fadc9"}},{"ruleId":"D1","level":"warning","message":{"text":"select.Select::handleKeyDown (cyclomatic 26): select.Select::handleKeyDown 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":"web/src/components/ui/select.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a43d1d018ab241f987c9fbd2363057fcaba22525a51af84d3249ddc209e7fe"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalBackend.GrepRaw (cyclomatic 25): LocalBackend.GrepRaw has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 201). 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":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c96548887eeb554a6afe5f6a348f56290477eca80ff4de63d4b8182db8c8210"}},{"ruleId":"D1","level":"warning","message":{"text":"migration.validateBackup (cyclomatic 25): migration.validateBackup 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":"internal/adapters/storage/migration/validate.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb8acfdc6ac87dad6305b83a279e31f715527a01f2a749d8732cfadbcd5a4ec"}},{"ruleId":"D1","level":"warning","message":{"text":"command.splitShellCommands (cyclomatic 25): command.splitShellCommands has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/command/security.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3db8cb2801c041733dd0c1cc20a07b16bd7111f6f89c89a838418d6e7a604f"}},{"ruleId":"D1","level":"warning","message":{"text":"GitTools.GitConfig (cyclomatic 25): GitTools.GitConfig 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":"internal/adapters/tools/builtin/git/config.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad3cbe9327e579be6d60e586505debdb8c3378e9bdc81ade6a2591db3913419"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.switchModel (cyclomatic 25): commands.switchModel 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":"internal/adapters/transport/cli/commands/model.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d383176396aceb48c4ea5f09dd6b3206655e026846bbd5477610235e6b051e13"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.UploadFileHandler (cyclomatic 25): handler.UploadFileHandler has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to one function literal inside it that branches (line 632). 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e2931b2809ead9c8887d03607c57c458183a67be2639cfdfc3efb15a707b9a"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.UpdateConfigHandlerWithState (cyclomatic 25): Runtime.UpdateConfigHandlerWithState has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to one function literal inside it that branches (line 81). 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":"internal/adapters/transport/http/handler/config.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9eb5c99c3b3bd759e01f18f120a61aeefd9a08bc068f952709f7ccc7452732"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolCallCard.ToolCallCard (cyclomatic 25): ToolCallCard.ToolCallCard has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ToolCallCard.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d715514cba2d8a87fba7cdea7248f1685445f5102736d70e6431fe33af0a066e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPanel.ConfigPanel (cyclomatic 25): ConfigPanel.ConfigPanel has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 10 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":"web/src/features/config/ConfigPanel.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bb90eefd85a85e7b4572e1265b6b602273ad6074f5e7de476f7c3793eac9e1"}},{"ruleId":"D1","level":"warning","message":{"text":"SharePage.SharePage (cyclomatic 25): SharePage.SharePage has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 25, a function literal at line 22, load, \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":"web/src/features/share/SharePage.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cf830c384e62d46e9da2eefbeb66d825bc7cf472fd7662b980b451c53a9372"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecutionDependencies.prepareStorage (cyclomatic 24): ExecutionDependencies.prepareStorage has cyclomatic complexity 24 (threshold 15). Of this number, 23 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":"internal/bootstrap/storage.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1ac4d9a58f438075e5d2c60088b09cce5971d5536b5cbae71dd67a76d0f016"}},{"ruleId":"D1","level":"warning","message":{"text":"mdiff.Diff (cyclomatic 24): mdiff.Diff has cyclomatic complexity 24 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/mdiff/diff.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aab3e5859cf7670faff295cd90112c6bb4d195ddd40f5d65e2f83b2d003d55c"}},{"ruleId":"D1","level":"warning","message":{"text":"store.applyChatEvent (cyclomatic 24): store.applyChatEvent 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":"web/src/app/store.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af73e52b1281e49514164cd7fe872d473e36e9720e474dfd07dbd39c604400f"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskStreamController.followTaskStream (cyclomatic 24): TaskStreamController.followTaskStream has cyclomatic complexity 24 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"532a721557107bf71fb3c8486726e1071ab7bdd6d6edb32b548b2f41b8577348"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationEditors.JavaScriptAIDialog (cyclomatic 24): IntegrationEditors.JavaScriptAIDialog has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 12 belong to 2 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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec76b921775e96c69e977818ed3e511dac577708005b9077e334679ff04d97d9"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillPanel.SkillDetail (cyclomatic 24): SkillPanel.SkillDetail has cyclomatic complexity 24 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"a339fd2218ae7ad4030c9b3d6d00d902e814c07942a8e6329cf3719e82ecd422"}},{"ruleId":"D1","level":"warning","message":{"text":"Tools.snapshot (cyclomatic 23): Tools.snapshot 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":"internal/adapters/tools/builtin/doc/func.go"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bf8d2072fd092929deaa5608ac30ffc71fd8157863b663386157611dea8ff8"}},{"ruleId":"D1","level":"warning","message":{"text":"Channel.Start (cyclomatic 23): Channel.Start has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfa6afabce2b233adec91959a081fff585228d2da5c435dd681c33fa6a6a70b"}},{"ruleId":"D1","level":"warning","message":{"text":"eventview.NewMarkdownCollector (cyclomatic 23): eventview.NewMarkdownCollector has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 29, 22, 94). 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":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a8776397dfd090d406f69c23ed661a89c01ab9b6860878ffbb0177932fa75e"}},{"ruleId":"D1","level":"warning","message":{"text":"middleware.Auth (cyclomatic 23): middleware.Auth has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to one function literal inside it that branches (line 15). 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":"internal/adapters/transport/http/middleware/auth.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3bb85412ea71ae631c35620813e64d077d7b27a238e023ef78bbd3b8cc4a57"}},{"ruleId":"D1","level":"warning","message":{"text":"common.resolveMiddlewares (cyclomatic 23): common.resolveMiddlewares 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":"internal/app/agent/catalog/common/definition.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb5acc4c4ca8184691d2744db65a70f546bfb5a7ccd373f6c853644814f9980"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillPanel.CreateSkillDialog (cyclomatic 23): SkillPanel.CreateSkillDialog has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50e9da301082d01f1b89d468331cab38a70050b110ef2eabd8310235fa3b154"}},{"ruleId":"D1","level":"warning","message":{"text":"agentkit.NewDeepAgent (cyclomatic 22): agentkit.NewDeepAgent has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 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":"internal/adapters/runtime/agentkit/deep.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"207700055d3ae6ed3b795be26dd37f7029d509528efe23d671604c59848277c8"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner.Run (cyclomatic 22): Runner.Run 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":"internal/adapters/runtime/agentkit/runner.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ec41dae7dd4c4127ef53dbea3b7db286bfbc21617f0d9518909317356eb146"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.OpenAIChatCompletionsHandler (cyclomatic 22): handler.OpenAIChatCompletionsHandler 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 one function literal inside it that branches (line 53). 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":"internal/adapters/transport/http/handler/openai_api.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3431aee3d62eee05ce351eff52d03ede7a00c24bf862927e582f5e9a9f870c"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.ValidateJavaScript (cyclomatic 22): Config.ValidateJavaScript 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":"internal/app/config/config.go"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e41cfb8acc4664328cc4aa097f90ae261fe2d34086eb1a59c1cad66b0cc314"}},{"ruleId":"D1","level":"warning","message":{"text":"tools.RegisterWithProcesses (cyclomatic 22): tools.RegisterWithProcesses has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 297, 335, 116, \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":"internal/bootstrap/tools/tools.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faeb804071e043c3ac6315690236297f37e830f1069e825696a0ff8c11b171e"}},{"ruleId":"D1","level":"warning","message":{"text":"stream_frontend_logic_check.analyzeMemberCompletedText (cyclomatic 22): stream_frontend_logic_check.analyzeMemberCompletedText 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"de77ed5f05ef6c6e71aae825b89733e2d9d874f1c5ad489697374166a099689e"}},{"ruleId":"D1","level":"warning","message":{"text":"configModel.normalizeConfig (cyclomatic 22): configModel.normalizeConfig has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/configModel.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9568d180f58c600d2259723e4f9628caf85905914aef229c16d723fb7fee6c1b"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigEditor.ConfigEditingProvider (cyclomatic 22): ConfigEditor.ConfigEditingProvider has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 6 function items inside it that branch (begin, confirmRemove, confirm, \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":"web/src/features/config/ConfigEditor.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab374d13de76c55f7f1d9abfeb3dd207bd3a88f2c9df8db672b38d16e660a9b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Scheduler.ListHistoryEntries (cyclomatic 21): Scheduler.ListHistoryEntries 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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"78992cb239cef17b78f2acb6038cde84ea9595ddc89d33f0ac45ed90e8b92b55"}},{"ruleId":"D1","level":"warning","message":{"text":"eventview.formatSSHResult (cyclomatic 21): eventview.formatSSHResult 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":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d790ce0a6fb85d947f3327a160b54e7cfcb4cf82496df6a1da339f11a1d3b2"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryExecutor.Execute (cyclomatic 21): QueryExecutor.Execute has cyclomatic complexity 21 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 9 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":"internal/adapters/transport/cli/runtime/query.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac9f2c7a21ed972a3596cd6c44167d3f54db9859fee716fa054b6b129b776bc"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.StreamStartHandlerWithState (cyclomatic 21): Runtime.StreamStartHandlerWithState has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 38). 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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff0d19d0933d398c0078a8c46bc70925e8b9840b09f36557dc228139c93479a"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.StreamSubscribeHandler (cyclomatic 21): Runtime.StreamSubscribeHandler has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 506). 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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f391c95bed7092a2365b9dd3cf72412f11b9d73073e527a8ce6c21df38c5a12"}},{"ruleId":"D1","level":"warning","message":{"text":"mdiff.parseHunk (cyclomatic 21): mdiff.parseHunk 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":"internal/runtime/mdiff/parse.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1c54cd5f6985ae87515289f1ff5f6c37a1ed505b883742f1e5f16cf99c43ce"}},{"ruleId":"D1","level":"warning","message":{"text":"mdiff.applyHunksForward (cyclomatic 21): mdiff.applyHunksForward 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":"internal/runtime/mdiff/patch.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f2561b0f87ca92301c0b7c5360156c6022454c2efbea458f859719762877f7"}},{"ruleId":"D1","level":"warning","message":{"text":"mdiff.ApplyMultiFileDiff (cyclomatic 21): mdiff.ApplyMultiFileDiff 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":"internal/runtime/mdiff/patch.go"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d818a1d44a141e90f187c5264c63260cc29b223fcb3bd03947964436612b15"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionShareDialog.SessionShareDialog (cyclomatic 21): SessionShareDialog.SessionShareDialog has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 5 function items inside it that branch (createShare, copyShareURL, a function literal at line 93, \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":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22099d41b73de43a9cf95e2ed342e8ddfe89138f794cd8c7a33629a31e01429"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEditors.AgentCatalogEditor (cyclomatic 21): AgentEditors.AgentCatalogEditor has cyclomatic complexity 21 (threshold 15). Of this number, 17 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe364de239dc829a7e392d3b7e3bf53d19e25c08303581942979d3575d14b873"}},{"ruleId":"D1","level":"warning","message":{"text":"autocontinue.trimTrailingJSONGarbage (cyclomatic 20): autocontinue.trimTrailingJSONGarbage has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/autocontinue/repair.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6de1b5f2c6a785395b78e11cb525724b07276ea480d4de201e06b03012c01f"}},{"ruleId":"D1","level":"warning","message":{"text":"eventlog.loadTranscriptRecords (cyclomatic 20): eventlog.loadTranscriptRecords 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":"internal/adapters/storage/file/history/transcript.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c2043b69bf675a743ed90ef3e623955f259fdd2e118e0e82c06093c9758966"}},{"ruleId":"D1","level":"warning","message":{"text":"queue.cleanupQueueAttachmentDirs (cyclomatic 20): queue.cleanupQueueAttachmentDirs 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":"internal/adapters/storage/file/queue/store.go"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"9242dcc4d409019cc780d5a2510daef78fbd5a914cd19539ca203d26468e9364"}},{"ruleId":"D1","level":"warning","message":{"text":"FileTools.Grep (cyclomatic 20): FileTools.Grep has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 8 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":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9c0e939d7c202843dfb470a42324740d23df131da284ec057d16f8b8eef4ef"}},{"ruleId":"D1","level":"warning","message":{"text":"replyCollector.handleEvent (cyclomatic 20): replyCollector.handleEvent 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":"internal/adapters/transport/channel/bridge.go"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7cde6583e53d524dd11efb79ecc5c7d17b7a5766a72097eb3f2fd055e3c440"}},{"ruleId":"D1","level":"warning","message":{"text":"Bus.Invoke (cyclomatic 20): Bus.Invoke 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":"internal/runtime/hooks/bus.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc29a5eb9742fb40d31b5fd8c2fb66c51f46e17a5c1d89a275cfc57cdf8a8420"}},{"ruleId":"D1","level":"warning","message":{"text":"stream_frontend_logic_check.memberRenderParts (cyclomatic 20): stream_frontend_logic_check.memberRenderParts 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2cf3d3813f484447b3c80c57cf6a4e5d5ae583e5279c772c376fd36d630e59"}},{"ruleId":"D1","level":"warning","message":{"text":"stream.subscribeStream (cyclomatic 20): stream.subscribeStream 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":"web/src/api/stream.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa93fa7e7c31875687040f94f7d5a74b17a0b8fb44e25e741f2dbfd6d94039f4"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatComposer.ReferenceMenu (cyclomatic 20): ChatComposer.ReferenceMenu 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 3 function literals inside it that branch (lines 617, 663, 643). 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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"c188249395e837c495c99757ca1fb7bab5902c8cfd92d6fb39a87911484bded9"}},{"ruleId":"D1","level":"warning","message":{"text":"sendMessage.sendChatMessage.\u003Creturned closure\u003E (cyclomatic 20): sendMessage.sendChatMessage.\u003Creturned closure\u003E 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":"web/src/features/chat/sendMessage.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b445ef6d988a0fc90ce00aaea9d443bcb4e433dbe8ee3e40470a4d4177150dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPage.ChatPage (cyclomatic 20): ChatPage.ChatPage has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61420072f5fb73e74b8285b8771d0580df6998f717b9248969aa6a5d8dc4753"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationEditors.JavaScriptToolEditor (cyclomatic 20): IntegrationEditors.JavaScriptToolEditor has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 belong to one function item 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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ce94357b77e078912f6fc0d731f07867cb78e572642c56d793e9807a043b4b"}},{"ruleId":"D1","level":"warning","message":{"text":"eventlog.saveMessagesToMarkdown (cyclomatic 19): eventlog.saveMessagesToMarkdown 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":"internal/adapters/storage/file/history/history_markdown.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22615ca9116098ea5aa3f6a306d642fc491a4ec9024b041873f6c5bdd3b5a88"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.Load (cyclomatic 19): Store.Load 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":"internal/adapters/storage/file/queue/store.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62f6f4442ff6eec91797972fe483f9b2e41d660c9a00bf44b32a2f1c9e0cf45"}},{"ruleId":"D1","level":"warning","message":{"text":"command.interpretExitCode (cyclomatic 19): command.interpretExitCode has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/command/func.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e49ac8a3ed8c4bbc5989c0fd2b311d6efb4bcbf88e8bb676cf72d60459c3bb"}},{"ruleId":"D1","level":"warning","message":{"text":"excel.readSheetRows (cyclomatic 19): excel.readSheetRows 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":"internal/adapters/tools/builtin/excel/data.go"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"2524f723758879fea63b2fa577df1aaa1f4ace133aa7f73a37d3f7aa99cf41c2"}},{"ruleId":"D1","level":"warning","message":{"text":"Bot.Run (cyclomatic 19): Bot.Run 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, 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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"adadb38c1fc13b410a31888ebf460ad1225171f2a225b4925eed34afdcd72ad6"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeModel.applyMemberEvent (cyclomatic 19): runtimeModel.applyMemberEvent 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":"internal/adapters/transport/cli/runtime/runtime_events.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c455c300f141c93dd1d51a430b4c912b975d36a2d2f325b3e40d41c6d3318e7e"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeModel.appendHistoryMessage (cyclomatic 19): runtimeModel.appendHistoryMessage 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":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"63896624c3475d685aee6aca260bc82868c3d3e2a8d0d6c91655cea2dbff6927"}},{"ruleId":"D1","level":"warning","message":{"text":"askModel.View (cyclomatic 19): askModel.View 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":"internal/adapters/transport/cli/tui/ask.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf36bab879b47a1d56f6c1c99f5335548e0a4b0ef91ab27e4a8e302cd9fba0f"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.DeleteFileHandler (cyclomatic 19): handler.DeleteFileHandler has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to one function literal inside it that branches (line 1557). 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"933496ac683d854c5dfeefa0737e6b55b9648f4e2df9981ab9e5ab382cb22159"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.collectPreviewPaths (cyclomatic 19): handler.collectPreviewPaths has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 64). 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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"73aa3c681aa9e622cc81f9fc8557c4f105672736a3a728029a8e2810b32e9a75"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.NewRuntime (cyclomatic 19): handler.NewRuntime 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":"internal/adapters/transport/http/handler/runtime.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b08ab8a2e125b1ef2c271a0e016e33f23160795cdf56074e664d99acebc3a19"}},{"ruleId":"D1","level":"warning","message":{"text":"interactionRecorder.interruptHandler (cyclomatic 19): interactionRecorder.interruptHandler has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 121). 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":"internal/app/chat/interactions.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4173a7931d6a086043bd8a303cb3b60504d2173098ea5844189988f99d7e09a9"}},{"ruleId":"D1","level":"warning","message":{"text":"Service.Update (cyclomatic 19): Service.Update has cyclomatic complexity 19 (threshold 15). Of this number, 15 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":"internal/app/session/service.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bb7e969f2e9e4f6264f992924b290622996d656ae5e449c17502157b7df721"}},{"ruleId":"D1","level":"warning","message":{"text":"timeline.timelineItemSpacingClass (cyclomatic 19): timeline.timelineItemSpacingClass has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/timeline.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55d50226c14c80e9c47eebcad1b4ed741e60f0506f357ebf873e7dfa505b6c8"}},{"ruleId":"D1","level":"warning","message":{"text":"FileShareDialog.FileShareDialog (cyclomatic 19): FileShareDialog.FileShareDialog has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (createShare, copyPreviewURL, a function literal at line 84, \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":"web/src/features/files/FileShareDialog.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c45fa84c4c5110726266d74e2e7662e712f3bcbcf829feaed8ae70203cef7f"}},{"ruleId":"D1","level":"warning","message":{"text":"GitTools.GitRemote (cyclomatic 18): GitTools.GitRemote 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":"internal/adapters/tools/builtin/git/remote.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c766e69f70185ace1ec5cad0f439e31c885c60b45f03e931f271310bb6eca48"}},{"ruleId":"D1","level":"warning","message":{"text":"SshClient.CopyLocalFileToRemote (cyclomatic 18): SshClient.CopyLocalFileToRemote has cyclomatic complexity 18 (threshold 15). 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, 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":"internal/adapters/tools/builtin/ssh/ssh.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8cebbe8fce8030f190786782aa4d3e816b7d72fbc63b86f36a80efa0b4517e"}},{"ruleId":"D1","level":"warning","message":{"text":"Channel.messageCreate (cyclomatic 18): Channel.messageCreate has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdba8776ece749d0ab33bafab7f42de0531f99878fee43507f8311a7360c728"}},{"ruleId":"D1","level":"warning","message":{"text":"sessionRunner.runShard (cyclomatic 18): sessionRunner.runShard 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":"internal/adapters/transport/channel/qq/session.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"11989f3b6fc8753968e57ad78f542c8da224099add0b985b19c3d15a71259173"}},{"ruleId":"D1","level":"warning","message":{"text":"eventview.formatSchedulerResult (cyclomatic 18): eventview.formatSchedulerResult 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":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6b3541143cf8f7c0b9aac49a49b0beba1bea44fb1967f1a3f9ec0885fc3982"}},{"ruleId":"D1","level":"warning","message":{"text":"update.unzipWithLimits (cyclomatic 18): update.unzipWithLimits 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":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"127761b2a57d56c1113bea5f3c5c49ceec6848be909356f0bf47155104878453"}},{"ruleId":"D1","level":"warning","message":{"text":"agent.assistantMemberTools (cyclomatic 18): agent.assistantMemberTools 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":"internal/app/agent/assistant.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c6a779a4f39abbb2cd63bef7d6ecc71a87a63cafd5c69e0a033d1e6b116eae"}},{"ruleId":"D1","level":"warning","message":{"text":"deep.NewAgent (cyclomatic 18): deep.NewAgent 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":"internal/app/agent/catalog/deep/deep.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec93dcbc882599baef3fe5addcac91f120543437257f32cfbb2763cf2d90ff8"}},{"ruleId":"D1","level":"warning","message":{"text":"Projector.closeRun (cyclomatic 18): Projector.closeRun 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":"internal/app/chat/presentation/projector.go"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8bdda53fe2871445b7e51d7c79b2a5d370a88c89c37def42a638a268f21a68"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptEvent.RuntimeEvent (cyclomatic 18): TranscriptEvent.RuntimeEvent 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":"internal/domain/history/runtime.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f752f26e6d0c40ea6311934a0b6182fedf3c1e29ea27f41f9ebb5f0c10167cc7"}},{"ruleId":"D1","level":"warning","message":{"text":"OutputLayout.Complete (cyclomatic 18): OutputLayout.Complete 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":"internal/domain/message/output.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0095cb8bb7a4c5c2475d37240e68b28fa1f10c6504ecebc145e75cf76cd57aae"}},{"ruleId":"D1","level":"warning","message":{"text":"mdiff.applyOneHunk (cyclomatic 18): mdiff.applyOneHunk 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":"internal/runtime/mdiff/patch.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cfd60df0c2fc03cbfbab055cf5c0209e3d1fec861b61af364354549ed77d97"}},{"ruleId":"D1","level":"warning","message":{"text":"pathguard.ResolveWorkspace (cyclomatic 18): pathguard.ResolveWorkspace has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pathguard/pathguard.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6981e5fba6c3e7c498b6d486218c1ff35b8f47ff63429c4fd1c4488921827678"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyedLocks.acquire (cyclomatic 18): KeyedLocks.acquire 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, 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":"internal/runtime/resources/locks.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83e826d3940b0ae76644660982974d2fa2f7d9961f25540d2090204a0abe930"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageList.ApprovalPanel (cyclomatic 18): MessageList.ApprovalPanel has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 belong to one function item 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":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21015df204c9757e3e85ba4757951ea34868f5f9c88298560c3a41a0a333154"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskStreamController.monitorTaskStream (cyclomatic 18): TaskStreamController.monitorTaskStream has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 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":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a2c58a9443f799855648758ca7eb32e3bddfb569761b3fd2890eba3a9443c6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEditors.ModelsTab (cyclomatic 18): AgentEditors.ModelsTab has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 75, removeModel, loadProviderModels, \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd1604b785f2baa8d668ee4d392c3f2f03369cd4761e68335377de9739432cc"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEditors.ModelNameField (cyclomatic 18): AgentEditors.ModelNameField has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff57835614df675ac6426c16fcf28ac4dc3ce161897509f4c29dbe610db28f4"}},{"ruleId":"D1","level":"warning","message":{"text":"copilotTransport.RoundTrip (cyclomatic 17): copilotTransport.RoundTrip 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":"internal/adapters/model/providers/copilot/copilot.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9777e4e52dc06ffc91724ca7d6e1526bb78cb7dabe9dc0f02c55b465ee064d72"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryRecorder.recordToolResult (cyclomatic 17): HistoryRecorder.recordToolResult 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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e328f6d676583da812013715b73543091f1ffe512c246c936b8c6dcabbc2cc"}},{"ruleId":"D1","level":"warning","message":{"text":"sqlite.Open (cyclomatic 17): sqlite.Open 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":"internal/adapters/storage/sqlite/database.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"923174fb0cc2de6ccb039dbdacd2d71e25c856f799f466f5c7d84862fcaae2d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ExcelTools.CreateStyle (cyclomatic 17): ExcelTools.CreateStyle has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/style.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f12eaec0fbbdae55a672129c5f1fc8c96cc193cc594635c75b8bb884976f9db"}},{"ruleId":"D1","level":"warning","message":{"text":"fetch.fetchWithClient (cyclomatic 17): fetch.fetchWithClient 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":"internal/adapters/tools/builtin/fetch/func.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca800cc17823e7bbd9daadcf063183fc3ae1a15f873a2d6533a1a5935c40da2b"}},{"ruleId":"D1","level":"warning","message":{"text":"BunTools.ListPackage (cyclomatic 17): BunTools.ListPackage has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"f138dd4246a5726c0ac25b9a7a141c3c0947cabbc30a66ea5d306f34fa530671"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeModel.updateCurrentMemberAsk (cyclomatic 17): runtimeModel.updateCurrentMemberAsk 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":"internal/adapters/transport/cli/runtime/runtime_ask.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a053775ff688a304401befdcb15a500e4ed7ae34b7d18955c34a2c389a1270"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeModel.renderBottom (cyclomatic 17): runtimeModel.renderBottom has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 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":"internal/adapters/transport/cli/runtime/runtime_render.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"016caee2ba963cba110b3fce326c1014cbc0d891dabbc170efd7e8860ca51ec1"}},{"ruleId":"D1","level":"warning","message":{"text":"tui.DeleteInlineTokenNearCursor (cyclomatic 17): tui.DeleteInlineTokenNearCursor 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":"internal/adapters/transport/cli/tui/inline_input.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d3222a7895273645fc071e610a428d22db40d7e540a80fdc1ebb3c7f8bc59d"}},{"ruleId":"D1","level":"warning","message":{"text":"tui.markdownTableColumnWidths (cyclomatic 17): tui.markdownTableColumnWidths has cyclomatic complexity 17 (threshold 15). Of this number, 13 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":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"224e0cf399624acfc920afac624cfcecae46d5f8b5afdfaa8bfec3abc88e0bb6"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.ChatHandlerWithState (cyclomatic 17): Runtime.ChatHandlerWithState has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 37). 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":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0afe7ecf790d079fe722647276d6cfee8da4fb8bd16b10d99adc730885b902"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.CreateSessionShareHandler (cyclomatic 17): Runtime.CreateSessionShareHandler has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 139). 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":"internal/adapters/transport/http/handler/session_share.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bb352288a279f089f050f6ddaffab52b672c3bdb42bee5bdc2cd4341d16943"}},{"ruleId":"D1","level":"warning","message":{"text":"Stream.SubmitInterruptWithID (cyclomatic 17): Stream.SubmitInterruptWithID 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":"internal/app/chat/taskstream/stream.go"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c62c7a7db4d2d7894ac604a59da8cb493826937a6db703510d842837342da64"}},{"ruleId":"D1","level":"warning","message":{"text":"Service.Read (cyclomatic 17): Service.Read 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":"internal/app/process/service.go"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"d103c3b12e5c93e787e4f5de6017216b7f40ebacd757853e9215e3d3ce9495da"}},{"ruleId":"D1","level":"warning","message":{"text":"skill.ListSkillFiles (cyclomatic 17): skill.ListSkillFiles has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 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":"internal/app/skill/export.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"05132ff32f1418f4d8c93e763f3b59d4210c239545313f796212765663634cab"}},{"ruleId":"D1","level":"warning","message":{"text":"javascriptHost.Call (cyclomatic 17): javascriptHost.Call 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":"internal/bootstrap/tools/javascript.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa68ee8aea4cd102941fa1c7871bb386f04d9330009678e4bd08dafc025d0d8"}},{"ruleId":"D1","level":"warning","message":{"text":"Sidebar.SessionRenameDialog (cyclomatic 17): Sidebar.SessionRenameDialog has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 483, submit, a function literal at line 458, \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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8adfeeb203a09b7c70abf1776f82a6a2a8f6868a4c20f2ad68483690a8fd2d6"}},{"ruleId":"D1","level":"warning","message":{"text":"presentation.applyPresentationUpdate (cyclomatic 17): presentation.applyPresentationUpdate 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":"web/src/types/presentation.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"a566a76ad7a77841c22893b964fe5b3567af0ccc2da0cb6df0aaae0682a3ab9c"}},{"ruleId":"D1","level":"warning","message":{"text":"agentkit.adaptOutputPartsFromRunner (cyclomatic 16): agentkit.adaptOutputPartsFromRunner 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":"internal/adapters/runtime/agentkit/message.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82d1a7172de13eecaa3253afba01db568339de53ec754ccc6cbace88c32fe72"}},{"ruleId":"D1","level":"warning","message":{"text":"dispatchModel.handleKey (cyclomatic 16): dispatchModel.handleKey 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":"internal/adapters/runtime/agentkit/middlewares/dispatch/view.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b360a55fb75108e21ddb15856b7b1e02855fd9b32006d6a2df8a390457398e"}},{"ruleId":"D1","level":"warning","message":{"text":"modelObservation.chunk (cyclomatic 16): modelObservation.chunk has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 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":"internal/adapters/runtime/agentkit/model_events.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2cd0be02c8b65b170edd8730070aa872a73b48c6c6a59a1ed3b59879df8579"}},{"ruleId":"D1","level":"warning","message":{"text":"Scheduler.checkAndExecute (cyclomatic 16): Scheduler.checkAndExecute 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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e756453fd26fb367ba87134756876fd3f908ab2b1b199f034477b9b77da558e"}},{"ruleId":"D1","level":"warning","message":{"text":"Bot.sendContent (cyclomatic 16): Bot.sendContent 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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"addfcd3f6ace359231c651588e01cd26d98564e50747e5a46920c031ff0aa57b"}},{"ruleId":"D1","level":"warning","message":{"text":"commands.saveProviderConfig (cyclomatic 16): commands.saveProviderConfig 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":"internal/adapters/transport/cli/commands/login.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36a2b8d7b2c7bccf7368076cd21a178ad61955720e03db5d6ab8f64d20fe66c"}},{"ruleId":"D1","level":"warning","message":{"text":"eventview.formatSingleTodo (cyclomatic 16): eventview.formatSingleTodo 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":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d3ae748008fa4fd6c73704ce6a0309532ca24b93d5b70eeb7ae2a781ffc100"}},{"ruleId":"D1","level":"warning","message":{"text":"runtimeModel.acceptPicker (cyclomatic 16): runtimeModel.acceptPicker 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":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34d41af88ae35a83383c1c90523c3833ab3e294660be9562091c67bc52a6800"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.enrichJavaScriptDraftRequest (cyclomatic 16): handler.enrichJavaScriptDraftRequest 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":"internal/adapters/transport/http/handler/aiassist.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a28ddc198a0a33388c87aeee5175e9fe1ae3d8be8665d6b6c5ad44f81aecb3a"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.CreatePreviewLinkHandler (cyclomatic 16): Runtime.CreatePreviewLinkHandler 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 one function literal inside it that branches (line 115). 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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87c7b5715c90051bccb07b67c9fc3e666ef34f94c7ee5108f89532f1f4d0884"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.handleChatMessage (cyclomatic 16): Runtime.handleChatMessage 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":"internal/adapters/transport/http/handler/websocket.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f343f7754a4c15a3dced4ba3db925859fcc6b69eb5108c55aa16b306c5e3d28d"}},{"ruleId":"D1","level":"warning","message":{"text":"AssistantTextCollector.Record (cyclomatic 16): AssistantTextCollector.Record 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":"internal/app/chat/service.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b402646e373df69751e5814bef31ea3c9bdf51abe00b81dde51ef6afd212532c"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryService.Query (cyclomatic 16): QueryService.Query has cyclomatic complexity 16 (threshold 15). Of this number, 15 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":"internal/app/session/query.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86938c16bdea6cd1ff90234246880c8f96295e1aed07e286abaee52d5c23f2f"}},{"ruleId":"D1","level":"warning","message":{"text":"useSidebarResize.useSidebarResize (cyclomatic 16): useSidebarResize.useSidebarResize 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 7 function items inside it that branch (onPointerDown, onKeyDown, onPointerMove, \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":"web/src/components/layout/useSidebarResize.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd1dc6cfe07cfd804078399343361cc4b1a7c82455a01f07aaf24872c540d29"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatComposer.domPointFromTextOffset::scan (cyclomatic 16): ChatComposer.domPointFromTextOffset::scan 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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"061125e5484e87a46d669d4fa078fc181f02f50b1a60dc02183e065c54704790"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationEditors.MCPServerEditor (cyclomatic 16): IntegrationEditors.MCPServerEditor has cyclomatic complexity 16 (threshold 15). Of this number, 10 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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fff8eb1c27844a3de6bf662b9c858da965264c64cb0814f2660e7a152e22a1"}},{"ruleId":"D2","level":"warning","message":{"text":"eventview.newPrintEvent (cognitive 287): eventview.newPrintEvent has cognitive complexity 287 (threshold 15). Drivers by points: if/else 120 (251 pts), boolean chains 17, loops 9 (15 pts), match/switch 3 (4 pts) (nesting depth added 138). None of this is in the body itself: all 287 points belong to 21 function literals inside it that branch (lines 381, 238, 289, \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":"internal/adapters/transport/cli/eventview/print.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"902c6ddd62ad544ebcf24eddc366c6f680746f14e0035b0f8991f9108f141b68"}},{"ruleId":"D2","level":"warning","message":{"text":"Projector.Apply (cognitive 156): Projector.Apply has cognitive complexity 156 (threshold 15). Drivers by points: if/else 58 (132 pts), loops 6 (11 pts), boolean chains 9, match/switch 2 (4 pts) (nesting depth added 81). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/chat/presentation/projector.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3227964127e82b262b7580e7a5b839c535a4df3e00ef419ad7f5d9bd53b07c4d"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeModel.Update (cognitive 123): runtimeModel.Update has cognitive complexity 123 (threshold 15). Drivers by points: if/else 40 (106 pts), match/switch 5 (11 pts), boolean chains 6 (nesting depth added 72). 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":"internal/adapters/transport/cli/runtime/runtime_update.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d6bf764cab53dbfe05f58c9d7ae14352fb3bd89fc182da5934de44f0a98e01"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRecorder.RecordEvent (cognitive 112): HistoryRecorder.RecordEvent has cognitive complexity 112 (threshold 15). Drivers by points: if/else 38 (88 pts), boolean chains 13, loops 3 (8 pts), match/switch 2 (3 pts) (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"972cb0bc20072500a84b07a5355110b1967eaf8054206704c7bde065a29d3c4d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatComposer.ChatComposer (cognitive 107): ChatComposer.ChatComposer has cognitive complexity 107 (threshold 15). Drivers by points: if/else 42 (46 pts), ternaries 27 (37 pts), boolean chains 24 (nesting depth added 14). Of this number, 40 points are the body\u0027s own statements and 67 belong to 26 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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da41374dfb7ef4ebbc1059f020e37126cd788f3ce92551f553708771e5471ee"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillPanel.SkillPanel (cognitive 98): SkillPanel.SkillPanel has cognitive complexity 98 (threshold 15). Drivers by points: ternaries 25 (40 pts), if/else 23 (25 pts), boolean chains 20, error handling 13 (nesting depth added 17). Of this number, 19 points are the body\u0027s own statements and 79 belong to 18 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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"152f3725eb0ef1c53af47edd523b8e4be8ed4350c42219e44c13a8d4fbe17d2f"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.agentMessageToCoreMessages (cognitive 89): chat.agentMessageToCoreMessages has cognitive complexity 89 (threshold 15). Drivers by points: if/else 27 (68 pts), loops 7 (11 pts), boolean chains 8, match/switch 1 (2 pts) (nesting depth added 46). Of this number, 84 points are the body\u0027s own statements and 5 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":"internal/app/chat/input.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cc7ccf008b98775798119beb70613dd2b8d8e76c88e40411ce9ecb40870f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"memberModel.applyEvent (cognitive 79): memberModel.applyEvent has cognitive complexity 79 (threshold 15). Drivers by points: if/else 28 (65 pts), loops 2 (8 pts), boolean chains 5, match/switch 1 (nesting depth added 43). 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":"internal/adapters/transport/cli/tui/member_panel.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"207be7d0120b036d358c0d2437e8afefc6c066ad451eaff1cf988ff936c270f7"}},{"ruleId":"D2","level":"warning","message":{"text":"taskstream.RuntimeEventPayload (cognitive 79): taskstream.RuntimeEventPayload has cognitive complexity 79 (threshold 15). Drivers by points: if/else 55 (76 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/chat/taskstream/protocol.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccec82906831ca36721ce5cdf4f221f565c8e3549447382f2ee2e348be5b674d"}},{"ruleId":"D2","level":"warning","message":{"text":"GitTools.GitDiff (cognitive 73): GitTools.GitDiff has cognitive complexity 73 (threshold 15). Drivers by points: if/else 29 (58 pts), boolean chains 8, loops 4 (7 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/git/diff.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a82424b0621c305a08e3de6608950bf1ff21d16e59e7777bdc516e8861689d"}},{"ruleId":"D2","level":"warning","message":{"text":"askModel.Update (cognitive 70): askModel.Update has cognitive complexity 70 (threshold 15). Drivers by points: if/else 16 (48 pts), loops 3 (13 pts), match/switch 4 (8 pts), boolean chains 1 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/ask.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fa7bfa841a59cf0bbd7eb5839911b162b83bc9aa71ee1e524e98400faff1bf"}},{"ruleId":"D2","level":"warning","message":{"text":"eventview.formatTodoResult (cognitive 69): eventview.formatTodoResult has cognitive complexity 69 (threshold 15). Drivers by points: if/else 19 (54 pts), loops 3 (11 pts), boolean chains 3, match/switch 1 (nesting depth added 43). 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":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc95ba86177892cf915757d92d69952a03577bed271e55e65338bfb2663e99da"}},{"ruleId":"D2","level":"warning","message":{"text":"mdiff.buildHunks (cognitive 62): mdiff.buildHunks has cognitive complexity 62 (threshold 15). Drivers by points: if/else 16 (39 pts), loops 7 (13 pts), boolean chains 7, 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":"internal/runtime/mdiff/format.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"638a8b2bfb5e2b29ed08c36a50156962699623ea7207da5a877be1d97772d9a6"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.Login (cognitive 59): auth.Login has cognitive complexity 59 (threshold 15). Drivers by points: if/else 19 (48 pts), match/switch 2 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/auth/login.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3092471c44fde1fa71ce7bc5992121469b176c862f75d8c73b16f676e2a093c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Source.Prepare (cognitive 58): Source.Prepare has cognitive complexity 58 (threshold 15). Drivers by points: if/else 29 (54 pts), loops 3 (4 pts) (nesting depth added 26). Of this number, 48 points are the body\u0027s own statements and 10 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":"internal/adapters/storage/migration/source.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f31fe27fd8ed6e1b094716a0b1f82b93aea401c74387cdb09ec5de79035da9c"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_frontend_logic_check.analyzeEvents (cognitive 54): stream_frontend_logic_check.analyzeEvents has cognitive complexity 54 (threshold 15). Drivers by points: if/else 12 (31 pts), boolean chains 15, loops 3 (8 pts) (nesting depth added 24). Of this number, 53 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"939f85b2d8aec3875636ebcf79ef554eb11cdadc7a33ca3fe5731ea6c894ac0c"}},{"ruleId":"D2","level":"warning","message":{"text":"Sidebar.Sidebar (cognitive 54): Sidebar.Sidebar has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 18 (26 pts), boolean chains 14, if/else 11, error handling 3 (nesting depth added 8). Of this number, 21 points are the body\u0027s own statements and 33 belong to 11 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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dbfd946a28de633def6bfd55c078a76fcb43ef4f750a58d9357f08de9dc961"}},{"ruleId":"D2","level":"warning","message":{"text":"memory.loadMarkdownFile (cognitive 52): memory.loadMarkdownFile has cognitive complexity 52 (threshold 15). Drivers by points: if/else 23 (45 pts), loops 3 (6 pts), boolean chains 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":"internal/adapters/storage/file/memory/store.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d9482b4add91e8478f7df828930e96d567c8c5235a128bfdca188d936e8d73"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeModel.applyEvent (cognitive 52): runtimeModel.applyEvent has cognitive complexity 52 (threshold 15). Drivers by points: if/else 18 (42 pts), match/switch 3 (5 pts), boolean chains 3, loops 1 (2 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":"internal/adapters/transport/cli/runtime/runtime_events.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c192f709490e6a1ed995d305b4a86ffb86cd4f59aa17f0c24d233ab0e9696e77"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.RunQueued (cognitive 52): Service.RunQueued has cognitive complexity 52 (threshold 15). Drivers by points: if/else 29 (49 pts), boolean chains 2, loops 1 (nesting depth added 20). Of this number, 39 points are the body\u0027s own statements and 13 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":"internal/app/chat/queue.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d211ae6cb37f37bad3c68c805153207c0ff058a526ad57e095cd400c8773540"}},{"ruleId":"D2","level":"warning","message":{"text":"askModel.View (cognitive 51): askModel.View has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (45 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/ask.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d1b05a69d85fa56c0a6e113029abf42f43fb093f4c456950f1a324ef1cdc77"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecutionDependencies.prepareStorage (cognitive 49): ExecutionDependencies.prepareStorage has cognitive complexity 49 (threshold 15). Drivers by points: if/else 23 (48 pts), boolean chains 1 (nesting depth added 25). Of this number, 48 points are the body\u0027s own statements and 1 belongs 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":"internal/bootstrap/storage.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f9d8b11f00dd152e2a363d8f4a3ba91ebe39e9f3c66ce05c4af06f48a0d56a"}},{"ruleId":"D2","level":"warning","message":{"text":"mdiff.ApplyMultiFileDiff (cognitive 49): mdiff.ApplyMultiFileDiff has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 4 (12 pts), boolean chains 4 (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":"internal/runtime/mdiff/patch.go"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"453237ce0ce7868905d6e984187c45cb53d2b80c7069aa45263a89d3fccced01"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.WebSocketHandlerWithState (cognitive 48): Runtime.WebSocketHandlerWithState has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (42 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 25). None of this is in the body itself: all 48 points belong to one function literal inside it that branches (line 56). 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":"internal/adapters/transport/http/handler/websocket.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"84377b33fc4d74532aa0f95671d4d8593179a2dd3eb95bcba40ba05a731c514d"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareManagerPanel.ShareManagerPanel (cognitive 48): ShareManagerPanel.ShareManagerPanel has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16, boolean chains 15, ternaries 7 (12 pts), error handling 5 (nesting depth added 5). Most of this is not in the body itself: 2 of the 48 points are its own statements and the rest belongs to 13 function items inside it that branch (load, confirmDelete, confirmDeleteFile, \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"02881f7de8b51001e75ece27b68815e34c2d7365c7b58e26fa59bb67a03908b9"}},{"ruleId":"D2","level":"warning","message":{"text":"events.ValidateEventContract (cognitive 47): events.ValidateEventContract has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (32 pts), boolean chains 14, match/switch 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":"internal/runtime/events/protocol.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cbe21747755254e131a720559d5f007542dd8840e53607603afc1f2d78683f"}},{"ruleId":"D2","level":"warning","message":{"text":"FileManager.FileManager (cognitive 46): FileManager.FileManager has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 15 (25 pts), boolean chains 11, if/else 7 (8 pts), error handling 2 (nesting depth added 11). Of this number, 22 points are the body\u0027s own statements and 24 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":"web/src/features/files/FileManager.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbcaafd56266e77f277e453db17a4b169d7cfc34f6386ed70361eae22913c72"}},{"ruleId":"D2","level":"warning","message":{"text":"events.decodeChatEvent (cognitive 46): events.decodeChatEvent has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 14, loops 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/types/events.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e901a6d9e4f260c82c83fc6aaac0a2e73c8bce1c87e710fed339beb34d5fb4"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulePanel.SchedulePanel (cognitive 44): SchedulePanel.SchedulePanel has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 18, ternaries 7 (12 pts), if/else 9, error handling 5 (nesting depth added 5). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to 12 function items inside it that branch (saveTask, showDetail, confirmRemove, \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4232836ce4f8370bfe4168bbf918c3d97b7f39eae8541427fbb70ff650ebef8"}},{"ruleId":"D2","level":"warning","message":{"text":"Bot.Run (cognitive 41): Bot.Run has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 3 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 23). Of this number, 40 points are the body\u0027s own statements and 1 belongs 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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8eac0e7eb56819be7f6081c79b8f862e1cbd3d65ad3fb03f12dc4f7d09beb9"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRecorder.recordTranscript (cognitive 40): HistoryRecorder.recordTranscript has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (33 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0cd8b522e0bd97f03c2488a664b67c41b6839e508a76a4d32ee275e77b903e"}},{"ruleId":"D2","level":"warning","message":{"text":"stream.subscribeStream (cognitive 40): stream.subscribeStream has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (30 pts), boolean chains 4, error handling 1 (3 pts), loops 2 (3 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":"web/src/api/stream.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff3493ba18b5254a95c396828452ea63ec70d161f9e61389c29f3523402343d"}},{"ruleId":"D2","level":"warning","message":{"text":"agentkit.adaptOutputPartsFromRunner (cognitive 39): agentkit.adaptOutputPartsFromRunner has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (32 pts), loops 2 (5 pts), match/switch 1 (2 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":"internal/adapters/runtime/agentkit/message.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"843e10ac3836aceb1cb55b916eca9ee7b3997cb6dd5622495484b8a543a80457"}},{"ruleId":"D2","level":"warning","message":{"text":"Scheduler.executeTask (cognitive 39): Scheduler.executeTask has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4c44d2969dd6e98651daf26f84cca553f69011fcc5c479bedfb88d818d3d17"}},{"ruleId":"D2","level":"warning","message":{"text":"eventlog.saveMessagesToMarkdown (cognitive 39): eventlog.saveMessagesToMarkdown has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 4 (5 pts), match/switch 1 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_markdown.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afc9d46d5bd4c9abad5548c8a548353807795fb28adddb0b6f1144dd38305d2"}},{"ruleId":"D2","level":"warning","message":{"text":"migration.validateBackup (cognitive 39): migration.validateBackup has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (28 pts), boolean chains 5, match/switch 2 (5 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/migration/validate.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e084b4e37d51e6fa52c13e3a255d76d0eed5b1501efe9b2d133232c6bd9bca44"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.switchModel (cognitive 39): commands.switchModel has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (32 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/commands/model.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"245f6ee24dcf4fcdfc4732daa6471c474dc6ab0d1ed5baefbddbb0e92d1fd48f"}},{"ruleId":"D2","level":"warning","message":{"text":"eventview.NewMarkdownCollector (cognitive 39): eventview.NewMarkdownCollector has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (nesting depth added 20). None of this is in the body itself: all 39 points belong to 3 function literals inside it that branch (lines 29, 22, 94). 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":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e81a8bb0f77bd96e91be6349826fcc82112039e60970f45c0a89edb35bf38b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.UploadChunkHandler (cognitive 39): Runtime.UploadChunkHandler has cognitive complexity 39 (threshold 15). Drivers by points: if/else 31 (32 pts), boolean chains 7 (nesting depth added 1). None of this is in the body itself: all 39 points belong to one function literal inside it that branches (line 964). 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cb5f79fb9f648bc2814a268f39fabe919dd0d8fe97784cd51b126a9b175423"}},{"ruleId":"D2","level":"warning","message":{"text":"mdiff.applyHunksForward (cognitive 39): mdiff.applyHunksForward has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 5 (8 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/mdiff/patch.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"7410acb97e818d9c7bf56c948f04b927ae6241599774616515fae6ae4d91cb3f"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrationGate.MigrationGate (cognitive 39): MigrationGate.MigrationGate has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 20, if/else 8 (10 pts), ternaries 5 (7 pts), error handling 2 (nesting depth added 4). Of this number, 25 points are the body\u0027s own statements and 14 belong to 3 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":"web/src/features/migration/MigrationGate.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8562da0f32c997fcfd715aa957ceac09ba580bfa7d16265b476db1a25b808a9"}},{"ruleId":"D2","level":"warning","message":{"text":"GitTools.GitConfig (cognitive 38): GitTools.GitConfig has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (28 pts), match/switch 3 (5 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/git/config.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ab36343edbdec82e5a75437656b94941acd69042b9c08142042ffd9acb4137"}},{"ruleId":"D2","level":"warning","message":{"text":"TodoTools.TodoUpdate (cognitive 38): TodoTools.TodoUpdate has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (34 pts), boolean chains 3, 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":"internal/adapters/tools/builtin/todo/func.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5f906fdda7200317efd46bc1edfc979a20b88f12dd208e5ae42ea8b940d8fd"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.runChat (cognitive 38): commands.runChat has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29 (34 pts), boolean chains 4 (nesting depth added 5). Of this number, 20 points are the body\u0027s own statements and 18 belong to 5 function literals 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":"internal/adapters/transport/cli/commands/chat.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ce482b34567734781476fca77cb7f5187954b360b322f73218e55cfbc7709f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigFields.ToolSelectField (cognitive 38): ConfigFields.ToolSelectField has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 15 (28 pts), boolean chains 7, if/else 3 (nesting depth added 13). Most of this is not in the body itself: 8 of the 38 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 216, a function literal at line 173, a function literal at line 135, \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":"web/src/features/config/ConfigFields.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a322fdd9406062bc742c05a5189b407c084c779ff5de0ec6185929c6c0d9fae"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePage.SharePage (cognitive 38): SharePage.SharePage has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 9 (21 pts), if/else 7 (11 pts), boolean chains 4, error handling 2 (nesting depth added 16). Of this number, 22 points are the body\u0027s own statements and 16 belong to 5 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":"web/src/features/share/SharePage.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dc7d566688ce63cf4a308e469b6a497404cbdf1296baec64b5b84fc34f0d14"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.save (cognitive 37): Store.save has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (29 pts), boolean chains 6, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/queue/store.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9e6b7c1ab569602641f459d7d7747a14132e29c7c10160e1264cc4f3f91c30"}},{"ruleId":"D2","level":"warning","message":{"text":"Database.Import (cognitive 37): Database.Import has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (33 pts), loops 4 (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":"internal/adapters/storage/sqlite/migration.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a50b195136fe6b9e4d15fa48ef1e35907ad053bc5044e1dd0972045b6ba718"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryExecutor.Execute (cognitive 37): QueryExecutor.Execute has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (33 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 16). Of this number, 17 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":"internal/adapters/transport/cli/runtime/query.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd071261f4ed17d6be06e080600afedef22d509e9bcfb8ed478b63379563e20"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEditors.AgentDraftDialog (cognitive 37): AgentEditors.AgentDraftDialog has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 10 (15 pts), boolean chains 14, if/else 5 (6 pts), error handling 2 (nesting depth added 6). Most of this is not in the body itself: 10 of the 37 points are its own statements and the rest belongs to 7 function items inside it that branch (generate, a function literal at line 755, a function literal at line 733, \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"808c395e5bd9eb855b1274afee89c165f5b9a577827c7bc1e488108279b89cd9"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationEditors.JavaScriptTab (cognitive 37): IntegrationEditors.JavaScriptTab has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 21, ternaries 7 (9 pts), if/else 6 (7 pts) (nesting depth added 3). Most of this is not in the body itself: 11 of the 37 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 197, a function literal at line 152, a function literal at line 174, \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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c337eb03819840b620143c4a04cad183911668f98d9e111c7fae75be98f127b"}},{"ruleId":"D2","level":"warning","message":{"text":"queue.cleanupQueueAttachmentDirs (cognitive 36): queue.cleanupQueueAttachmentDirs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/queue/store.go"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cff7395cf70bcf042d1d3d32e6bf55245afbd8bf29a31c6acdfa6da3a8ecfe"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.collectPreviewPaths (cognitive 36): handler.collectPreviewPaths has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 2, boolean chains 1 (nesting depth added 18). Of this number, 16 points are the body\u0027s own statements and 20 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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"438860350b6d40c399ccef81f6e285421f99d91a07e9e17b4a407454344c927d"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskStreamController.followTaskStream (cognitive 36): TaskStreamController.followTaskStream has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 9, error handling 1 (2 pts), loops 1 (nesting depth added 13). Of this number, 28 points are the body\u0027s own statements and 8 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":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1866f3607b7c8aad3ae1bd05ba4be29fc1d9b0e757aa4a9cd8b58a6e58db0961"}},{"ruleId":"D2","level":"warning","message":{"text":"eventview.formatSSHResult (cognitive 35): eventview.formatSSHResult has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 2 (6 pts), boolean chains 4, match/switch 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":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e64ca7330cb6ce38a5fe90fae01d26930aeecca6903d5457e4e937543142de1"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.OpenAIChatCompletionsHandler (cognitive 35): handler.OpenAIChatCompletionsHandler has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (27 pts), loops 4 (8 pts) (nesting depth added 11). None of this is in the body itself: all 35 points belong to one function literal inside it that branches (line 53). 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":"internal/adapters/transport/http/handler/openai_api.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a3e372f1e07557abc24feeef91de6a7c20fd2fc266a671965e33a06c12ae49"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.SaveEntry (cognitive 35): Manager.SaveEntry has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 12, loops 3 (nesting depth added 7). Of this number, 34 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":"internal/app/memory/editor.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d30b6e045b7f2ee5bed7c8c66027abbdda879fff11255d40b57c8d1e64fd11"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.Save (cognitive 35): Service.Save has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 13, 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":"internal/app/task/service.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4024925787c0c20252f625b3930e4809f70eb268a1842fd7ae232f3bfd69856c"}},{"ruleId":"D2","level":"warning","message":{"text":"eventlog.loadTranscriptRecords (cognitive 34): eventlog.loadTranscriptRecords has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 2, loops 1 (nesting depth added 16). 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":"internal/adapters/storage/file/history/transcript.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2bdc3ff63b9da6d25332c5563f9ca105d1114bbc3283b11b3a54a468e66444"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_frontend_logic_check.memberRenderParts (cognitive 34): stream_frontend_logic_check.memberRenderParts has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (27 pts), boolean chains 6, loops 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"938b936a42a86ffd44900b03e4ac6a78458936436c3fca1d38dda1996a99b855"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPage.QuestionNavigator (cognitive 34): ChatPage.QuestionNavigator has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 9 (14 pts), boolean chains 10, if/else 7 (9 pts), loops 1 (nesting depth added 7). Most of this is not in the body itself: 15 of the 34 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 162, 187, 272, \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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c58af821d5e544bf6ec98de744d37e7e167fabba5d11eb5f6bffd5c6bfff3b"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionRunner.runShard (cognitive 33): sessionRunner.runShard has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 2, match/switch 1 (2 pts), loops 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":"internal/adapters/transport/channel/qq/session.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3789599201d6aabb02b76e62f3dfc3a8462f82e94db7a1a4e8357985e8cda40"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.UploadFileHandler (cognitive 33): handler.UploadFileHandler has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 3, loops 3 (nesting depth added 9). None of this is in the body itself: all 33 points belong to one function literal inside it that branches (line 632). 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"65088f96ba39d625764162f87ae94194803b3310f2f2d34ebe5157cc2ce7b682"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillPanel.SkillDetail (cognitive 33): SkillPanel.SkillDetail has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 17 (28 pts), boolean chains 4, if/else 1 (nesting depth added 11). Of this number, 22 points are the body\u0027s own statements and 11 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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"19faa4fef776705f7e130a18ef7408430da65def5f808cefefeedded97a3dc8d"}},{"ruleId":"D2","level":"warning","message":{"text":"skill.searchSkills (cognitive 32): skill.searchSkills has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 2 (3 pts), boolean chains 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":"internal/adapters/transport/cli/commands/skill/search.go"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c1be5f0fde9aaad72b539d3d5734a176391e74ad305ee441f06d2a5011fea7"}},{"ruleId":"D2","level":"warning","message":{"text":"interactionRecorder.interruptHandler (cognitive 32): interactionRecorder.interruptHandler has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 4, loops 2 (nesting depth added 12). 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 121). 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":"internal/app/chat/interactions.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"089a2408ce9ec5fc8a2d3a313dc2f0ff0ec31a0661aa278f1d886bff4e743004"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.ValidateJavaScript (cognitive 32): Config.ValidateJavaScript has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/config/config.go"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2459985947db7d7dd1c23c2ab044f030150be93e60265cd41fdff565b60f509"}},{"ruleId":"D2","level":"warning","message":{"text":"agentkit.NewDeepAgent (cognitive 31): agentkit.NewDeepAgent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (24 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). Of this number, 22 points are the body\u0027s own statements and 9 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":"internal/adapters/runtime/agentkit/deep.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dbb42580f8f18f14c6d2a970ebf14355ef7a648f61ec39edecebd0d0a21b04"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.computeToolArgsSummary (cognitive 31): tui.computeToolArgsSummary has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 4 (8 pts) (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":"internal/adapters/transport/cli/tui/panel_render.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68e1404b34feadb83b763bf7c6d155ab9e003b87bf0659ebc77237ce4bd12e1"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.DeleteFileHandler (cognitive 31): handler.DeleteFileHandler has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 2 (nesting depth added 12). None of this is in the body itself: all 31 points belong to one function literal inside it that branches (line 1557). 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9285b41beb08af437cca51e7bd12f6f262485155b47c40e977b8e9b59f84db03"}},{"ruleId":"D2","level":"warning","message":{"text":"OutputLayout.Complete (cognitive 31): OutputLayout.Complete has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 6 (10 pts), boolean chains 4 (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":"internal/domain/message/output.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7292c1ce5046306a61eadfc562e65e8989709a746870d0b8e6f25181247e7ece"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryPanel.MemoryPanel (cognitive 31): MemoryPanel.MemoryPanel has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 18, ternaries 3 (6 pts), if/else 5, error handling 2 (nesting depth added 3). Most of this is not in the body itself: 13 of the 31 points are its own statements and the rest belongs to 7 function items inside it that branch (remove, a function literal at line 60, save, \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":"web/src/features/memory/MemoryPanel.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d7470f466da9895f5daa9a6f4bc6d0e6c88e032e8c8393abf7a78bd5b08aa7"}},{"ruleId":"D2","level":"warning","message":{"text":"autocontinue.repairJSON (cognitive 30): autocontinue.repairJSON has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), match/switch 3 (7 pts), boolean chains 4, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/autocontinue/repair.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1852fa783f0fce105dd8bba026c9b70934e82dfc5ac1744106a85ec949784308"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner.Run (cognitive 30): Runner.Run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 3 (6 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":"internal/adapters/runtime/agentkit/runner.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"255cc2f66a2e4e5ef95c3dd10922fbc6de9eb0a6ac36089ecfa522c22c220354"}},{"ruleId":"D2","level":"warning","message":{"text":"Bridge.sessionWorker (cognitive 30): Bridge.sessionWorker has cognitive complexity 30 (threshold 15). Drivers by points: if/else 4 (13 pts), match/switch 3 (8 pts), loops 3 (6 pts), jumps 3 (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":"internal/adapters/transport/channel/bridge.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf813f7cc4c460b0a52fd4dff2d007fa1c222bf35914453da06f514eed25b6b6"}},{"ruleId":"D2","level":"warning","message":{"text":"eventview.formatSchedulerResult (cognitive 30): eventview.formatSchedulerResult has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), match/switch 2 (5 pts), loops 1 (3 pts) (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":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c387ccc398c7b8d0dfb0d073597261e9924e8561a9a10795aba9f5442565f44"}},{"ruleId":"D2","level":"warning","message":{"text":"Updater.Apply (cognitive 30): Updater.Apply has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 10 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"internal/adapters/transport/cli/update/update.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c313fc46dd05a30fcb10cd59f98cabedddb0cb53b74e05ed3f543e748c96ec"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.StreamSubscribeHandler (cognitive 30): Runtime.StreamSubscribeHandler has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 3 (4 pts), match/switch 1 (2 pts) (nesting depth added 13). None of this is in the body itself: all 30 points belong to one function literal inside it that branches (line 506). 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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c3c9005e6b8859862baf9a864c116e3f7cdb78393e16bad8aecbec8de851db"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.Execute (cognitive 30): Service.Execute has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 7, match/switch 2, loops 1 (nesting depth added 4). Of this number, 28 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/process/service.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb044b5025edf32b4871bdd788dc456c95989ab0545b9fb17f6c62b743b43ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageList.AskPanel (cognitive 30): MessageList.AskPanel has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 11 (16 pts), boolean chains 10, if/else 3, error handling 1 (nesting depth added 5). Most of this is not in the body itself: 10 of the 30 points are its own statements and the rest belongs to 4 function items inside it that branch (submit, a function literal at line 1153, a function literal at line 1112, \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":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f16dfd58fbb6703682b44022f357650b725e4dda7eec40437df8fb863b44a2"}},{"ruleId":"D2","level":"warning","message":{"text":"autocontinue.trimTrailingJSONGarbage (cognitive 29): autocontinue.trimTrailingJSONGarbage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 7, loops 3 (6 pts), match/switch 1 (2 pts) (nesting depth added 12). 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":"internal/adapters/runtime/agentkit/middlewares/autocontinue/repair.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b9b50df4ef4345fa775253ad3d333e97e7dd11a56557fed47c290d45d92557"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBackend.GrepRaw (cognitive 29): LocalBackend.GrepRaw has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21 (25 pts), boolean chains 3, loops 1 (nesting depth added 4). Most of this is not in the body itself: 11 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 201). 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":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1f456829773705b5a62dbd38d894dc8c21ca3a080e397233281b15fc4b8a47"}},{"ruleId":"D2","level":"warning","message":{"text":"excel.readSheetRows (cognitive 29): excel.readSheetRows has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (26 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":"internal/adapters/tools/builtin/excel/data.go"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"d778f12eeeab02e4f70b80eebd9aafeb2bfc6cea1a5d7216b078fcd892bf5340"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.assistantMemberTools (cognitive 29): agent.assistantMemberTools has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (25 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":"internal/app/agent/assistant.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"94db75f63d23c722f290831f4bf8a63655fac3f5d5a3b1e4d5be3bfc8e6965b5"}},{"ruleId":"D2","level":"warning","message":{"text":"mdiff.Diff (cognitive 29): mdiff.Diff has cognitive complexity 29 (threshold 15). Drivers by points: loops 9 (14 pts), if/else 8, boolean chains 4, match/switch 1 (3 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/mdiff/diff.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb9ed4dfceaf8cfdcf02ad70ea74fba6518bab1a99c9613f1065ba733ce1687"}},{"ruleId":"D2","level":"warning","message":{"text":"mdiff.applyOneHunk (cognitive 29): mdiff.applyOneHunk has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 4, 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":"internal/runtime/mdiff/patch.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6ca48a85af6eb71387615666bc10f53be08e4aa5a73b929818d0f82ae58cfb"}},{"ruleId":"D2","level":"warning","message":{"text":"AssistantUIContent.InteractiveBlock (cognitive 29): AssistantUIContent.InteractiveBlock has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 11, ternaries 7 (9 pts), if/else 7 (8 pts), error handling 1 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 14 belong to 5 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":"web/src/features/chat/openui/AssistantUIContent.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8624e8066d81c914044eb0c76503bf6fa4f96d88207ef1a6d5c25e60efcab840"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewPage.PreviewPage (cognitive 29): PreviewPage.PreviewPage has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 9 (13 pts), boolean chains 9, if/else 6, error handling 1 (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 12 belong to 5 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":"web/src/features/preview/PreviewPage.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"59dff84117015eb9c0ed7e2e7b846fdd45a2a4728a4fc166f2ed85ad23f668ff"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.Load (cognitive 28): Store.Load has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (26 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":"internal/adapters/storage/file/queue/store.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5e9aeb4d643b7390d8af59429290a93d624d56cc2b22a76b8bd51d6c6581f4"}},{"ruleId":"D2","level":"warning","message":{"text":"FileTools.Grep (cognitive 28): FileTools.Grep has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 1 (nesting depth added 8). Of this number, 14 points are the body\u0027s own statements and 14 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":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e474892091c775b384848e805233e1c39e3688c026ac2e6ccbd1115d5867eda"}},{"ruleId":"D2","level":"warning","message":{"text":"Channel.Start (cognitive 28): Channel.Start has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 3 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 9 belong to 2 function literals 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":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b8c7b06fb803331099d993c1a7d7cc61480eb5868930632567069e707c7832"}},{"ruleId":"D2","level":"warning","message":{"text":"Stream.SubmitInterruptWithID (cognitive 28): Stream.SubmitInterruptWithID has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, loops 1 (3 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":"internal/app/chat/taskstream/stream.go"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc7f6f2726e59e33a8b5575b578260913a8ef6c5f0da4bdaf5bd2881111c6b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Bus.Invoke (cognitive 28): Bus.Invoke has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/hooks/bus.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcce621f54331fe0eceaee407a49256d0573b1c9aae2905ae90cd71cfc6f2001"}},{"ruleId":"D2","level":"warning","message":{"text":"eventlog.projectTranscriptEvents (cognitive 27): eventlog.projectTranscriptEvents has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 9). Of this number, 20 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_persist.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7eee18b79e9488f327a486de0d78b4309c4d0baec15432ae254f066d4e1dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"Tools.snapshot (cognitive 27): Tools.snapshot has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 4, loops 1 (3 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/doc/func.go"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d2e8ec844dc9e9f1573b2416c18e7bada813ebce9cea9be6c4e61dadf56784"}},{"ruleId":"D2","level":"warning","message":{"text":"FileTools.grepFile (cognitive 27): FileTools.grepFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (7 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":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"997d3b57d72e115e805d71765dffaca126c5e314d9dfdaa4d55d5bd8e4e1e002"}},{"ruleId":"D2","level":"warning","message":{"text":"GitTools.GitRemote (cognitive 27): GitTools.GitRemote has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 1 (2 pts), boolean chains 1, match/switch 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":"internal/adapters/tools/builtin/git/remote.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"237a47a6da5a4159a00c649806de9c6d10d0dc3d8ccb2b99a3c92eee76a9f398"}},{"ruleId":"D2","level":"warning","message":{"text":"replyCollector.handleEvent (cognitive 27): replyCollector.handleEvent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (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":"internal/adapters/transport/channel/bridge.go"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6296dfc8573ab2b6c5cf882552b4ed8b791f04968ca3ac05b9403c861c43b17"}},{"ruleId":"D2","level":"warning","message":{"text":"update.unzipWithLimits (cognitive 27): update.unzipWithLimits has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb084a37d65edd00978d53c47c9b2f9cf3ff5362e45612dc548600e016c3a6fd"}},{"ruleId":"D2","level":"warning","message":{"text":"common.resolveMiddlewares (cognitive 27): common.resolveMiddlewares has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 3 (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":"internal/app/agent/catalog/common/definition.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a6351fc20a58cf83c473903074b543de63085ad0988b45964ae914c2305606"}},{"ruleId":"D2","level":"warning","message":{"text":"Projector.closeRun (cognitive 27): Projector.closeRun has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 7, loops 5 (7 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":"internal/app/chat/presentation/projector.go"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f729618564b7d0628937f808c0baa302a5456030e70aee1eb74c6ae3645f5da"}},{"ruleId":"D2","level":"warning","message":{"text":"mdiff.parseHunk (cognitive 27): mdiff.parseHunk has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, 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":"internal/runtime/mdiff/parse.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9f5362a558f8f5b5809116bc5911156beb20ab3b07599746557d5796591735"}},{"ruleId":"D2","level":"warning","message":{"text":"select.Select::handleKeyDown (cognitive 27): select.Select::handleKeyDown has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4 (11 pts), boolean chains 3, 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":"web/src/components/ui/select.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2d817aceea1abda907306890bc3a8fc51ba8dcc2bc62f5e237b3dd1b25d312"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatComposer.ReferenceMenu (cognitive 27): ChatComposer.ReferenceMenu has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 10 (18 pts), boolean chains 6, if/else 3 (nesting depth added 8). Most of this is not in the body itself: 11 of the 27 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 617, 663, 643). 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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e8425f486967802928e81a2792eea3eafb53c1da9ba35e10b6c81559c030a2"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBackend.applyContext (cognitive 26): LocalBackend.applyContext has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 4 (7 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":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"156bd41b1f59a231515c579e804a05ff455836b0c3f7b59b6cee460eec4686a2"}},{"ruleId":"D2","level":"warning","message":{"text":"Bot.sendContent (cognitive 26): Bot.sendContent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (26 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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"5987611ade1fdcb091ebb020292ddc3cb35fe2020155a194aab39ee4a1a6dfc4"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.saveProviderConfig (cognitive 26): commands.saveProviderConfig has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/commands/login.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4ec6077ecb8fb15daf48a4be34a8793b0616325f1c5747a22386aedbc6e4aa"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeModel.handleSubmit (cognitive 26): runtimeModel.handleSubmit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (24 pts), 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":"internal/adapters/transport/cli/runtime/runtime_input.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"03756f6cdff782e608e1920feff769220b3da765655db7a8d5e9fd6aa94334e1"}},{"ruleId":"D2","level":"warning","message":{"text":"deep.NewAgent (cognitive 26): deep.NewAgent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (25 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":"internal/app/agent/catalog/deep/deep.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"015ca80115548113f5365103ad5fb0ffeb3d20de083fe78b0de54d561a5f3751"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_frontend_logic_check.subscribeStream (cognitive 26): stream_frontend_logic_check.subscribeStream has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e0bef3ad11f5504445f41034650980e548930602e4f438d2e5b1fd88e37f95"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_frontend_logic_check.completedMemberCallIDs (cognitive 26): stream_frontend_logic_check.completedMemberCallIDs has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (12 pts), if/else 4 (9 pts), boolean chains 5 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc853a215a2ed76fb7a09192fee36a4eef925e71f2a0a2e69075dd647ccc4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskStreamController.monitorTaskStream (cognitive 26): TaskStreamController.monitorTaskStream has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (nesting depth added 10). Of this number, 21 points are the body\u0027s own statements and 5 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":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"757624b14ddc60972c1608f74506a2667d1715608e6015c14d0f93fe29c63735"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEditors.AgentsTab (cognitive 26): AgentEditors.AgentsTab has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 21, ternaries 4, loops 1. Most of this is not in the body itself: 4 of the 26 points are its own statements and the rest belongs to 9 function items inside it that branch (buildAgentsDraft, a function literal at line 382, a function literal at line 343, \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"801b9e388dfa4de40f1698cb9c96277858ebd4d785b5a7f2c2f974990de06dec"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPanel.ConfigPanel (cognitive 26): ConfigPanel.ConfigPanel has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 15 (17 pts), boolean chains 5, if/else 3, error handling 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 11 belong to 6 function items inside it that branch. To reduce it, 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":"web/src/features/config/ConfigPanel.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce33d2274e2e48ddc6c2942ddeb240370d536b03549df5388ee90f431c8cf45"}},{"ruleId":"D2","level":"warning","message":{"text":"agentkit.AdaptToolsForRunner (cognitive 25): agentkit.AdaptToolsForRunner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/tool.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"75edc4c0ff2c626bc45dc8d33b2fcc7d7085566b34950a3ec88cb8f5a361bee8"}},{"ruleId":"D2","level":"warning","message":{"text":"autocontinue.countRecentContinues (cognitive 25): autocontinue.countRecentContinues has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (4 pts), boolean chains 3 (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":"internal/adapters/runtime/agentkit/middlewares/autocontinue/autocontinue.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d457d04a237b4b1ec8329274c29ccde4eb2e7a2bb78428ca53f04b12b1d0775b"}},{"ruleId":"D2","level":"warning","message":{"text":"Scheduler.checkAndExecute (cognitive 25): Scheduler.checkAndExecute has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc56f92536747b9726cfce31167d0447b28d63bea77b097e791a967011e2f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeModel.appendHistoryMessage (cognitive 25): runtimeModel.appendHistoryMessage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 1 (2 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":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"763fec1a511d8285bedaa7cfb20da028d5acc3f110489265d2888ce42794e138"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.StreamStartHandlerWithState (cognitive 25): Runtime.StreamStartHandlerWithState has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 3 (nesting depth added 3). None of this is in the body itself: all 25 points belong to one function literal inside it that branches (line 38). 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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca57fc5622187f9cdab6c4917150e76dc43ab2e5ce3a31769743405b77a9df68"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptEvent.RuntimeEvent (cognitive 25): TranscriptEvent.RuntimeEvent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 1 (3 pts), match/switch 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":"internal/domain/history/runtime.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"86904aa8820a72ba510f71bfbb3bd9843469aba4fe9d4f85c8d1efd1cc2bade7"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyedLocks.acquire (cognitive 25): KeyedLocks.acquire has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 7). Of this number, 22 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":"internal/runtime/resources/locks.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9d796ad86098861516335257f9b3506046895ccfea14699cafae74327af922"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_frontend_logic_check.analyzeMemberCompletedText (cognitive 25): stream_frontend_logic_check.analyzeMemberCompletedText has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 7, loops 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be15fd69eac14a63e8c4db27854ab8c92794f5b977e3ea5b20e8c203b93e414"}},{"ruleId":"D2","level":"warning","message":{"text":"sendMessage.sendChatMessage.\u003Creturned closure\u003E (cognitive 25): sendMessage.sendChatMessage.\u003Creturned closure\u003E has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 4 (6 pts), boolean chains 4, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/sendMessage.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb6e303ec6b96e2c954c9d1f90a6574090c19bd22e2b78e329af57ec7e27e81"}},{"ruleId":"D2","level":"warning","message":{"text":"copilotTransport.RoundTrip (cognitive 24): copilotTransport.RoundTrip has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 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":"internal/adapters/model/providers/copilot/copilot.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"73944bb7ef6e3e740837c792e2790940834f62eca301d05af0b0ad5ca62323a5"}},{"ruleId":"D2","level":"warning","message":{"text":"BunTools.ListPackage (cognitive 24): BunTools.ListPackage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 8). Of this number, 23 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":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfe8bac0f31cee644d1ba5ead8689a8e2bd6995c39c18058d570e3c1bc61d10"}},{"ruleId":"D2","level":"warning","message":{"text":"skill.unzipSkill (cognitive 24): skill.unzipSkill has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 2, 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":"internal/app/skill/install.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3068ca2c1f58bb7be487e79832638055ddcd53f33accc726cad57dbb87be9c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionShareDialog.SessionShareDialog (cognitive 24): SessionShareDialog.SessionShareDialog has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 9 (13 pts), if/else 5, boolean chains 4, error handling 2 (nesting depth added 4). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to 5 function items inside it that branch (createShare, copyShareURL, a function literal at line 93, \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":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7e2204b288009e8209229e9b78d4dcda75bb68ceb0f91eb9b88ef211274d0b"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskStreamController.TaskStreamController (cognitive 24): TaskStreamController.TaskStreamController has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (5 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 10). None of this is in the body itself: all 24 points belong to 4 function literals inside it that branch (lines 36, 67, 71, \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":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"655c49026d93e4a770b509435e6862fb2a1e2e8e6fa64260343148fc1b53b21e"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationEditors.JavaScriptAIDialog (cognitive 24): IntegrationEditors.JavaScriptAIDialog has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 13 (16 pts), boolean chains 3, if/else 3, error handling 2 (nesting depth added 3). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 2 function items inside it that branch (generate, a function literal at line 572). 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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f594e69016c4c924a6eeb29b8db5dac0a8c28b1a7a19a82fb31a054099b379"}},{"ruleId":"D2","level":"warning","message":{"text":"autocontinue.afterChatModel (cognitive 23): autocontinue.afterChatModel has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 1 (2 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":"internal/adapters/runtime/agentkit/middlewares/autocontinue/autocontinue.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cf00fe8002d1a9442dc1090d04374b8f205e05461888525ceae988661e4941"}},{"ruleId":"D2","level":"warning","message":{"text":"modelObservation.chunk (cognitive 23): modelObservation.chunk has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (22 pts), loops 1 (nesting depth added 7). Of this number, 18 points are the body\u0027s own statements and 5 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":"internal/adapters/runtime/agentkit/model_events.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3e8ae5b6bf996df7b06ac5a7db402bdb5d40b9d9f26db20f754fa4e901f294"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner.execute (cognitive 23): Runner.execute has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 8). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/runner.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af60ffba475bea525399ba733ae535d26118f6ed61e97a987612d5e378fd807"}},{"ruleId":"D2","level":"warning","message":{"text":"filecron.NewScheduler (cognitive 23): filecron.NewScheduler has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (23 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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6174201dd5360d0616bb06aea15cc1575bb89928f416c1dbb46e96f0bed9e4dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Scheduler.ListHistoryEntries (cognitive 23): Scheduler.ListHistoryEntries has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4, loops 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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ff160803bcf2e159486d0fe8e4c8761f473d3e853aba0675879a45110e5aef"}},{"ruleId":"D2","level":"warning","message":{"text":"Channel.messageCreate (cognitive 23): Channel.messageCreate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"7680f6af5569124f259fd8776d967c035d3e9b8ea5dd9f02a8d7613c5663801f"}},{"ruleId":"D2","level":"warning","message":{"text":"eventview.formatCommandResult (cognitive 23): eventview.formatCommandResult has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 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":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"44463b47530bac7ca267c029ce5e5b91ea81b3c7ff5d3a5c586ecc8f94d9a2fa"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.markdownTableColumnWidths (cognitive 23): tui.markdownTableColumnWidths has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 6 (7 pts) (nesting depth added 7). Of this number, 18 points are the body\u0027s own statements and 5 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":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e604348f356719f40daba2629e897aa954873697cb8e92d1f1737657b87cac"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.enrichAgentDraftRequest (cognitive 23): handler.enrichAgentDraftRequest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (4 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":"internal/adapters/transport/http/handler/aiassist.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa56101e27b0ee5638410aa4ed157551c738f79bdde7f52d7d9f519ec4ee32e"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.UpdateConfigHandlerWithState (cognitive 23): Runtime.UpdateConfigHandlerWithState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 1 (nesting depth added 1). None of this is in the body itself: all 23 points belong to one function literal inside it that branches (line 81). 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":"internal/adapters/transport/http/handler/config.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a6f97b4e28f113f2043bac1e4a8ca6d757ef35c58b4ca0b2ae51a623a9f655"}},{"ruleId":"D2","level":"warning","message":{"text":"tools.RegisterWithProcesses (cognitive 23): tools.RegisterWithProcesses has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (20 pts), loops 2, boolean chains 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 23 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 335, 297, 116, \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":"internal/bootstrap/tools/tools.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e29d19099ac743e9367fcb6f7043b16c82f5174f805a84d42c4f0094bfbd45"}},{"ruleId":"D2","level":"warning","message":{"text":"dispatchModel.handleKey (cognitive 22): dispatchModel.handleKey has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), 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":"internal/adapters/runtime/agentkit/middlewares/dispatch/view.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35903150ddaa888ae0a70b4bd3c7456935ebb4a155c3ee22bc4ed9a899ea3c6"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeModel.renderBottom (cognitive 22): runtimeModel.renderBottom has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 1 (nesting depth added 6). Of this number, 18 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":"internal/adapters/transport/cli/runtime/runtime_render.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"7901dd96699e1298bd63eeae9a8980295f0716e5d7672b6707922c7c76d90b6d"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.splitMarkdownSegments (cognitive 22): tui.splitMarkdownSegments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 11). Of this number, 21 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":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4064d1650405b60111db6cb21c8c9df3b67b7a114e7d5360b4d2c29084e21122"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCallCard.ToolCallCard (cognitive 22): ToolCallCard.ToolCallCard has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, ternaries 8 (11 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ToolCallCard.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b3aff6afad3fe44c58cbd47f2da8a7c4c093619e3decc8004760f67d01ba9f"}},{"ruleId":"D2","level":"warning","message":{"text":"FileShareDialog.FileShareDialog (cognitive 22): FileShareDialog.FileShareDialog has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9 (13 pts), if/else 5, boolean chains 2, error handling 2 (nesting depth added 4). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (createShare, copyPreviewURL, a function literal at line 84, \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":"web/src/features/files/FileShareDialog.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9667f9fc98fc1c52576bb7415d51d3d2b681f019924eb5893dbdf12e09bc60"}},{"ruleId":"D2","level":"warning","message":{"text":"presentation.applyPresentationUpdate (cognitive 22): presentation.applyPresentationUpdate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (5 pts), boolean chains 4, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/types/presentation.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a68865cf561e8ca27aa2f35657e0a151ee3b1620e27fe8de75a2177135c2fe1"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionMessageReader.LoadSessionMessages (cognitive 21): SessionMessageReader.LoadSessionMessages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (7 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":"internal/adapters/storage/file/history/session_reader.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c43177ee37071be6fc127bfe3b3490133091a0ac385983bb924a58289765f68"}},{"ruleId":"D2","level":"warning","message":{"text":"UVTools.RunScript (cognitive 21): UVTools.RunScript has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (21 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":"internal/adapters/tools/builtin/script/uv/func.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f183f0f118a5ef1114a76c289aa3b90272ded326a61daeed17ca68a1f77bfaa"}},{"ruleId":"D2","level":"warning","message":{"text":"UVTools.CheckSyntax (cognitive 21): UVTools.CheckSyntax has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (19 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":"internal/adapters/tools/builtin/script/uv/func.go"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e03d4aa4770b68fd6ffc90be50c8a431ca2beb97a2dd7cb83c2ecd84e9568c"}},{"ruleId":"D2","level":"warning","message":{"text":"wechatbot.extractText (cognitive 21): wechatbot.extractText has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, 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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1ec0d4c5193051cab6bc4080b60a9c1fcf80f769b88bb21be7c0cf2942c7b6"}},{"ruleId":"D2","level":"warning","message":{"text":"eventview.formatFileOpResult (cognitive 21): eventview.formatFileOpResult has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (4 pts) (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":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20ffbf7f178db39dfc7904b85e637f67ea4af6d6604b090702f44b6cabd4435"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.previewJSONValue (cognitive 21): tui.previewJSONValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 13). 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":"internal/adapters/transport/cli/tui/runtime_widgets.go"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc5bea04c2d8ae00863c2bd1e4d02ecf56c76107f77eaed2f6b455e42310193"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.restoreModelSecrets (cognitive 21): handler.restoreModelSecrets has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 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":"internal/adapters/transport/http/handler/config.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8908bf5ac8bcaed10823c7136452586c0eec3d1bcbd92903e383cb37669226e"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.sessionShareTranscript (cognitive 21): handler.sessionShareTranscript has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 4 (8 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":"internal/adapters/transport/http/handler/session_share.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8410303f66ddaacd6290cb7539ab2835bbcc50071f950bf6f757bb9b7ebf8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.logMessages (cognitive 21): chat.logMessages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (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":"internal/app/chat/input.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a1ea606f7304365cbc7d71179f87707c85706a6be2057494bd8929354f233f"}},{"ruleId":"D2","level":"warning","message":{"text":"pathguard.ResolveWorkspace (cognitive 21): pathguard.ResolveWorkspace has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pathguard/pathguard.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce5d4db1bcd8b13d53f5a3362ccfa4501d16bf043964d8ce98aa3132bf9a3d3"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.splitUIMessage (cognitive 21): protocol.splitUIMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, 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":"web/src/features/chat/openui/protocol.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77224ae97d2b800a4c661c7a59d263c89392edf6c7fef6984234e63041e513f"}},{"ruleId":"D2","level":"warning","message":{"text":"configModel.normalizeConfig (cognitive 21): configModel.normalizeConfig has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 21. 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":"web/src/features/config/configModel.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7119d7b43f4a409bcf5bae29814c7891d11dbe8a7b0f041e645a27f2e9751a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigEditor.ConfigEditingProvider (cognitive 21): ConfigEditor.ConfigEditingProvider has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8, ternaries 4 (6 pts), boolean chains 5, error handling 2 (nesting depth added 2). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 6 function items inside it that branch (confirmRemove, confirm, begin, \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":"web/src/features/config/ConfigEditor.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"242cb1c0418d3300c4c4c3abe07dc113b394ceb583c9e63c22b3dc83ecb0c29c"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillPanel.CreateSkillDialog (cognitive 21): SkillPanel.CreateSkillDialog has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, ternaries 6 (8 pts), if/else 3 (nesting depth added 2). Of this number, 13 points are the body\u0027s own statements and 8 belong to 2 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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f974978a20d046e31c430592df1d770637709625c73a7ba1f56cfae10a7d70"}},{"ruleId":"D2","level":"warning","message":{"text":"local.readLog (cognitive 20): local.readLog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, loops 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":"internal/adapters/process/local/local.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9db157e12f1ef72b11771b42ed0a769b75b6613c3dbd90cdc49df5b5abc3f98"}},{"ruleId":"D2","level":"warning","message":{"text":"Backend.Load (cognitive 20): Backend.Load has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/process/local/local.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bdd703d11efa61e985a82609958710d9fa850366da88ac9c722779fdb5cdf3"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRecorder.recordToolResult (cognitive 20): HistoryRecorder.recordToolResult has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d81a260d6bfbb0c4c3c907591cde1a8840b6bf3e6ba3eee69852eff21f06ee5"}},{"ruleId":"D2","level":"warning","message":{"text":"GitTools.validatePath (cognitive 20): GitTools.validatePath has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 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":"internal/adapters/tools/builtin/git/func.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6afbd084e847b5261d7cfb5dc4809fdb59ec73e96896198a8654f5fb40a5054"}},{"ruleId":"D2","level":"warning","message":{"text":"BunTools.RunScript (cognitive 20): BunTools.RunScript has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 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":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3de7bd4d5d888192bae3ea2139faae48d393ef5cc0477d5fb5158481166b834"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeModel.applyMemberEvent (cognitive 20): runtimeModel.applyMemberEvent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 2 (3 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":"internal/adapters/transport/cli/runtime/runtime_events.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f485191e1672dde74dde93c7b40451c6194dfc37d58b9578a2a4554a51cfe5b"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeModel.appendHistoryMemberMessage (cognitive 20): runtimeModel.appendHistoryMemberMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), 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":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4dd400376052f8597c6b8d14a59fae612841e64e04e90a7517b22d2620533c3"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.WrapStyledLine (cognitive 20): tui.WrapStyledLine has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/text_render.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2771a1e99b15d8728a01ba738e852b72abb293a3636753a4c9a3ef4663830a01"}},{"ruleId":"D2","level":"warning","message":{"text":"selectModel.Update (cognitive 20): selectModel.Update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (3 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":"internal/adapters/transport/cli/tui/select.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"234525e34522fade960a568cdfe6ffd60ba2900aa9bae9d48084a63ab6a93779"}},{"ruleId":"D2","level":"warning","message":{"text":"middleware.Auth (cognitive 20): middleware.Auth has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 7 (nesting depth added 1). None of this is in the body itself: all 20 points belong to one function literal inside it that branches (line 15). 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":"internal/adapters/transport/http/middleware/auth.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dba2ebfb3e59a94cc56572ab4d07d80611a5c4d74dd8612deff7cfbf006bb2"}},{"ruleId":"D2","level":"warning","message":{"text":"Projector.recoverQuestion (cognitive 20): Projector.recoverQuestion 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":"internal/app/chat/presentation/projector.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"180f8ae2ac25f33d55ecf44f553d38a03edc5b8e6ec783bdab7de2fdc7b67f4f"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryService.Query (cognitive 20): QueryService.Query has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/session/query.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57529fdbdbb6324a571fafddcc3a138068b7ff2c49a5340d4a60632e8df0a64"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.Update (cognitive 20): Service.Update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5 (nesting depth added 4). 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":"internal/app/session/service.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2856a61833ccdba0ab04d57bbeef195c12d7a8806c3a4e30ee5992d537d081"}},{"ruleId":"D2","level":"warning","message":{"text":"skill.ListSkillFiles (cognitive 20): skill.ListSkillFiles has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2, boolean chains 1 (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/skill/export.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dffc3cce796a0aca4e8122b3bed8e907dca0cc408355078b7db515a66fb638"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatComposer.domPointFromTextOffset::scan (cognitive 20): ChatComposer.domPointFromTextOffset::scan has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6, 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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ffd6fcffe14bc57dbfa42321b461d7991ee8d95a4736f282a50838c74fdd5e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEditors.AgentCatalogEditor (cognitive 20): AgentEditors.AgentCatalogEditor has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, ternaries 8. Of this number, 16 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cedc51847f53aa01227c1d678d0c1403738289bf1afa68f8d4a9052c6ea657"}},{"ruleId":"D2","level":"warning","message":{"text":"copilot.PollForToken (cognitive 19): copilot.PollForToken has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), 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":"internal/adapters/model/providers/copilot/oauth.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a9ab81c5f6ca9d1df8f402330820944c8ab0fdd77d5df59cb779725a63aa50"}},{"ruleId":"D2","level":"warning","message":{"text":"filecron.pruneTaskHistory (cognitive 19): filecron.pruneTaskHistory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/scheduler/filecron/results.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9faa3ae71a6ca2561cfe224e73c95ae30ad46fdb21b8ed04f8032b75ed45cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Scheduler.cleanupExpiredTasks (cognitive 19): Scheduler.cleanupExpiredTasks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbed38ad6edd0d86b2e4ceccff0b81a35826c61180e291d08142d0c054e56db"}},{"ruleId":"D2","level":"warning","message":{"text":"sqlite.Open (cognitive 19): sqlite.Open has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/sqlite/database.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9044775b92008cc799235ae6ac7b3aaaf18cdfb4b8f5d4b9f1803e2ed57332"}},{"ruleId":"D2","level":"warning","message":{"text":"Channel.Send (cognitive 19): Channel.Send has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 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":"internal/adapters/transport/channel/qq/qq.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f46da54dda0a993f94a80c8478b16199d98c5bfc11491550e14a6740e3e1bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.interactiveLogoutAction (cognitive 19): commands.interactiveLogoutAction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/commands/login.go"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d405dbcff8a553e7a9eb6c4632da60ba7236074c92530f66703f675b24e9aab"}},{"ruleId":"D2","level":"warning","message":{"text":"commands.promptModelSelection (cognitive 19): commands.promptModelSelection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2, 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":"internal/adapters/transport/cli/commands/login.go"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25d0b9818a7a74b3a9399a6a463ca57d30b0df9e8e6366b00d42cd60253fbe7"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.normalizeCompactMarkdownTableLine (cognitive 19): tui.normalizeCompactMarkdownTableLine has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (7 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"849ced941f2a6d4aef6490cd690fc90bc6744db276d8947d0f612e47ac7d3b80"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.growMarkdownTableColumns (cognitive 19): tui.growMarkdownTableColumns has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (5 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":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f04552ec537a3e2065a9b9ae7a0a43f847516a8374477998df685bc6aedfea"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.enrichJavaScriptDraftRequest (cognitive 19): handler.enrichJavaScriptDraftRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, loops 2 (3 pts) (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":"internal/adapters/transport/http/handler/aiassist.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44c2060ef63515a5963510e20e328e0500abe07e27ef50b5f5bcf5fef23cb0a"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.PreviewFileHandler (cognitive 19): Runtime.PreviewFileHandler has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 207). 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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24f0b3085fba183adafa3c7a25acf0d77d02af17bddade28bedc975684a07af"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationEditors.JavaScriptToolEditor (cognitive 19): IntegrationEditors.JavaScriptToolEditor has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9 (11 pts), boolean chains 4, error handling 2, if/else 2 (nesting depth added 2). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to one function item inside it that branches (runTest). 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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfd8b9d823308a91dbf6d9b8a6ebc13e71e99af733c78bb9feddf433cc6f8c8"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRepository.ClearSessionHistory (cognitive 18): SessionRepository.ClearSessionHistory has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/session_repository.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ff97df6d4d0930382713c27cd6ca26de2e10c107d867f434e053d1bf22ae13"}},{"ruleId":"D2","level":"warning","message":{"text":"SshClient.CopyLocalFileToRemote (cognitive 18): SshClient.CopyLocalFileToRemote has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 3. 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, 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":"internal/adapters/tools/builtin/ssh/ssh.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0721ef631b401d865e2a0cf34f90e04e39678628e9bda7263bec8dce8303b5e2"}},{"ruleId":"D2","level":"warning","message":{"text":"Bot.Download (cognitive 18): Bot.Download has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4 (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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1663aa4a7c8abd30b3b5eef20d3081a282b39b8f15cbc42ed79161c1c60967b5"}},{"ruleId":"D2","level":"warning","message":{"text":"eventview.unclosedFenceRange (cognitive 18): eventview.unclosedFenceRange has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_stream.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"59db430da028b38b3fab09abd3d4a74921c7b156f6ebcd4597428d81097ef5dd"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.ListSessionsWithDocuments (cognitive 18): runtime.ListSessionsWithDocuments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/session_list.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"918504d1cd8e4917f467de7a4c7a3fa034ee90d6a9db283f3197f8a8f0b2a3af"}},{"ruleId":"D2","level":"warning","message":{"text":"toolModel.applyEvent (cognitive 18): toolModel.applyEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 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":"internal/adapters/transport/cli/tui/tool_panel.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2570ff57170e72d2ef364ba9153c7b747490a38337ec260fb9b6d9a27b65010"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.NewRuntime (cognitive 18): handler.NewRuntime has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. 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":"internal/adapters/transport/http/handler/runtime.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20c1f8a53b81a8c1392ebefd6134d929b57dd8a3a82db7326fba1c3e3dc0532"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.CreateSessionShareHandler (cognitive 18): Runtime.CreateSessionShareHandler has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3 (nesting depth added 2). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 139). 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":"internal/adapters/transport/http/handler/session_share.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dc00eb096ba33afad25837372db41cf98ef62af45f55c8a10358a7fe3d6677"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.handleChatMessage (cognitive 18): Runtime.handleChatMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/websocket.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5677103f801fdc24c1a147d882f4a7f2f4aa1982cea1771a2ed531189fe1805"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.Stop (cognitive 18): Service.Stop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/server.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca571c59035bd665e1c4918911322fa36494886cb74737601df48793f214a406"}},{"ruleId":"D2","level":"warning","message":{"text":"aiassist.normalizeAgentDrafts (cognitive 18): aiassist.normalizeAgentDrafts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3, 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":"internal/app/aiassist/service.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4c0b0800febae9bf598694c855305e5ebb44ba3ad278780d178d914609c953"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.RunTurn (cognitive 18): Service.RunTurn has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 112, 78, 96). 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":"internal/app/chat/service.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3f3994ffcf18b1e3c93d622e1c2c4ac100d3572f65e3fd5c9d371171515dfa"}},{"ruleId":"D2","level":"warning","message":{"text":"javascriptHost.Call (cognitive 18): javascriptHost.Call has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (17 pts), 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":"internal/bootstrap/tools/javascript.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f1fcf701e9a63828bb0ebc491fad109f79d41ab7983c93167782436e7b4fc3"}},{"ruleId":"D2","level":"warning","message":{"text":"approval.Require (cognitive 18): approval.Require has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 1 (3 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":"internal/runtime/approval/approval.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e698db29b12c24b60eca23fcc8774b834de232f27dc5c0f7691f5c6719242414"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_frontend_logic_check.analyzeMemberRenderParts (cognitive 18): stream_frontend_logic_check.analyzeMemberRenderParts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4fe9ca60c10c92fdd80986a4104cb5727ce61f867696cf98e6e17d69d9ef83"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatInput.ChatInput::addAttachments (cognitive 18): ChatInput.ChatInput::addAttachments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (4 pts), boolean chains 3, error handling 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":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"08867e22846a2e6125c9fdeb37047d4cedc13d79c0fd5fbe2d3f7b379f142393"}},{"ruleId":"D2","level":"warning","message":{"text":"configModel.buildToolOptions (cognitive 18): configModel.buildToolOptions has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 3 (5 pts), boolean chains 4, loops 2 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 3 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":"web/src/features/config/configModel.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b9960f49c3fc7c8f1dac32874cc933e74634a9d514d914ab76dee3bce4c72d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEditors.ModelNameField (cognitive 18): AgentEditors.ModelNameField has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, ternaries 5 (6 pts), if/else 3 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 6 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4ee93e8d97bef46cfdc7891990cef59fb2f97371b22f30941caf43e5eb4614"}},{"ruleId":"D2","level":"warning","message":{"text":"FileManager.FileViewerContent (cognitive 18): FileManager.FileViewerContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, ternaries 1 (2 pts) (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":"web/src/features/files/FileManager.tsx"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5092aad5504a62c3c3b8dd4d22cedcbad8ac2e914eed46160ea329489ef62f"}},{"ruleId":"D2","level":"warning","message":{"text":"agentkit.NewChatModelAgent (cognitive 17): agentkit.NewChatModelAgent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/factory.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfac56f1aff93bc529b3dff7d200a63eeb4d1ba5340b31819711e6e3ab9ae9e"}},{"ruleId":"D2","level":"warning","message":{"text":"agentkit.schemaForType (cognitive 17): agentkit.schemaForType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/tool.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"20abd9e0a0e016c295fe8e0b3ceacc45527537b4cd38213f5f8ba8483080093c"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBackend.Read (cognitive 17): LocalBackend.Read has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), loops 2, boolean chains 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":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fcfd3bb64bf06474e26d3c0a0412f02c6b92eaed640b1d19912099769e6dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRecorder.flushChunkedToolResults (cognitive 17): HistoryRecorder.flushChunkedToolResults has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf881ff8a93f8fed9403dc47168723168699ba014b275171fda9b7af05cc874"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionRepository.ListSessions (cognitive 17): SessionRepository.ListSessions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/session_repository.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53ac5d82a49c982df039e701a302a69614a9ce9990e3a92275f1968cb14c5e2"}},{"ruleId":"D2","level":"warning","message":{"text":"runtimeModel.renderPicker (cognitive 17): runtimeModel.renderPicker has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_render.go"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed0a6878e1a3239017ce749e2f0029755dc41e8cca90e2a36a44a1d66c4fdb4"}},{"ruleId":"D2","level":"warning","message":{"text":"Session.handleSignals (cognitive 17): Session.handleSignals has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 3 (9 pts), if/else 2 (7 pts), loops 1 (nesting depth added 11). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 142). 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":"internal/adapters/transport/cli/runtime/session.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"784006684ffaf8d50a23d7279b47d6810426347e0f620ccdb8e2af82e3ca03b5"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.GetFilesHandler (cognitive 17): handler.GetFilesHandler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, loops 1 (nesting depth added 3). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 315). 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbb2ea962866d55bb2621a69d0d0e246524b01a6c2aa4a234455a91435a5665"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.processArchiveSource (cognitive 17): handler.processArchiveSource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 1441). 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2fac895ff889b4d8d5202443b85f1e781eea0e6cdb40e0f973e9ecd6721d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.ChatHandlerWithState (cognitive 17): Runtime.ChatHandlerWithState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 2 (nesting depth added 1). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 37). 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":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4737f910eb38d8675fa250d33d6d23a82e6cfac8d4e46f002ede22757cf74b01"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.CreatePreviewLinkHandler (cognitive 17): Runtime.CreatePreviewLinkHandler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2 (nesting depth added 2). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 115). 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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a86cca671a973e90d1f01956724698d2f2cf134d624be91b7c62121dea636d"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.omittedContentPartsNotice (cognitive 17): chat.omittedContentPartsNotice has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (3 pts), boolean chains 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":"internal/app/chat/input.go"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"3217240d06e17805768d92c05309e165a4f1af3da8f49e9bdd25461b6e3d7c2f"}},{"ruleId":"D2","level":"warning","message":{"text":"ask.AskQuestions (cognitive 17): ask.AskQuestions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 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":"internal/app/tools/ask/ask.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ca8b243db0389d21e3c882ce61d5fb45d29fa0cb1e03392afc1c63f25a93db"}},{"ruleId":"D2","level":"warning","message":{"text":"mdiff.myersDiff (cognitive 17): mdiff.myersDiff has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/mdiff/diff.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a8caf71d53c4463d0fdef462df36d5366d8335b3d1a865c2011dbfe1e71573"}},{"ruleId":"D2","level":"warning","message":{"text":"store.applyChatEvent (cognitive 17): store.applyChatEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/store.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbfbd33c2644fdb554be00a785c48259457fd56952e9a9c59cfe78a6fce9e89"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEditors.ModelsTab (cognitive 17): AgentEditors.ModelsTab has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (7 pts), error handling 1, if/else 1 (nesting depth added 2). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 75, a function literal at line 127, loadProviderModels, \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbc6a010526112a855e80cf289b3aa009f910d571cd83022dfeadce0e8daf3d"}},{"ruleId":"D2","level":"warning","message":{"text":"environment.mergeUVMirrorConfig (cognitive 16): environment.mergeUVMirrorConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/environment/mirror_config.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dfbe37123d0708853f1ae69bf1c8f6de6d7fdd8c0385aa8c72b767ec427820"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRecorder.bufferAssistantMessage (cognitive 16): HistoryRecorder.bufferAssistantMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 1 (2 pts) (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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa1e8c6d6deef5f3747d4b5ffffd4e2097dfcbd07da1326feab3a53e795ce66"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionShareStore.Load (cognitive 16): SessionShareStore.Load has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 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":"internal/adapters/storage/file/share/session.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"185b152485e80f3e6970dfe014ef9d4f873ddd14d2c63374905daaae05a87e05"}},{"ruleId":"D2","level":"warning","message":{"text":"client.TextSearch (cognitive 16): client.TextSearch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/search/text_search.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4542929ceec26aeab0d66c0c30370385cc243ed9e205e2e170c05f76660c96"}},{"ruleId":"D2","level":"warning","message":{"text":"TodoTools.loadFrom (cognitive 16): TodoTools.loadFrom has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (16 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":"internal/adapters/tools/builtin/todo/func.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"47170cc7c299e69111856eff3c90f85c354cc5f360d9515c4c51198bb0eca305"}},{"ruleId":"D2","level":"warning","message":{"text":"channel.splitMessage (cognitive 16): channel.splitMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 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":"internal/adapters/transport/channel/bridge.go"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e88b05a768b37fe5dcc4b27a1e4f5481be6fd6df82766deab00b642e4f562a9"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionRunner.Run (cognitive 16): sessionRunner.Run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, loops 2 (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/qq/session.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1c564e4325ede2e62f24ab2a6e54af4a689a96632e3e8f6b860bae931b7326"}},{"ruleId":"D2","level":"warning","message":{"text":"Bot.parseMessage (cognitive 16): Bot.parseMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b110fb2fe0ce7ec3719d788b077dfc8c4403187f3b90a0af823545b1ac3a88b"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.DeleteInlineTokenNearCursor (cognitive 16): tui.DeleteInlineTokenNearCursor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 6, loops 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":"internal/adapters/transport/cli/tui/inline_input.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6131e0e698abce7a1e3bdb35da702567bc20f7d0c4fe8e291d1478338308588"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.processArchiveEntry (cognitive 16): handler.processArchiveEntry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19b3106ef9469e6029577a834f1315cb39cad62e3de4b2585008d94023cb9d3"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.PreviewInfoHandler (cognitive 16): Runtime.PreviewInfoHandler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 1 (nesting depth added 2). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 348). 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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d599c185ed2745229a4bde3b0717293b9e7bf16a70a0446b10e37591b36c8b0"}},{"ruleId":"D2","level":"warning","message":{"text":"skill.ListLocalSkills (cognitive 16): skill.ListLocalSkills has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/skill/export.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ade7538db2a6d148807622b7f3fde380fd888d18e7024514e39bf3ceefec88d"}},{"ruleId":"D2","level":"warning","message":{"text":"mdiff.ApplyFileDiff (cognitive 16): mdiff.ApplyFileDiff has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, loops 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":"internal/runtime/mdiff/patch.go"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b890bfde5644ca3894c33f75a2cd93d8a4caad4fc76243625038f98abdb03c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"pathguard.EnsureRootDirectory (cognitive 16): pathguard.EnsureRootDirectory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 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":"internal/runtime/pathguard/pathguard.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e614592f82b062f1eb9012a74adb3a8ecaedeea421d2b2ad1966d1d8f2df0f6"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_frontend_logic_check.assertReport (cognitive 16): stream_frontend_logic_check.assertReport has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b9ba6bff0283bcac9fe06843fffd66c5af1c4b9cf9cb5d8f895388aab06d18"}},{"ruleId":"D2","level":"warning","message":{"text":"useActiveQuestion.useActiveQuestion (cognitive 16): useActiveQuestion.useActiveQuestion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, loops 1 (2 pts), ternaries 1 (nesting depth added 3). None of this is in the body itself: all 16 points belong to 5 function literals inside it that branch (lines 19, 7, 13, \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":"web/src/features/chat/useActiveQuestion.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"01764e11d3e25d167e46e37c8ced6386acf98328e3adbb28d196cce78c2880e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: eventview.newPrintEvent: FunctionTooLong \u2014 newPrintEvent runs 484 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 384 over it, 4.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":"internal/adapters/transport/cli/eventview/print.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd73cebd470c91a5cbbfed3f197ba7d10c9261cfe8e1bd3a1fd937a1781c9879"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: runtimeModel: TooManyMethods \u2014 129 methods, declared across 9 files: runtime/runtime_render.go (43), runtime/runtime_history.go (22), runtime/runtime_input.go (22), runtime/runtime_update.go (16), \u002B5 more file(s). The bar is 30 methods; this is 99 over it, 4.30\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":"internal/adapters/transport/cli/runtime/runtime_model.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c225e56b2c35f496a8ce1c5b8ab5c97a005138ec74ab19cff563aefa487323"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillPanel.SkillPanel: FunctionTooLong \u2014 SkillPanel runs 415 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 315 over it, 4.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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9498b528fd60630bc59441702bdc4b5b872d74ab553fc6ce7735eb1e8c9d14"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatComposer.ChatComposer: FunctionTooLong \u2014 ChatComposer runs 362 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 262 over it, 3.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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fceb00f1678dab5fcdd5be691da12c0e2f71a0a9fa6466b86c5076f07312bc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Runtime: TooManyMethods \u2014 96 methods, declared across 22 files: handler/runtime.go (18), handler/stream.go (16), handler/session.go (12), handler/schedule.go (8), \u002B18 more file(s). The bar is 30 methods; this is 66 over it, 3.20\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":"internal/adapters/transport/http/handler/runtime.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"53be601fcca3a40cd5587e94374e4d467257c627f1000c1bd9ed969b2370928b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: Sidebar.Sidebar: FunctionTooLong \u2014 Sidebar runs 312 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 212 over it, 3.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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9e82caf16574137b3727110773433efa905d1d4fc99a3c0adaecb06e2db50e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatInput.ChatInput: FunctionTooLong \u2014 ChatInput runs 278 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 178 over it, 2.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":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a7db1174167b2ee9effd719ea19f72d51dcecf7ccc3a16d85c8b68bdcd3d8f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: runtimeModel.Update: MethodTooLong \u2014 Update runs 276 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 176 over it, 2.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":"internal/adapters/transport/cli/runtime/runtime_update.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea3a7538c704ff5ef2d5aecb3636c20fac21e7d217c8be390b2b42c5ed4be4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/files.go: FileTooLong \u2014 1168 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 668 over it, 2.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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"149f9b89d7b5bb66f39da7befefd6bfd5f92e1d57b85eac4fa02729779e1fca8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/MessageList.tsx: FileTooLong \u2014 1164 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 664 over it, 2.33\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":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a58882be4087f423e28682f2221cda27e88600be3b06f1d7a9cf0249e95e453"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Projector.Apply: MethodTooLong \u2014 Apply runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.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":"internal/app/chat/presentation/projector.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f021ca2cf5ca69f5871fbbc3c2bff390aa33da5ee22a55ca3756dd1f57effa9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tools.RegisterWithProcesses: FunctionTooLong \u2014 RegisterWithProcesses runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.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":"internal/bootstrap/tools/tools.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04fcb535853bc400397e55b3634d5648581312fe47b9f53e8ced471a54ded39"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FileManager.FileManager: FunctionTooLong \u2014 FileManager runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.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":"web/src/features/files/FileManager.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee8f4ab65cbeb6a438b483d84121025b2b1cf2145935f4642c6f32ea8c0bd98"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SchedulePanel.SchedulePanel: FunctionTooLong \u2014 SchedulePanel runs 219 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 119 over it, 2.19\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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd033a58251b196c9a7b1e6825a84e6ae284848bb2dc00effdf6fbe1cc7cace6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Stream: TooManyMethods \u2014 60 methods, declared across 2 files: taskstream/stream.go (47), taskstream/queue.go (13). The bar is 30 methods; this is 30 over it, 2.00\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":"internal/app/chat/taskstream/stream.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"36645a3429418a1456910d3e9729ee209d4bb0c08106cb4838942d612982c86b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ShareManagerPanel.ShareManagerPanel: FunctionTooLong \u2014 ShareManagerPanel runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c985ac106834063c8a10bf31606d2e63bfbe8b9a13b19b6527d275b2dc09897f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: skills/SkillPanel.tsx: FileTooLong \u2014 904 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 404 over it, 1.81\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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a639a8f037923d7a7bca45079febc8c7b27606e74f224162bfe30bbeaabb1ea7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Scheduler: ClassTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods, 36 blocks, lines 31-1195. The bar is 400 significant lines; this is 307 over it, 1.77\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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ababbeeb45fe1c5ed2c391f6ed0d5ff5be55f748731baeb5d956bebec10a55e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/ChatComposer.tsx: FileTooLong \u2014 880 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 380 over it, 1.76\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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"792daeddf53b1342f392236e771d13993a8cf1365d22290c1278067c72a301b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: config.GenerateExample: FunctionTooLong \u2014 GenerateExample 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":"internal/app/config/config.go"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc365e792a2555aa7d397e122be9cb0bc369f9d714d475bce0b8b7e7350f8dec"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillPanel.SkillDetail: FunctionTooLong \u2014 SkillDetail 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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d42b9502e3eec9d20f19ef298eeefddd56b9cc284580441e907058a8cb7178"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HistoryRecorder.RecordEvent: MethodTooLong \u2014 RecordEvent runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"653a51cd22b7c5be87645851880be331830b8763fe7a91114406db33c717903f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: filecron/scheduler.go: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: Scheduler (36 blocks, 31-1195). The bar is 500 significant lines; this is 302 over it, 1.60\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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed5d8eefa6112db75d6e916ca449966cbdd4280f70ce63a39a3acebc14224c9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HistoryRecorder: TooManyMethods \u2014 46 methods, declared across 8 files: history/history_access.go (15), history/history_record.go (13), history/history.go (6), history/history_persist.go (4), \u002B4 more file(s). The bar is 30 methods; this is 16 over it, 1.53\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":"internal/adapters/storage/file/history/history.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dda600a2425e0f55a6774cd2d961dbeab4f5e5b0d24c1ba8dcab475b8e35e74"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ChatPage.QuestionNavigator: FunctionTooLong \u2014 QuestionNavigator runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"510e9e1a4055f32df6c18e19ce66857cec1a4f49ab2440e2c88a660f22a5cd41"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExcelTools: TooManyMethods \u2014 45 methods, declared across 9 files: excel/data.go (11), excel/batch.go (10), excel/cell.go (6), excel/sheet.go (6), \u002B5 more file(s). The bar is 30 methods; this is 15 over it, 1.50\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":"internal/adapters/tools/builtin/excel/excel.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c6efb8203610e168d466a1443eb88072f2024eeefcf8029f7787019b6fcf7e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Event: TooManyFields \u2014 45 stored fields. The bar is 30 stored fields; this is 15 over it, 1.50\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":"internal/domain/event/event.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"babfb708e18eefe03330fee977a4660b6690c147d49fb22e4e82618c6c2d7a70"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.UploadChunkHandler: MethodTooLong \u2014 UploadChunkHandler runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33a2dab89751f3b1a7b523054dd7af01f3074ea97a01e8cd0a59569a602e8f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/config.go: FileTooLong \u2014 712 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 212 over it, 1.42\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":"internal/app/config/config.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b633aef71be5118f48aa257c0b95570316d61a2098cb77a0b67280440207b622"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionShareDialog.SessionShareDialog: FunctionTooLong \u2014 SessionShareDialog runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe90dac0b1aae4ec4c092d013b9a3bcbb6371e42b2f66ad1085aadd0bd3642e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: IntegrationEditors.JavaScriptTab: FunctionTooLong \u2014 JavaScriptTab 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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a68251e7692f0c3a81ad3e5a098bce16ca9feb2ded81f796a7e285f3b49369f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/AgentEditors.tsx: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 150 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2eaa45534b450d75f6f6349f691fe780d65359ae8f7e0fa226d56d346858fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ConfigFields.ToolSelectField: FunctionTooLong \u2014 ToolSelectField runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"web/src/features/config/ConfigFields.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4f91508b43b1efe620136cd9c65de213078dd100ee5b534722b25f35de6e75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: select.Select: FunctionTooLong \u2014 Select runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"web/src/components/ui/select.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a322faa75a6379ef5192baf2889b3e93be6412638902330c1ab61759e9f8f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tui/markdown.go: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 131 over it, 1.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":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"487c2d6a7513b294536be567075b752157dbe205403c422d99771baf65c6d57c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: layout/Sidebar.tsx: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 131 over it, 1.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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ec498f7c3f81250ff3807faf035c165b10e340f8772154aa547783c43ea606"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: taskstream.RuntimeEventPayload: FunctionTooLong \u2014 RuntimeEventPayload 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":"internal/app/chat/taskstream/protocol.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9fa3444b481c4547535cb8723855421087fa70410a0995d7a77100381bb7bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: history/history_record.go: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: HistoryRecorder (13 blocks, 81-851). The bar is 500 significant lines; this is 125 over it, 1.25\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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85da17029da27802b9ba507e9cfafbb1c690ac0b06db809d04f3ca653b2780c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: FileShareDialog.FileShareDialog: FunctionTooLong \u2014 FileShareDialog runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"web/src/features/files/FileShareDialog.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c0557ce1a876f13796a8b60cfb4ffdf87e2201515fce5bc961ea8a39779f88"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.agentMessageToCoreMessages: FunctionTooLong \u2014 agentMessageToCoreMessages 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":"internal/app/chat/input.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cba686ebb8b2fc35752d9b4c9d80a9efa62ac9d4c4b5a7f99dfc31ee83fb2bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HistoryRecorder.recordTranscript: MethodTooLong \u2014 recordTranscript 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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"76173f281b17a8b66f5f87e6d6856b9a34d862a85db68d24c71f88a0ee7e1e65"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schedules/SchedulePanel.tsx: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 106 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bbe9d4fc93a8e41e04f0359bd476f94e3eeda9fdbcddd7d4a3160e5d88b4ad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Scheduler: 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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1792bd8708e953407625d1d5126ab407b9a20e0cbcb952bc98743cc0b019dbc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: router.registerAPIRoutesWithRuntime: FunctionTooLong \u2014 registerAPIRoutesWithRuntime runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/router/router.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb08178a6fc38b2c1e6b94ed16be3f4cab6701eb6ff33ba90f0e70e5acb6362"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: taskstream/stream.go: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: Stream (48 blocks, 192-942). The bar is 500 significant lines; this is 99 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":"internal/app/chat/taskstream/stream.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2116530374610b7c4c5f097a65d45d7012d5f954e058b041934a7b8e79c690e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: file/func.go: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5bb3a331d2d037b3f665decf0ee6f39ae745fa46b0085b558e430926374226"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/stream.go: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: Runtime (16 blocks, 37-864). The bar is 500 significant lines; this is 95 over it, 1.19\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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c90224563bdae61fa4afe17de4796f386443b4fbd4c81ad7fad3ddd0be93f15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sdk/bot.go: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: Bot (25 blocks, 43-758). The bar is 500 significant lines; this is 66 over it, 1.13\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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"735b365205172bf73596993cf91597c73e94e15ccdfec3e8245430453aa20b87"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/runtime_history.go: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), about 62% of them inside a single declaration: runtimeModel (22 blocks, 15-807). The bar is 500 significant lines; this is 66 over it, 1.13\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":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"077a3345865e1d8915706da59de1658fe93a331fdcd48c969b3c2c42c5a39ac0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: share/ShareManagerPanel.tsx: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 over it, 1.13\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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b410ab37ea04e676d02a70e7c86807d899302d63220a1c8518684fcfafec2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/runtime_render.go: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: runtimeModel (43 blocks, 16-795). The bar is 500 significant lines; this is 58 over it, 1.12\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":"internal/adapters/transport/cli/runtime/runtime_render.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31af42d47630d3ea4d554ce763e41977e78d5f8d967d0c0386a770a48fd2f99"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SkillPanel.CreateSkillDialog: FunctionTooLong \u2014 CreateSkillDialog runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"426066bf730d7c8b274e143afbb6a096962eec89a4f1021a3021c5c60a3ddb1a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.StreamStartHandlerWithState: MethodTooLong \u2014 StreamStartHandlerWithState 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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"623713ac87ecac5e7f62593e40f793c7e2619c16d324e7eaca9cd2a836c379e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AgentEditors.AgentsTab: FunctionTooLong \u2014 AgentsTab 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0598291fe1d7b0612e28baaf12a3b93bd3faa6d0a78ecfb39041c873da8a52f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Stream: ClassTooLong \u2014 435 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods, 48 blocks, lines 192-942. The bar is 400 significant lines; this is 35 over it, 1.09\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":"internal/app/chat/taskstream/stream.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2957a27bc2b9df50e60e7916dfde7bc58187a507c0f28d06bbdb708de0c7b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Service.Execute: MethodTooLong \u2014 Execute 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":"internal/app/process/service.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fba6d750bd3e6f49062b6177a2756e987c295024eef7d79d61997f83e772e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AgentEditors.AgentDraftDialog: FunctionTooLong \u2014 AgentDraftDialog 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"44674a878f5a1b4a15424548635c2dfdf291f1891e2f33aacd58a4cc706c4d4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ConfigEditor.ConfigEditingProvider: FunctionTooLong \u2014 ConfigEditingProvider 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":"web/src/features/config/ConfigEditor.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"497ac691e7a62e6604b28ace8c470601d6010e6363a6dc254783623dde615241"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: todo/func.go: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: TodoTools (12 blocks, 45-808). The bar is 500 significant lines; this is 39 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":"internal/adapters/tools/builtin/todo/func.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ed62fe1c73e185841253d61ebd27e669672ff393ad4611fc45828d87c81427"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: files/FileManager.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":"web/src/features/files/FileManager.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"409a937f27c58ef8d23552933d1bec3cc24ea6cfd7d10047766cfb33c9c72c80"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Projector: ClassTooLong \u2014 429 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods, 13 blocks, lines 22-600. The bar is 400 significant lines; this is 29 over it, 1.07\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":"internal/app/chat/presentation/projector.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6395a65628abd2b34f81d2f46b19a0fea1eeee86221a11c3cc19c1221857d321"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: uv/func.go: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: UVTools (13 blocks, 22-886). The bar is 500 significant lines; this is 35 over it, 1.07\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":"internal/adapters/tools/builtin/script/uv/func.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec16c3a44dfa6adc7cf9df1f662dfe7baf2fb645fc9a80aeed4e836a07dd158c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QueryExecutor.Execute: MethodTooLong \u2014 Execute 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":"internal/adapters/transport/cli/runtime/query.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b38453fb9431edbd59dcb66e39a83febf7b636b605e60df871e67c3586fedb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/IntegrationEditors.tsx: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f20b9a6d60a6e0c33a54de212a076bacd5828901311f5b4929869362a74f320"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eventview/print.go: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: newPrintEvent (75-741). The bar is 500 significant lines; this is 30 over it, 1.06\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":"internal/adapters/transport/cli/eventview/print.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"927660fbb9658d999dfddfb5e1665b0ca89972056fe633263135f10653c744fd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Bot: ClassTooLong \u2014 421 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods, 25 blocks, lines 43-758. The bar is 400 significant lines; this is 21 over it, 1.05\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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab46594af5198103edf7c6c4155b41e7d4f42623028f237cafb23eb21dc8262"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TodoTools: ClassTooLong \u2014 420 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods, 12 blocks, lines 45-808. The bar is 400 significant lines; this is 20 over it, 1.05\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":"internal/adapters/tools/builtin/todo/func.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdda54b3cdcfc91bf7eea5b7a47cd79daff378064d09c7c59529bde42336e33f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/ConfigFields.tsx: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 21 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":"web/src/features/config/ConfigFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f6a92e45c418366eacbbcf57aeb9865823f4ed02b2f052f28d3ab57d73a443"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Runtime.WebSocketHandlerWithState: MethodTooLong \u2014 WebSocketHandlerWithState runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"internal/adapters/transport/http/handler/websocket.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e83683ebffcb6c1f0dd5fed5b73dcdff2fcc0d4ffeb26688fa822e972162de6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AgentEditors.ModelsTab: FunctionTooLong \u2014 ModelsTab runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc0dffc1802ead7e09d6e4aa14665979202fd6be87c3ce0f98d50f794fff343"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ConfigPanel.ConfigPanel: FunctionTooLong \u2014 ConfigPanel runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) 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":"web/src/features/config/ConfigPanel.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7168582eb351f062282b02a4ed20a5bb826bf512070185a4afde2a661633e201"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SkillPanel: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 15 over it, 1.04\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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6911b0efa0752621fec3031edbe66328fa02c5a9a2c4048327ca88ac5d2b896c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GitTools.GitDiff: MethodTooLong \u2014 GitDiff 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":"internal/adapters/tools/builtin/git/diff.go"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a212941ad5cbbb71f1d1207eedb8e856a318580c0fc874fcfa744c01ffa872e0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: memberModel.applyEvent: MethodTooLong \u2014 applyEvent 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":"internal/adapters/transport/cli/tui/member_panel.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe870b4e0ed489163b26cab96d13561af563863df5c0c819f0bbc3ed879d267"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UVTools: ClassTooLong \u2014 410 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods, 13 blocks, lines 22-886. The bar is 400 significant lines; this is 10 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":"internal/adapters/tools/builtin/script/uv/func.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f77433d4f6d5de12c934a39e943630acccb2833614cab2d9c9fbc46d19d5c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/stream_frontend_logic_check.ts: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa070659d52e194ff5c0f48fcc904f7f3a63be58b81152dcaa5efb23a922bd8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (88 shared lines): internal/adapters/tools/builtin/script/bun/func.go:453-558 | internal/adapters/tools/builtin/script/uv/func.go:419-533 \u2014 These two members are variants of one another: 88 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":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"7816eb00fe3f77f67af0db802a08085143c9c27ce96f35120c9b95701ae7fc93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/adapters/tools/builtin/script/bun/func.go:36-67 | internal/adapters/tools/builtin/script/uv/func.go:35-69 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60c1503b29e17c975680deb91adf1e437d9097301718e55547223df9ef6a7d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/adapters/transport/http/handler/http_chat.go:36-132 | internal/adapters/transport/http/handler/stream.go:37-180 | internal/adapters/transport/http/handler/stream.go:196-236 | internal/adapters/transport/http/handler/stream.go:261-291 \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":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10cdd244ca58a785e9c592fc984e9bdb7167027c31233485d8e668585541d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/adapters/transport/http/handler/preview.go:206-285 | internal/adapters/transport/http/handler/preview.go:315-344 | internal/adapters/transport/http/handler/preview.go:347-431 | internal/adapters/transport/http/handler/preview.go:636-715 \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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9702918d761a63e6fdd4176a6f1da4551a0f2d4e98ff1a6be7222e3a31f9758"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): internal/adapters/tools/builtin/todo/func.go:205-268 | internal/adapters/tools/builtin/todo/func.go:548-624 \u2014 These two members are one piece of code written twice and then edited apart: 64 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":"internal/adapters/tools/builtin/todo/func.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf39834891a95071677e80d8d0134a1d426655d18489fe807760736a5c65c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): internal/adapters/transport/cli/update/zip.go:25-79 | internal/app/skill/install.go:104-151 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d339b95e787e82cff47bcfb1aa0be47142e570bb042434b76eaf309bbb9da9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): internal/adapters/tools/builtin/excel/batch.go:277-336 | internal/adapters/tools/builtin/excel/batch.go:354-414 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/batch.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dca98ed875eac81c55a016ac4f4aec4e0db6ef1c3d1dc62858a238b90b8d866"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): internal/adapters/tools/builtin/git/add.go:23-73 | internal/adapters/tools/builtin/git/remove.go:23-73 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"internal/adapters/tools/builtin/git/add.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be16f1f013668e436e5f9fc8909c435449cab30b7a7f13e660f0d802afeca6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 57\u002B corresponding lines): internal/adapters/tools/builtin/excel/batch.go:40-100 | internal/adapters/tools/builtin/excel/batch.go:117-173 | internal/adapters/tools/builtin/excel/batch.go:197-259 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 57 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/batch.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e48534acc242b447910b3533b0fcbd4808d68a83e47f2cb427b416b055b294c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): internal/adapters/transport/http/handler/files.go:124-167 | internal/adapters/transport/http/handler/files.go:169-209 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6d52eb8bd928dbe7ef82c0278752e512b9dff26bec2ca52ae8e0cbd22eefd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): internal/adapters/tools/builtin/git/branch.go:35-79 | internal/adapters/tools/builtin/git/tag.go:39-83 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/git/branch.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9496bbc92aae0e189f469939564f7c0d71a68a75a7e53a24ec5086b2fcb060"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): internal/adapters/tools/builtin/doc/func.go:153-202 | internal/adapters/tools/builtin/doc/func.go:205-259 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"internal/adapters/tools/builtin/doc/func.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"656917e37f943b812477407a7e33ad7fcd68d7b292c090028f157bacdcd482c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): internal/adapters/transport/cli/eventview/print_markdown.go:259-299 | internal/adapters/transport/cli/eventview/print_markdown.go:301-340 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0bd954dae1e62d5e5fce6f9891c47afc179cd8aa152174f042ef85ee372dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 46\u002B corresponding lines): internal/adapters/tools/builtin/excel/batch.go:497-550 | internal/adapters/tools/builtin/excel/batch.go:627-674 | internal/adapters/tools/builtin/excel/data.go:508-553 | internal/adapters/tools/builtin/excel/data.go:629-674 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 46 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/batch.go"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da292d3a3854103b076cbe8c25420d87a632a032ae6d9566fce089ff7804d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 38\u002B corresponding lines): internal/adapters/tools/builtin/excel/cell.go:183-220 | internal/adapters/tools/builtin/excel/cell.go:237-274 | internal/adapters/tools/builtin/excel/cell.go:292-329 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/cell.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3770b0dc05ee821f6cfe594b3cd7947633c01dcf107ba56619e22ebcad91799c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): internal/adapters/tools/builtin/excel/batch.go:567-610 | internal/adapters/tools/builtin/excel/data.go:570-612 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"internal/adapters/tools/builtin/excel/batch.go"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c20b5a6cab8343fadef46c3d7547165d685b14231e8f34ca031f0e1dbb2478e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): internal/adapters/storage/file/share/preview.go:46-86 | internal/adapters/storage/file/share/session.go:61-108 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"internal/adapters/storage/file/share/preview.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ddaa2d043cc0c34590bf1344df84455e4d9877df8aef6745e4535bcb80cb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): internal/adapters/tools/builtin/excel/batch.go:431-480 | internal/adapters/tools/builtin/excel/data.go:449-491 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"internal/adapters/tools/builtin/excel/batch.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9150db79167ebc2f6932f5253d89b2f33fc78034fd79be36362107d632bb77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): internal/adapters/transport/cli/eventview/print_format.go:48-91 | internal/adapters/transport/cli/eventview/print_markdown.go:127-159 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb59a5f16bbb03042fca26b97955b46ac1f2b7ba9f5fdceef138d3fec969602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): internal/adapters/transport/cli/update/zip.go:97-130 | internal/app/skill/install.go:169-204 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14a23cf32d0b82f1af687d4d8ff88d3cc4142c4d151b95bc2f1395833aff196"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): internal/adapters/environment/bun.go:19-53 | internal/adapters/environment/uv.go:19-53 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"internal/adapters/environment/bun.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"be30b240bfabd1742b125c16b0271f23d1b7126231dafcd5bb1d9f89b0168ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): internal/adapters/scheduler/filecron/scheduler.go:919-943 | internal/adapters/scheduler/filecron/scheduler.go:1024-1053 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"391a57e3e15c4e743f43848213e347c722f0580859fabc9a1bc7862c81fbf684"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 39\u002B corresponding lines): internal/adapters/tools/builtin/excel/sheet.go:24-63 | internal/adapters/tools/builtin/excel/sheet.go:78-121 | internal/adapters/tools/builtin/excel/sheet.go:256-294 | internal/adapters/tools/builtin/excel/sheet.go:310-352 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/sheet.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1285b606c976cdc8387b316be480f57e3788faf71fc225c749d626228a7169f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): internal/adapters/scheduler/filecron/scheduler.go:1122-1156 | internal/app/skill/export.go:398-427 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bd3ab10e767df67ac0a03863a986afddaece4736135aa6ba4fc87f559b901a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): internal/adapters/transport/http/handler/stream.go:330-363 | internal/adapters/transport/http/handler/stream.go:367-405 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5bbbee1767044d4a06bf344b2e336b882a4cc0da425dbb26a547a1de5c946a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): internal/app/skill/export.go:257-285 | internal/app/skill/export.go:288-314 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"internal/app/skill/export.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8dd52a35e103d90b09b0bafa3c08c25c9532a420a26fcbd94d2009b59796257"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): internal/adapters/tools/builtin/excel/data.go:31-63 | internal/adapters/tools/builtin/excel/data.go:80-114 | internal/adapters/tools/builtin/excel/data.go:199-239 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/data.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e20087b34d6271cdaed32945ef3efa7c5342e924738fbc4fb34f91026e45ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): internal/adapters/tools/builtin/file/func.go:355-390 | internal/adapters/tools/builtin/file/func.go:406-440 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb92773a44948f9e70f80affada81fca028c22cc9ed11cc0cee0aa54b5e10cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): internal/adapters/transport/channel/discord/discord.go:205-245 | internal/adapters/transport/channel/weixin/weixin.go:187-223 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5837cd480b85ed3aae06f1e5002b95412efc519556f0e011cacb01bbbffd60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 32\u002B corresponding lines): internal/adapters/tools/builtin/script/bun/func.go:150-192 | internal/adapters/tools/builtin/script/bun/func.go:209-246 | internal/adapters/tools/builtin/script/uv/func.go:170-204 | internal/adapters/tools/builtin/script/uv/func.go:220-251 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca3ca897838ac77c144be171da76554b24a3fa0b0496657308ec664f78ed061"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/adapters/transport/channel/discord/discord.go:499-524 | internal/adapters/transport/channel/qq/qq.go:338-358 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4763c2c400fbe252c3655f9aa1314c5ba1abfb5e6656de61114ed5db3ee3303"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/adapters/transport/channel/qq/qq.go:265-290 | internal/adapters/transport/channel/qq/qq.go:293-318 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/qq/qq.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0fd875a9744ee003c1afdedf073112e70484f523a22b59859b6bbc507c386d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): internal/adapters/transport/http/handler/aiassist.go:21-45 | internal/adapters/transport/http/handler/aiassist.go:47-71 | internal/adapters/transport/http/handler/aiassist.go:73-101 | internal/adapters/transport/http/handler/aiassist.go:171-195 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/aiassist.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadc0ea35ff273be5e15b79838732616d39d30753db48ea7a354e9972b4f5864"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): internal/adapters/tools/builtin/excel/cell.go:25-62 | internal/adapters/tools/builtin/excel/cell.go:79-112 | internal/adapters/tools/builtin/excel/cell.go:129-166 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/cell.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c8164dc4154db5b1a5d41c6f5123b8d45561e7f70b3b6af58828b8260965d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/adapters/transport/http/handler/stream.go:760-787 | internal/adapters/transport/http/handler/stream.go:791-825 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24119486860b0e6bed6f95d53bda32a32b7fc32c8de1a39a41e725a1bc92ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): internal/app/aiassist/service.go:117-143 | internal/app/aiassist/service.go:145-171 | internal/app/aiassist/service.go:173-199 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/aiassist/service.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a14d43d5a1785ec08832b9162bc6a3b164a6366c833541b112deee4211c54ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/transport/cli/update/zip.go:81-95 | internal/app/skill/install.go:153-167 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f43c283022ca361a87025cef3f75d0ce6325967e8cc55ced64194360618e775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): internal/adapters/transport/http/handler/session.go:256-284 | internal/adapters/transport/http/handler/session.go:288-315 | internal/adapters/transport/http/handler/session.go:319-346 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/session.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a33b98a2fb3499f5302a0fd361733d80234dce331e7b3ef8997c43f17bbe05e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): internal/adapters/transport/cli/runtime/runtime_history.go:238-275 | internal/adapters/transport/cli/runtime/runtime_history.go:329-366 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ea9b43381209a816fb1a07ed50a9418ad71e8240439addc9f98767271d10b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/adapters/tools/builtin/ssh/func.go:141-168 | internal/adapters/tools/builtin/ssh/func.go:184-211 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/ssh/func.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb733af779be7374e659b7334b1cd3b407d102117dc671955f37d24f7a5b800c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/app/schedule/collector.go:50-70 | internal/app/schedule/collector.go:72-92 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"internal/app/schedule/collector.go"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"897c0b18d523260e6fca8899899d9d19ad51dd3c31c888d138d68ef4780c127d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/adapters/transport/channel/discord/discord.go:380-405 | internal/adapters/transport/channel/weixin/weixin.go:297-330 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf0ffbad451f79b4c462b14c4db468e08b983582c021f7b2062dfa86c82177a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/adapters/transport/http/handler/skills.go:150-168 | internal/adapters/transport/http/handler/skills.go:171-188 \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":"internal/adapters/transport/http/handler/skills.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"db121273b5864b770bc75ea7f4e3096af34e304ce16106f16df77b221c353263"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/adapters/tools/builtin/file/func.go:38-67 | internal/adapters/tools/builtin/git/func.go:29-51 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"46879911cf19f789204c84798c408f659a2395d884489d97b88e4ad4808de113"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): internal/adapters/transport/cli/runtime/runtime_history.go:492-523 | internal/adapters/transport/cli/runtime/runtime_history.go:731-762 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"50286e166c92b96d709e90e95cb4d3ef5050830049d118dea49a8e4cd1ce6562"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/storage/file/history/session_repository.go:76-94 | internal/adapters/storage/file/history/session_repository.go:120-134 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/session_repository.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09c674f46c3b10b463087351fa0b76879220d53f5930ea6a2f99b09bb57bcd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/transport/cli/runtime/runtime_history.go:684-698 | internal/adapters/transport/cli/runtime/runtime_history.go:792-807 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"a538df5626168e83f0ce484e70f501328a84a225300e23c7846cdacf966b55c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): internal/adapters/transport/cli/commands/serve.go:13-42 | internal/adapters/transport/cli/commands/web.go:13-42 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"internal/adapters/transport/cli/commands/serve.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13baf5d625ee37ecedc33bb4a85bb4042a8812a3b8b215c21e12eca8cf6e22b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/adapters/transport/http/handler/schedule.go:30-50 | internal/adapters/transport/http/handler/schedule.go:54-79 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"internal/adapters/transport/http/handler/schedule.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe8b2ba8d3abbb49afa1cd24eeb74431faa707654f1780a027d1ffc4da555c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): internal/adapters/runtime/agentkit/middlewares/tools/warperror/warperror.go:61-74 | internal/adapters/runtime/agentkit/middlewares/tools/warperror/warperror.go:76-91 | internal/adapters/runtime/agentkit/middlewares/tools/warperror/warperror.go:93-110 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/tools/warperror/warperror.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad01eef144d731a2047d704e6727c9ab6d9f0d05b389c523b4bab0ffac3d63c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/adapters/environment/mirror_config.go:23-43 | internal/adapters/transport/cli/report/report.go:39-60 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"internal/adapters/environment/mirror_config.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb4911a872e719ae9a7295d14e73c2326dbb5b1db0cc89fb28dbe50e77e1f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): internal/adapters/model/providers/providers.go:116-147 | internal/adapters/model/providers/providers.go:218-248 | internal/runtime/model/model.go:64-87 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/providers.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"110bd46b0ed73a286fe59c281469c06050638e7cadec01548b41ea11bb9890e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): internal/adapters/transport/cli/runtime/runtime_history.go:461-490 | internal/adapters/transport/cli/runtime/runtime_history.go:700-729 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a130b636f88255db9f16acbb5815053ea72a05ac0919f733a73b891a3409a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/adapters/runtime/agentkit/middlewares/inject/chatmodel.go:59-78 | internal/adapters/runtime/agentkit/middlewares/inject/chatmodel.go:97-117 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/inject/chatmodel.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e478623521426a9cad08d3e193b76ddcf4a10be47556132e5f8187742d444e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/adapters/transport/cli/tui/ask.go:364-388 | internal/adapters/transport/cli/tui/prompt.go:45-67 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"internal/adapters/transport/cli/tui/ask.go"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8e4df7251d921ae9fdabcccf16ab3399befdd2c862539336606579db611978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/adapters/transport/channel/weixin/sdk/bot.go:137-154 | internal/adapters/transport/channel/weixin/sdk/bot.go:157-174 \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":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2a5e9fd33817e4d1f02b62a46a27dcbbf23566c39bb62cf9679e02593da9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/adapters/transport/channel/weixin/sdk/protocol/api.go:108-124 | internal/adapters/transport/channel/weixin/sdk/protocol/api.go:127-144 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/protocol/api.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca68462d6a05ff740467338085806145dc3c5e161f6d4454cc5fcb541bf7f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): internal/adapters/model/providers/providers.go:19-55 | internal/runtime/model/model.go:13-46 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdefb039b719ec8f2cbea54d0fde1323e16049c66546e43fd7a3b476aff27bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/adapters/transport/channel/weixin/sdk/crypto/aes.go:15-31 | internal/adapters/transport/channel/weixin/sdk/crypto/aes.go:34-52 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/crypto/aes.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3932f3dab0121695ec2057498de266c711579ebb6d7b8901dcc273644eb1c17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/adapters/transport/cli/runtime/runtime_markdown.go:97-118 | internal/adapters/transport/cli/runtime/runtime_markdown.go:120-141 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"internal/adapters/transport/cli/runtime/runtime_markdown.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceb2156765b5db8654412013bae0db4f3f40733a2fb349e9ad5f0dcad4bc23f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/adapters/storage/file/history/session_manager.go:65-83 | internal/adapters/storage/file/history/transcript.go:83-101 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/session_manager.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c23b6df26ffd35725a6e7314cabbfabed609ed417deae100cc42b74716b4b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): internal/adapters/transport/cli/commands/login.go:390-422 | internal/adapters/transport/cli/commands/model.go:186-209 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"internal/adapters/transport/cli/commands/login.go"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76b3caee9b54fe162bad0e5a1f21fafba0dd8ad98a2dd5b079c367c77ffb0f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/testmodel/model.go:78-93 | internal/testmodel/model.go:95-113 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/testmodel/model.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7c1f396c4cbded064d1f0f2b1e9397fbdc9523de40a9bdd4b49730b918c8d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/tools/builtin/scheduler/tool.go:110-128 | internal/adapters/tools/builtin/scheduler/tool.go:226-239 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/scheduler/tool.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"298219d7f07d3822fb1c50f721a17cf052d421c572c72c197c9e17031302c30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/adapters/transport/channel/discord/discord.go:62-78 | internal/adapters/transport/channel/weixin/weixin.go:58-76 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb465cff55432d280d3d883ea85f1db70719d396c31ce8409db8c4f129b0ab17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/adapters/transport/cli/runtime/runtime_picker.go:161-173 | internal/adapters/transport/cli/tui/select.go:44-56 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0354b41d4aa5ddfa66bce86d6e1b2e784a39c3e743e74924919206f7b752f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/adapters/runtime/agentkit/middlewares/tools/warperror/warperror.go:135-150 | internal/adapters/runtime/agentkit/middlewares/tools/warperror/warperror.go:153-170 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/tools/warperror/warperror.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"16966ea1a03d8dad0720517d3886aca7e2b4d25cf48d6ac75ae30fa2ace70e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/storage/sqlite/lock_unix.go:12-25 | internal/adapters/storage/sqlite/lock_windows.go:10-24 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/sqlite/lock_unix.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aa429f18c7639cc15d17d4c36683464de585fe4c505c92ba3d238e3b7737ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): internal/adapters/storage/sqlite/documents.go:73-93 | internal/adapters/storage/sqlite/documents.go:96-113 | internal/adapters/storage/sqlite/documents.go:116-141 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/sqlite/documents.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9249ca518cc4ab2670dc39b8dd81dff9967ff610ae5acf357f63c6e8920042a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): internal/adapters/transport/http/handler/files.go:103-122 | internal/adapters/transport/http/handler/files.go:211-227 | internal/runtime/pathguard/pathguard.go:99-118 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c0e51255dd01bfd464a2595cffddd8d868b126fbcc7bfaf568bae6742ce66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/adapters/transport/cli/tui/markdown.go:543-555 | internal/adapters/transport/cli/tui/runtime_widgets.go:120-136 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3d9c127ef8ce3f15c73f558aafaa26bdc57ba8c5a06407a6c8de042ee37b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 20\u002B corresponding lines): internal/adapters/transport/http/handler/schedule.go:83-102 | internal/adapters/transport/http/handler/schedule.go:129-151 | internal/adapters/transport/http/handler/schedule.go:155-177 | internal/adapters/transport/http/handler/schedule.go:181-206 | internal/adapters/transport/http/handler/schedule.go:210-233 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/schedule.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46a67629632a1c6b0a5c5b968802b71cc6cf45cdbf82d455ffc0f55d6fc788c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/transport/channel/weixin/sdk/protocol/api.go:251-265 | internal/adapters/transport/channel/weixin/sdk/protocol/api.go:278-293 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/protocol/api.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"71121c04e2cce5f1b5a484fcbc5ae33e4bb1af6319c89d205a317072d4b31387"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): internal/adapters/transport/cli/runtime/runtime_picker.go:95-108 | internal/adapters/transport/cli/runtime/runtime_picker.go:110-123 | internal/adapters/transport/cli/runtime/runtime_picker.go:125-141 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8b455b66f70ed6068234cff3531107fc0c159dad745f7e4db441928c33b06d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/environment/bun.go:56-70 | internal/adapters/environment/uv.go:56-70 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/environment/bun.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2bdc8d8ca1d751b4d2bac40c9c5d1f781ebaa3b843cfcf6b91360808a1c71a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/adapters/transport/channel/discord/discord.go:28-59 | internal/adapters/transport/channel/weixin/weixin.go:25-55 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8f6b7e66cef0c6a9603c0be39310b827876af2d4abe192de9cb5e28f22f514"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/app/tools/registry.go:204-219 | internal/app/tools/registry.go:221-236 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/tools/registry.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b19974c6a7b2e5ac29ce367b43b662b72733f6560fa31d6f505d2d5c350c074"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/tools/mcp/client.go:124-138 | internal/app/agent/catalog/common/definition.go:197-212 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/mcp/client.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0b0c2bd8d19104df1e1d463a583d28ef9c77dfa20b14a76bfffae1f7547157"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/adapters/transport/cli/runtime/runtime_render.go:253-273 | internal/adapters/transport/cli/tui/text_render.go:22-43 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"internal/adapters/transport/cli/runtime/runtime_render.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1f5f728852da60bcaff20f97b186c9c4663acdcecc102dd60bed5e5efb41d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/adapters/runtime/agentkit/model.go:72-82 | internal/adapters/runtime/agentkit/model.go:159-176 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/model.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e6b3f1580e724f7decc7dee77b4bfdb9fad0df0ecae2a0d8eede5558b6e892"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/adapters/model/providers/providerkit/config.go:82-93 | internal/adapters/transport/http/handler/openai_api.go:189-200 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/providerkit/config.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"808fb555ef03d7d6e92c5eb70ad58b4c3e2c6d000d15b36f506a67828088c5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/adapters/tools/builtin/doc/func.go:334-351 | internal/adapters/transport/cli/update/update.go:340-357 \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":"internal/adapters/tools/builtin/doc/func.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"0151c19ff739bc9f0d08560ceeddbab42cd5341432344b91c52896151a2584ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/model/providers/copilot/token.go:255-269 | internal/adapters/tools/builtin/script/bun/func.go:349-369 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/copilot/token.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a6858b432ed22ede605bd7abe843d84a81f031e3645670366c0d7bcc692b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/adapters/storage/file/share/preview.go:103-115 | internal/adapters/storage/file/share/session.go:125-140 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/share/preview.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f6e0cec2e5920ff101b24871ff8f01336bd4940cb7c6c22e3e6f8800817ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): internal/adapters/transport/http/handler/skills.go:131-147 | internal/adapters/transport/http/handler/skills.go:191-205 | internal/adapters/transport/http/handler/skills.go:230-247 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/skills.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9db02e508b112d9e6187d75b3e337cc2bfa2e1e8043e0d2cd2170588a3516d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/runtime/agentkit/providers/claude/claude.go:14-28 | internal/adapters/runtime/agentkit/providers/openrouter/openrouter.go:14-28 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/providers/claude/claude.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b2fd98b95bb9635ea6061846bf72a29057e6141c33910017e77ea5339ae1bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/adapters/tools/javascript/state.go:58-73 | internal/adapters/tools/javascript/state.go:75-90 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/javascript/state.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"48903c65be8c11966834493566cfa7376b803b2c15e1bb88379337eae1fd1ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/adapters/transport/http/handler/session.go:35-44 | internal/adapters/transport/http/handler/session.go:47-56 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/session.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3135dcf40c9f931ea82fa8d7e176fadffafb72bababe89b621fca8be788ae76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/runtime/turn/interrupt.go:26-43 | internal/runtime/turn/interrupt.go:45-60 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/turn/interrupt.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ebb95726e91ef03b10b544ffd433dbb247736793a1bc5167f8502b4eeb1b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/transport/cli/runtime/query.go:183-196 | internal/app/chat/taskstream/queue.go:119-133 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/query.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31aa14f6cba3653b329ce62fd8d29ee2cc7326dca05e239dd5ef377dd8f734d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): internal/runtime/hooks/invoke.go:13-28 | internal/runtime/hooks/invoke.go:62-77 | internal/runtime/hooks/invoke.go:89-104 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/hooks/invoke.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"525f824a0d62b8bb301fb5af6003bef2d636eda49c3bbeee4e08d8960d4a4120"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/app/lifecycle/lifecycle.go:291-304 | internal/app/lifecycle/lifecycle.go:306-319 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/lifecycle/lifecycle.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"75245680665ffed997602fd28e7d10076b8f998bbec612b706063b0533674bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/storage/file/share/preview.go:88-101 | internal/adapters/storage/file/share/session.go:110-123 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/share/preview.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe1e6710be8dd785f9e0883ebe88f7df5b0032f2cae681978ba31c1a8631610"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/transport/channel/discord/discord.go:479-496 | internal/adapters/transport/channel/qq/qq.go:321-335 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74678a28b7dd9734f9fcc1ce3568554e7ec28ce27c066f6c3f3e701a9a50f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/runtime/agentkit/middleware.go:21-34 | internal/adapters/runtime/agentkit/middleware.go:51-64 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middleware.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63a38b63269b4c7b3d6ff427a6710ede45a0a56a6dfecfc2c9d31ad03232bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): internal/runtime/turn/interrupt.go:13-23 | internal/runtime/turn/interrupt.go:63-74 | internal/runtime/turn/interrupt.go:77-90 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/turn/interrupt.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bff69f3789ebbf222e99af9c040487a0a02832b4b3f8bac12eec6bab9e84807"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/transport/http/handler/memory.go:68-82 | internal/adapters/transport/http/handler/memory_editor.go:39-52 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/memory.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa89864116a7c1618f3fe2e5bfd787484934de5f3aeee70a9d0a84adf84beca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/app/agent/catalog/deep/deep.go:127-141 | internal/app/aiassist/service.go:633-648 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/agent/catalog/deep/deep.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"920a09b2e19817f26e1c7b376e410d08061c3d7639b63d540a87e6d6d5fcacb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/runtime/events/emitter.go:166-181 | internal/runtime/events/emitter.go:197-211 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/events/emitter.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"05db48036fed354f33ecb931601caece7be03a109d78a063c5bb261a0a5a8369"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/adapters/transport/cli/tui/markdown.go:886-896 | internal/adapters/transport/cli/tui/runtime_widgets.go:475-487 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1bd1dde601adf7b52014a64d647a130ca0ec030edf2a78964bcf024b4b4956"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/transport/cli/runtime/runtime_history.go:618-633 | internal/adapters/transport/cli/runtime/runtime_history.go:635-648 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d8f36c2553e0e3fac17a64a06dc3febfb04c0080e8f1ee5365c502b06833f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/adapters/transport/http/handler/config.go:292-302 | internal/adapters/transport/http/handler/config.go:306-316 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/config.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"5680df9afca8590354781ddee0744b3578368f436e6530e76be8582d0d4682c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/adapters/transport/cli/runtime/query.go:71-85 | internal/adapters/transport/cli/runtime/query.go:458-473 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/query.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"268e0cfe76938e850f902808dbc02f00c0e74a6d80df9b178e3fa1aeb29f0d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/adapters/transport/cli/tui/panel_render.go:95-111 | internal/adapters/transport/cli/tui/runtime_widgets.go:333-349 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/panel_render.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa55ee43a077c693f47c7d753a1ab754f34b81809aa0f2aba9402854746b5d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/transport/cli/tui/member_panel.go:447-461 | internal/adapters/transport/cli/tui/tool_panel.go:177-190 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/member_panel.go"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e62d85e1430be79083c7e46ee7df99a9f435d35205c549bee7a2add0e854d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/adapters/scheduler/filecron/scheduler.go:499-514 | internal/adapters/transport/channel/weixin/sdk/bot.go:383-399 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ad8c9bf32e7af11e5c261c08cd92fd77fce5d9b97f58c6f6017824fd374b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/adapters/transport/cli/runtime/runtime_ask.go:96-112 | internal/adapters/transport/cli/runtime/runtime_approval.go:64-80 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_ask.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5148ba34a87d215a2d9f4cb23806ae9d1618bbe59b69a23cfea8cd67b60c61a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): internal/adapters/model/providers/copilot/copilot.go:187-196 | internal/adapters/transport/channel/weixin/sdk/bot.go:608-617 | internal/adapters/transport/cli/runtime/input.go:29-41 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/copilot/copilot.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2d4b8175511db8faa9084b6c0eb55789240b00f04ac275e56aea94ccb6bc4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/bootstrap/tools/javascript.go:130-141 | internal/adapters/transport/http/handler/javascript.go:113-124 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/bootstrap/tools/javascript.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"393471575b3ed1b85bf0ea5a2608eee57d4c2874f21bf353f37f11894c90b438"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): internal/adapters/runtime/agentkit/providers/ark/ark.go:14-25 | internal/adapters/runtime/agentkit/providers/ollama/ollama.go:14-24 | internal/adapters/runtime/agentkit/providers/openai/openai.go:14-26 | internal/adapters/runtime/agentkit/providers/qwen/qwen.go:14-25 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/providers/ark/ark.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de17c5f08f04e4d3a02de6fd75889cf8ccf5a960505a8b9d01a459277fa5822"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/adapters/storage/file/share/preview.go:29-39 | internal/adapters/storage/file/share/session.go:44-54 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/share/preview.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db134119e2e635971cde878447bd40944ca4cd7353eb0ded0576cc244d31142"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): internal/adapters/transport/cli/tui/prompt.go:78-89 | internal/adapters/transport/cli/tui/prompt.go:92-103 | internal/adapters/transport/cli/tui/textarea.go:68-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/prompt.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6ef4831027bb26b3e0046c417dfa4204331f56c83c0effe78177614982d3a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/adapters/tools/workspace/fs.go:22-35 | internal/adapters/tools/builtin/doc/func.go:381-390 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/workspace/fs.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8889f72835d77357ddb4cbacf9786dd3cdcc7c593ea7de849125590a3b8a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/adapters/storage/file/share/store.go:168-176 | internal/runtime/checkpoint/memory.go:28-36 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/share/store.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b7f1cf07eecbb5df303d2975dd3bb20c0ef401665e6ed82e922f87d65fcdf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/adapters/hooks/javascript/handler.go:180-190 | internal/adapters/tools/javascript/tool.go:40-50 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/hooks/javascript/handler.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcffa121e6ee73411b769af8188f8c58dcda275d85f05fbc52e8520fa1e4caa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/adapters/storage/file/history/transcript.go:258-265 | internal/adapters/transport/channel/bridge.go:652-659 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/transcript.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa586033cda584d0e816cf27d6e972c33e56bb55f1c365160d69de2c0ac3359"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/adapters/transport/channel/qq/session.go:164-176 | internal/adapters/transport/channel/weixin/sdk/bot.go:735-744 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/qq/session.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e214bbb9a9b3ecef3a609e57a9be4d733b0cc8f1a99419a7aaa1a055daeb38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/adapters/tools/builtin/script/bun/func.go:249-265 | internal/adapters/tools/builtin/script/uv/func.go:254-270 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7053d63e8894fd0c13539c8c6bcd331fdf4371986e1361ec08f31665adb21bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): internal/adapters/model/providers/providers.go:193-200 | internal/adapters/storage/file/history/history.go:155-162 | internal/adapters/transport/channel/channel.go:95-102 | internal/runtime/model/model.go:54-61 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/providers.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b528c53882910df98db21088995eb40db152fa19721bb2f497900e1ab86ffa98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/adapters/runtime/agentkit/middlewares/dispatch/view.go:193-208 | internal/adapters/transport/cli/tui/member_panel.go:229-242 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/dispatch/view.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d19665b40692f6dd1676d59d5c41ae59279f260f36e2a4cedc5ae4f7a2d9424"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/adapters/tools/builtin/script/bun/func.go:135-147 | internal/adapters/tools/builtin/script/uv/func.go:156-167 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"99edbf43b46ce061b2d2ee7d547450f1e776df485355c306f12fc321a9c7b6a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): internal/adapters/tools/builtin/script/bun/func.go:474-512 | internal/adapters/tools/builtin/script/uv/func.go:448-486 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/script/bun/func.go:474\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d9a9f4cc516082e0071ff5ecbc4318bae9f588fb75ab15aa695de791f26d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): internal/adapters/tools/builtin/script/bun/func.go:527-558 | internal/adapters/tools/builtin/script/uv/func.go:502-533 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/script/bun/func.go:527\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"41aace62a90f75da74d2a2eeb9035e1b033917a6b7ad9aa29f04a37509df1efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): internal/adapters/transport/http/handler/preview.go:207-230 | internal/adapters/transport/http/handler/preview.go:348-371 | internal/adapters/transport/http/handler/preview.go:637-660 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/preview.go:207\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/adapters/transport/http/handler/preview.go:232\u0060 calls \u0060authorizePreviewPassword\u0060, \u0060GetHeader\u0060 and \u0060internal/adapters/transport/http/handler/preview.go:372\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea555fecd0a120ba7e3f718c4ab8341a256ab3dd236d6b36ac725e321333cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): internal/adapters/transport/channel/discord/discord.go:408-431 | internal/adapters/transport/channel/weixin/weixin.go:333-356 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e4d851f60007077f46faab8fbeb42d968657162645defb321977e6285bb0c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/adapters/model/providers/providers.go:19-41 | internal/runtime/model/model.go:13-35 \u2014 before extracting anything, compare \u0060internal/adapters/model/providers/providers.go\u0060 and \u0060internal/runtime/model/model.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b6eefc805b9c8409597ee3c680164503b8b9ea53d651f583b415e9ec6e0171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): internal/adapters/model/providers/providers.go:151-173 | internal/runtime/model/model.go:119-140 \u2014 before extracting anything, compare \u0060internal/adapters/model/providers/providers.go\u0060 and \u0060internal/runtime/model/model.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/providers.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a14d4ec607e47d0e57755fb660249813fefc5e6ce72e174190ed2242c4c2200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/adapters/transport/cli/eventview/print_stream.go:254-276 | internal/adapters/transport/cli/tui/panel_render.go:67-89 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_stream.go"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ab67c995537635cb8f51dfdca51bf1d07640889be0493c704a0e7ce065b066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): internal/adapters/transport/cli/eventview/print_markdown.go:260-281 | internal/adapters/transport/cli/eventview/print_markdown.go:302-323 \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":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a38a9f8515986f0de13657dac1259f2b153d0feccfcf06308bd59fb387edecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): internal/adapters/transport/cli/commands/serve.go:17-35 | internal/adapters/transport/cli/commands/web.go:17-35 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/commands/serve.go:17\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/commands/serve.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9d87c60a31319093ab5d3b740f4c55007f7888d47e6d73770cc9cd210480d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/adapters/tools/builtin/script/bun/func.go:38-54 | internal/adapters/tools/builtin/script/uv/func.go:37-53 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 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":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3051e98f4a243f6e0f0846c55dac293c0348a19c1923b63f21ba929d2b6468f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/adapters/transport/http/handler/http_chat.go:40-56 | internal/adapters/transport/http/handler/stream.go:41-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/http_chat.go:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c914c7d54c7295b2b2ea5c9fba5f7bc064cf0cf2e1a5971f56ef273613a8e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): internal/adapters/tools/builtin/search/duckduckgo.go:25-40 | internal/adapters/transport/cli/update/update.go:141-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/search/duckduckgo.go:25\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/search/duckduckgo.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20c8ff057eb35524dc73f5512c710309be4ec67387be855589624d60d02b28a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): internal/adapters/transport/cli/eventview/print_format.go:49-64 | internal/adapters/transport/cli/eventview/print_markdown.go:128-141 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/eventview/print_format.go:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060content\u0060 in one and \u0060getResult func()\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5840f2ceffa3acd7f9367de26202475ce4df62fb1f3f2c75e885cddb363a9f40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): internal/adapters/tools/builtin/script/bun/func.go:499-513 | internal/adapters/tools/builtin/script/uv/func.go:473-487 | internal/adapters/tools/builtin/script/uv/func.go:617-631 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/script/bun/func.go:499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb018ffc9a689477a8510294d99408b8962c3ee54f7068ced1d99708a5054d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/adapters/tools/builtin/script/uv/func.go:492-506 | internal/adapters/tools/builtin/script/uv/func.go:636-650 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/script/uv/func.go:492\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/uv/func.go"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12d3fac2b32303a488f451803f460bfb1906ba85a6da2968e008e9fba3aa2a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/adapters/transport/cli/runtime/runtime_render.go:257-271 | internal/adapters/transport/cli/tui/text_render.go:27-41 \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":"internal/adapters/transport/cli/runtime/runtime_render.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4f4c73a8e837f0589281b3e7929265ffe249812f500a74a11cf378d91654b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): internal/adapters/transport/http/handler/files.go:133-147 | internal/adapters/transport/http/handler/files.go:178-191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c2412d2104aee904a5d5f788d32ddb4121afdde21f1e4e098f509aefe42994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/adapters/hooks/javascript/handler.go:65-78 | internal/runtime/hooks/bus.go:140-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/hooks/javascript/handler.go:65\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060internal/runtime/hooks/bus.go:140\u0060 is reached only past a guard at line 129 that tests \u0060inv.Payload\u0060 and leaves the function early, and \u0060internal/adapters/hooks/javascript/handler.go:65\u0060 reads \u0060inv.Payload\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/hooks/javascript/handler.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9103a32cf47fd52029c9c72db2703c372eb7678e5fe8cebd05892496833a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): internal/adapters/tools/builtin/ssh/ssh.go:208-220 | internal/runtime/executil/output.go:57-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/ssh/ssh.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c677973a020a8000631f475bc58e4c712668e19e095046b4ecd9a70a97cc94d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/adapters/transport/channel/discord/discord.go:65-78 | internal/adapters/transport/channel/weixin/weixin.go:63-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/channel/discord/discord.go:65\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"30902d8544987a6c4c520b8e9e7b0341a562a15dffaa62d6e564fb2c7e0344ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/adapters/transport/channel/qq/qq.go:273-286 | internal/adapters/transport/channel/qq/qq.go:301-314 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/qq/qq.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5f3b2abe5eb76af2a59d4379adead70c28d0a3851afb6ad62204289a020dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/adapters/transport/cli/runtime/runtime_ask.go:292-305 | internal/adapters/transport/cli/runtime/runtime_update.go:199-212 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_ask.go"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9824e0f73cb438420b0a90c9d294adb0530f4ccd255a6172d6a79d8f3eb7bcd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/tools/builtin/script/bun/func.go:180-192 | internal/adapters/tools/builtin/script/uv/func.go:192-204 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/script/bun/func.go:180\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46b2d794881ff39638e8b9e834637d4d41921c304983d16afcb03522af19f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/tools/builtin/script/bun/func.go:234-246 | internal/adapters/tools/builtin/script/uv/func.go:239-251 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/script/bun/func.go:234\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"737a012fe5e60a226bab4529fbc378f11eb6bc3201fc5bd365676f22fae7e816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/tools/builtin/script/bun/func.go:455-467 | internal/adapters/tools/builtin/script/uv/func.go:429-441 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/script/bun/func.go:455\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c5c75c4b144a68ab7c252a61a134e38d8502b7d442b00ca8c322b1aea21e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/transport/channel/weixin/sdk/bot.go:142-154 | internal/adapters/transport/channel/weixin/sdk/bot.go:162-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/channel/weixin/sdk/bot.go:142\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfabd6e403ac8480a55b862be894d87546332639082f10b50e4108344616fccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/transport/cli/eventview/print_format.go:101-113 | internal/adapters/transport/cli/eventview/print_format.go:500-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/eventview/print_format.go:101\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03102130fef8ef25b2e775231fdbc94c07fefd5a49fd581ad1b80d0678ad4ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/transport/cli/eventview/print_format.go:340-352 | internal/adapters/transport/cli/eventview/print_format.go:362-374 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/eventview/print_format.go:340\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/adapters/transport/cli/eventview/print_format.go:360\u0060 calls \u0060WriteString\u0060 and \u0060internal/adapters/transport/cli/eventview/print_format.go:338\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e04509a993730ff34d74979542a7b6b6b2fafe7467f804e41e60af203d7707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/transport/cli/eventview/print_stream.go:351-363 | internal/app/agent/catalog/toolmeta/tool_display.go:119-131 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_stream.go"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb3c4ac30f4553b51666fc3fdc1fd72bd79278f1e35217c0e205b1f208b38c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/transport/http/handler/chat.go:299-311 | internal/app/chat/taskstream/protocol.go:204-216 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/chat.go"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35d316afc5d979575689899feab96e4256301083d8868e47aacf40d62e04274"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/app/skill/export.go:258-270 | internal/app/skill/export.go:289-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/skill/export.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53d7ef2af674c123c568341d4a85e4f2b91b0bea091f6dc882959575c6680bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): internal/adapters/transport/cli/runtime/runtime_ask.go:293-304 | internal/adapters/transport/cli/runtime/runtime_update.go:200-211 | internal/adapters/transport/cli/runtime/runtime_update.go:268-279 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/runtime/runtime_ask.go:293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_ask.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eca8bc48ffb051ab0322670ca0cfea15b56fd611b083419ce76dd14903e3e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): internal/adapters/transport/http/handler/stream.go:209-220 | internal/adapters/transport/http/handler/stream.go:768-779 | internal/adapters/transport/http/handler/stream.go:801-812 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/stream.go:209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9511e20496e6208b9c4caf3f101805ccd42fde92b81a5518847a92d8b4cea2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/adapters/model/providers/providers.go:117-128 | internal/adapters/model/providers/providers.go:219-230 \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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ab047808b0e1410d78cbe46fe3c7c9592bd21ad00fcac8c076020d1492a389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/adapters/runtime/agentkit/message.go:168-179 | internal/adapters/runtime/agentkit/message.go:223-234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/runtime/agentkit/message.go:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/message.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac66125dfc00c60f852fc1adf36f2b982e3bb35a5ad8c673e7cd34f467c91a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/adapters/storage/sqlite/documents.go:74-85 | internal/adapters/storage/sqlite/documents.go:117-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/sqlite/documents.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03e2a9100897e71159861fe39e3fcdf2158e5066c341974586cf3a0b232440a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): internal/adapters/tools/builtin/file/func.go:359-370 | internal/adapters/tools/builtin/file/func.go:411-419 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/file/func.go:359\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d80adea3694793103d64c55de9605e30ebc9787f5c7cbf92b71ff9005270cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/adapters/transport/cli/tui/member_panel.go:478-489 | internal/adapters/transport/cli/tui/tool_panel.go:207-218 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/member_panel.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c9bfc3f115ec97a249068c830d124aa4605615e421cd3bbb7a3ce23dfa24db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/adapters/transport/http/handler/files.go:497-508 | internal/adapters/transport/http/handler/files.go:1217-1228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/files.go:497\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef4d8a51c1a51440ef8e106009bac20ddbe40735db6a1df79bdfa2bba2e70f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/adapters/transport/http/handler/schedule.go:156-167 | internal/adapters/transport/http/handler/schedule.go:182-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/schedule.go:156\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/schedule.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"982fd186d43faedb68fae54a47563ff68895ce473bc5c1f145bde3e70931b040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/adapters/transport/http/router/router.go:247-258 | internal/adapters/transport/http/router/router.go:359-370 \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":"internal/adapters/transport/http/router/router.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4f7220c67d3f8ddebe86783297c590f8a3e47e774ae297f3436783d9e031b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/adapters/storage/file/history/history_record.go:103-113 | internal/adapters/storage/file/history/history_record.go:135-145 | internal/adapters/storage/file/history/history_record.go:837-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/storage/file/history/history_record.go:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a909dcb0421fd8aa5ea49ef2554285a6d48800e855226fa9320ccfb77d703096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/adapters/tools/builtin/script/bun/func.go:524-534 | internal/adapters/tools/builtin/script/uv/func.go:499-509 | internal/adapters/tools/builtin/script/uv/func.go:643-653 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/script/bun/func.go:524\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbf9469047a1cafd4da5266a05511805221e5ee2e0249b5b5f0b268d252fa0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/model/providers/providers.go:123-133 | internal/runtime/model/model.go:71-81 \u2014 before extracting anything, compare \u0060internal/adapters/model/providers/providers.go\u0060 and \u0060internal/runtime/model/model.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/providers.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a695f2d7b102a8c3ac9a92a94a1fd69bbb12988600c5db1f869295af9392e0c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/tools/builtin/excel/batch.go:238-248 | internal/adapters/tools/builtin/excel/batch.go:748-758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/excel/batch.go:238\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/excel/batch.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a9d8f4daaf4c1d5411d3154bf96554274cce6ea49aa6bc5edcbc9c25dd5646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): internal/adapters/tools/builtin/file/func.go:39-49 | internal/adapters/tools/builtin/git/func.go:31-40 \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":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba523d179c13553e6cb573b79e596c50515eb63ab9f9a46e6349d2e2698605e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/tools/builtin/script/bun/func.go:71-81 | internal/adapters/tools/builtin/script/uv/func.go:73-83 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ae5faf2ebe4598b852b897ad56f9170cdbcb53daf01dcd0ed7c2402ac35224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/transport/cli/runtime/runtime_history.go:200-210 | internal/adapters/transport/cli/runtime/runtime_history.go:222-232 \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":"internal/adapters/transport/cli/runtime/runtime_history.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6552c9e4bdee1c9b8a4a8a83e6e985988775a02b9f7a70eed41532428e2ecd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/transport/cli/runtime/runtime_picker.go:176-186 | internal/adapters/transport/cli/tui/select.go:59-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc98bb51f4d008e0fa9db5b50fcdf73e409b052f45c0f4e74d823fa640598b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/transport/http/handler/files.go:633-643 | internal/adapters/transport/http/handler/files.go:971-981 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"580dc13c7783d939cfa41ba4f23960495a3d81d966ff235604f055919a7dea35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/transport/http/handler/schedule.go:84-94 | internal/adapters/transport/http/handler/schedule.go:130-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/schedule.go:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/schedule.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67ef8b9526159fde3411e60f4d7d2b886683bc3faf62d3cefd356b677305484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/transport/http/handler/stream.go:507-517 | internal/adapters/transport/http/handler/stream.go:831-841 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c47988034c74980a83deb459b509e0f890f4ac72f72f14758dc0915a9b8d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:201-210 | internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:340-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:338\u0060 calls \u0060HasPrefix\u0060 and \u0060internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:199\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4b41bf13111a62b1641cbd0bae708f1cc50ea5a1f340d5d57e52fac8b196a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/scheduler/filecron/scheduler.go:920-929 | internal/adapters/scheduler/filecron/scheduler.go:1025-1034 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/scheduler/filecron/scheduler.go:920\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee0b1d0fa4ae4c037dff05e244057f11a34d80dedf3e5602e7772e412fd0e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/storage/file/history/session_repository.go:137-146 | internal/adapters/storage/file/history/session_repository.go:173-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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/session_repository.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2f734edcd7b4455acb74045289ac7c9fc9d966b3b0d095bf5e8db74b15a51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/transport/channel/weixin/sdk/bot.go:413-422 | internal/adapters/transport/channel/weixin/sdk/bot.go:434-443 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/channel/weixin/sdk/bot.go:413\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"2435a33e4921daacba849b8f0e6c9083a72a1cf00768c56ce14e159ba69ac20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/transport/http/handler/files.go:154-163 | internal/adapters/transport/http/handler/files.go:196-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/files.go:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56dd4aeba0a2bed4029b163e0d705f5f074aaa626af2771db323d364ad83cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/transport/http/handler/http_chat.go:78-87 | internal/adapters/transport/http/handler/stream.go:84-93 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96e4e567f3c35b176b9b36d3e4e4c6717bd73c9819d5da30516e4f9d16c7899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/transport/http/handler/schedule.go:32-41 | internal/adapters/transport/http/handler/schedule.go:61-70 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/schedule.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5af39cb8915e5bb9fe529892efaa29a94362c6046e8db6b8b325c4f6704152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/runtime/pathguard/pathguard.go:100-109 | internal/runtime/pathguard/pathguard.go:122-131 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/runtime/pathguard/pathguard.go:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/pathguard/pathguard.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b92a372ae596af5b60bfcb92a1e852acaf8743c49121ceff27a145a69db98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): internal/adapters/transport/http/handler/http_chat.go:39-47 | internal/adapters/transport/http/handler/stream.go:40-48 | internal/adapters/transport/http/handler/stream.go:199-206 | internal/adapters/transport/http/handler/stream.go:266-273 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"93257a7c5d9fd06a3ab1010f160598f78af1cc8fb07bd131b801acc5972255ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/adapters/transport/http/handler/stream.go:472-480 | internal/adapters/transport/http/handler/stream.go:506-514 | internal/adapters/transport/http/handler/stream.go:830-838 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/stream.go:472\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"634d1d676f1aff2617e03575769fcb4db55adfc46e3642a6ce891485889af8d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/adapters/storage/file/history/history_record.go:365-373 | internal/adapters/storage/file/history/history_record.go:768-776 \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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c734dfd4a5bee6eaf20db699d13a2181270cd80d0d36d479c819a24281f9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): internal/adapters/storage/file/history/history.go:244-251 | internal/adapters/storage/file/history/history_record.go:103-110 | internal/adapters/storage/file/history/history_record.go:135-142 | internal/adapters/storage/file/history/history_record.go:837-844 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/storage/file/history/history.go:244\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b1aba952226453285072acb2ae0653b255d0819acaf2509213b38cd0199547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/adapters/transport/http/handler/session.go:262-269 | internal/adapters/transport/http/handler/session.go:294-301 | internal/adapters/transport/http/handler/session.go:325-332 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/session.go"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddf2c722b64429d48567a0b0813afc45e23afb920c3a215da029441204e90ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/storage/file/history/history_persist.go:189-198 | internal/adapters/storage/file/history/history_persist.go:318-327 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/adapters/storage/file/history/history_persist.go:188\u0060 calls \u0060ensure\u0060 and \u0060internal/adapters/storage/file/history/history_persist.go:317\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history_persist.go"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"125ca12fe7e7fc5dc163cb8609927e078c0ce6140b5a6b247433af9fe34420a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/adapters/storage/file/history/session_repository.go:111-118 | internal/adapters/storage/file/history/session_repository.go:127-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/storage/file/history/session_repository.go:111\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/session_repository.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3329090b6c8b0555049bff96da06fb84a26f78fee2aad0c5304833f5efb055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/adapters/transport/cli/runtime/runtime_picker.go:166-173 | internal/adapters/transport/cli/tui/select.go:49-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/runtime/runtime_picker.go:166\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6f3116d5614ab6edb88480a252203b9448cd00a5e4276e72bf0c4953209752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/model/providers/providerkit/config.go:83-89 | internal/adapters/transport/http/handler/openai_api.go:190-196 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/model/providers/providerkit/config.go:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/providerkit/config.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b7142c50fea56c9eaaf3d33e7398d6354b10bad885344d846df360105c3b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/storage/file/queue/store.go:267-273 | internal/adapters/storage/file/queue/store.go:302-308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/storage/file/queue/store.go:267\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/queue/store.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c2deec0273186f8ceb37e576225a8fb8264cebc8945ee883b88220b3d3a6da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/adapters/tools/builtin/file/func.go:531-538 | internal/adapters/tools/builtin/file/func.go:642-649 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/tools/builtin/file/func.go:531\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f9792f95505f0822541ec7f074dd1a83d5dd3692299b1d2e4de4a4ace8d878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): internal/adapters/transport/http/handler/preview.go:221-227 | internal/adapters/transport/http/handler/preview.go:322-327 | internal/adapters/transport/http/handler/preview.go:362-368 | internal/adapters/transport/http/handler/preview.go:651-657 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/preview.go:221\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6c48d39ff46ed9fd6bb0706dda0df74ad1c4669c781f222b8b1fbf77386ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/adapters/transport/http/handler/aiassist.go:176-182 | internal/adapters/transport/http/handler/javascript.go:48-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/aiassist.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2074c87ec070d85a113bf84403bdf4e27e2845a16df9cd3e3a843fc393c03ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/storage/file/history/history_persist.go:181-187 | internal/adapters/storage/file/history/history_persist.go:311-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":"internal/adapters/storage/file/history/history_persist.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d37b9bbebdce9c445445f2809c1f5b72c6dd936769f3282f0b45242bee85392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): internal/adapters/model/providers/providers.go:67-75 | internal/app/agent/catalog/registry.go:53-61 | internal/app/tools/registry.go:79-87 | internal/runtime/model/model.go:90-98 \u2014 before extracting anything, compare \u0060internal/adapters/model/providers/providers.go\u0060 and \u0060internal/runtime/model/model.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f054572ce1d8d2a608ae02344636199e732d8b408e36217b59e9e6068fd64c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/adapters/model/providers/providers.go:78-84 | internal/app/agent/catalog/registry.go:64-70 | internal/runtime/model/model.go:101-107 \u2014 before extracting anything, compare \u0060internal/adapters/model/providers/providers.go\u0060 and \u0060internal/runtime/model/model.go\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a980384c3168f651d048186aff2ca474e01852e0cb3362a380a80d8efc7678ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:68-72 | internal/runtime/pathguard/pathguard.go:92-96 \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":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dcdca4f17f567adb097511419a97e1a42c3d6da0dbe22d832a8ee701a38ee5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): internal/adapters/scheduler/filecron/scheduler.go:1115-1120 | internal/adapters/transport/http/handler/files.go:1534-1539 | internal/app/skill/install.go:233-238 \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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5513123df38def117c98f2f7d49c801860339e46e46fad12b00d7ea64aa44cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/adapters/storage/file/history/chat_store.go:84-91 | internal/adapters/transport/cli/runtime/query.go:506-513 \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":"internal/adapters/storage/file/history/chat_store.go"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad7b586581be4a4a96567a11a27216ae93500142e90c61152a12432a27fe2dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/adapters/tools/builtin/script/bun/func.go:436-450 | internal/adapters/tools/builtin/script/uv/func.go:402-416 \u2014 \u0060internal/adapters/tools/builtin/script/bun/func.go\u0060 and \u0060internal/adapters/tools/builtin/script/uv/func.go\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 10 separate duplicated blocks between them, totalling at least 179 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":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab15e47dddf8d156684f5a2cf3b8a21e51f1f91d55f13ba6a2a1e1c939693d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/adapters/tools/builtin/ssh/ssh.go:222-226 | internal/runtime/executil/output.go:72-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/ssh/ssh.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"241d51dc3b01d2672e34c251ff9be9d5e2b5b1aaa4d1554074804a343aa4379a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/adapters/transport/channel/discord/discord.go:433-440 | internal/adapters/transport/channel/weixin/weixin.go:359-366 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060c *Channel) stopTyping(chatID\u0060 in one and \u0060c *Channel) stopTyping(userID\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfd829f30d9840b97ba5b03b1b30fc79dd9fa8b3b5c5401ee10d52aca4f275a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/transport/channel/discord/discord.go:442-448 | internal/adapters/transport/channel/weixin/weixin.go:368-374 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060c *Channel) removeTyping(chatID\u0060 in one and \u0060c *Channel) removeTyping(userID\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c1995b93cbc33a35b371072b7c29207b5c02335af413e72266d88ff9a5a316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/adapters/transport/channel/discord/discord.go:450-457 | internal/adapters/transport/channel/weixin/weixin.go:376-383 \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":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad5a8db6f2633d11bf94b14f20bd38111be017e644c71a2fa62896b3b126745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/transport/channel/weixin/sdk/protocol/api.go:215-224 | internal/adapters/transport/cli/update/update.go:229-238 \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":"internal/adapters/transport/channel/weixin/sdk/protocol/api.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"426333dea277800bb0bc820962e00f7c6104eb41042c1fa53cbb29d14218a5f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/transport/cli/commands/auth.go:181-187 | internal/adapters/transport/http/handler/preview.go:475-481 \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":"internal/adapters/transport/cli/commands/auth.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a77a21b3c9c9065708872c0fd43818e20556e1d186ba8b465d9c23d8f5b4797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/transport/cli/eventview/print_stream.go:389-395 | internal/adapters/transport/cli/tui/member_panel.go:409-415 \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":"internal/adapters/transport/cli/eventview/print_stream.go"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e256a168ab2b505ca45ab1cff504e507ab1806fe5280bebf7810bf680bdf69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/adapters/transport/cli/tui/markdown.go:25-30 | internal/adapters/transport/cli/tui/panel_render.go:27-32 \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":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f167847f25b6473e2965c461536aa5b895b6ffdc6154843496ceb75e46c5788e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/transport/cli/tui/member_panel.go:463-475 | internal/adapters/transport/cli/tui/tool_panel.go:192-204 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/member_panel.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d019e96aed1439825828880a758df2c78f7521fda03cf0afac5c0f2506875d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/runtime/agentkit/message.go:106-112 | internal/adapters/runtime/agentkit/model.go:186-192 \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":"internal/adapters/runtime/agentkit/message.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9d337971bba33faf569ab7307ea0df12a923fe4744949f0a6dfca65fbf6029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/app/tools/registry.go:63-69 | internal/ports/runtime/tool.go:48-54 \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":"internal/app/tools/registry.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b093bee2e3f078df2175d785dee3d7e2295afa96dbaabd2c7d613c5a0112d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): internal/ports/runtime/interrupt.go:49-55 | internal/ports/runtime/runtime_context.go:40-46 | internal/ports/runtime/runtime_context.go:58-64 | internal/ports/runtime/runtime_context.go:83-89 | internal/ports/runtime/runtime_context.go:108-114 | internal/ports/runtime/runtime_context.go:133-139 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/ports/runtime/interrupt.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9c54b6dc13ac4a9663ce5ca7b2c21fd95e4bc8dca9de566115a8b751beb53b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/adapters/transport/cli/commands/login.go:401-415 | internal/adapters/transport/cli/commands/model.go:188-202 \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":"internal/adapters/transport/cli/commands/login.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"e167a385cc964b530d1285a2d6f0e7732c572342f652d8acc84e5e88d570007c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/transport/http/handler/preview.go:154-166 | internal/adapters/transport/http/handler/session_share.go:176-188 \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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9409928cea466e4537126f702bf3366787e82a62b86e3629cdd7d5d41d3adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:76-88 | internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:323-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"411f9aedd90f4bb86b145a49fed79aac9f14bf3172132bf1ec43d00cdaf580c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/adapters/environment/bun.go:40-52 | internal/adapters/environment/uv.go:40-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/environment/bun.go:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/environment/bun.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5070e763e6e7c3b7f88a65c368e47869643e6fb1e8f077017e10023d10859182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/transport/cli/commands/model.go:243-252 | internal/adapters/transport/cli/commands/model.go:360-370 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/commands/model.go:243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/commands/model.go"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b8b106a3e5d770c558362b8a9e12cd857a7d4af7c47c6b2f8c5b321f700121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/storage/sqlite/documents.go:75-85 | internal/adapters/storage/sqlite/documents.go:98-108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/sqlite/documents.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa82bf232932bfb5ede8b01167e4df2f0d5f70e3b811a681f8c97d7d53ab0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/adapters/storage/file/share/preview.go:59-69 | internal/adapters/storage/file/share/session.go:74-84 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/storage/file/share/preview.go:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/share/preview.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"273b038378461b7d697482058440dc7af0c5c7cde569e27bf0ca030967189be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/transport/cli/update/update.go:279-288 | internal/app/skill/install.go:89-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/update/update.go:279\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/update/update.go"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c744b9f86b8a2510dcfe565eb8f38b897468dbd83923cd895d6aa1a1d814a008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/adapters/transport/http/handler/files.go:592-601 | internal/adapters/transport/http/handler/files.go:1581-1589 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/http/handler/files.go:592\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ffa613f705eef31ffdcfa30f91966cf4e9183299bd92d6869ba9aff0fe3a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/adapters/environment/bun.go:24-33 | internal/adapters/environment/uv.go:24-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/environment/bun.go:24\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/environment/bun.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5801e200fd930c4f36248cd5d1367a496e5498957253b626bd1b55b9df371d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/adapters/transport/cli/update/zip.go:46-53 | internal/app/skill/install.go:122-130 \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":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb2e179d2db1437d04655eb4da741e4f271e5aa92896616122b7f998c225f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/transport/channel/weixin/sdk/bot.go:424-430 | internal/adapters/transport/channel/weixin/sdk/bot.go:445-451 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/channel/weixin/sdk/bot.go:424\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24c82b2a07dad34e1e810ed9d8f4f429fe3d968c2fd048b764acf957a2b385c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/adapters/skill/skillhub/provider.go:65-71 | internal/adapters/skill/skillhub/provider.go:128-134 \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":"internal/adapters/skill/skillhub/provider.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"118b00265648e9f72a693eec213503f57dcc60f344310ce6379ff483691e59e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/adapters/transport/cli/eventview/print_markdown.go:210-215 | internal/adapters/transport/cli/eventview/print_markdown.go:246-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/eventview/print_markdown.go:210\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a5cbbc2815a848c6b0427a0c5d08cd6632ce3c15752681b283d3dd64cb2ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/adapters/transport/cli/update/zip.go:85-89 | internal/app/skill/install.go:157-161 \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":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e881023c88c744c3060d2e0a764f6465adf3d764902eb7079e8df57dd2a0c8be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/adapters/transport/cli/update/zip.go:91-95 | internal/app/skill/install.go:163-167 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/adapters/transport/cli/update/zip.go:91\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dacbe40e472064cd5ed3dd7d7c46ce77dbf4cb3869d6bdff8a51099665047a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/adapters/transport/channel/discord/discord.go:514-518 | internal/adapters/transport/channel/qq/qq.go:347-351 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbd8030c9fc38614e92211701223609e428770f6aadb59ddef711f5e58a8e1e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Runtime (LCOM4 46): Runtime\u0027s methods fall into 46 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 46 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":"internal/adapters/transport/http/handler/runtime.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"430c8e27f639c684cd0073522334d893c7da50eb32eb628fabd84b8347a50e1c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Config (LCOM4 4): Config\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/config/config.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d2bcca0ceea7dc11f05d97a91d17b0821ae1bc7073b3393244e15d9bc96d88"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/skip2/go-qrcode: Direct dependency \u0060github.com/skip2/go-qrcode\u0060 is required at \u0060v0.0.0-20200617195104-da1b6568686e\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2020-06-17, 6.4 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/skip2/go-qrcode\u0060 and has not moved this requirement in 6.4 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/skip2/go-qrcode\u0060 now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a6e5287a202cd286edc04602da28ce33ce3e64a9cb3493c52e680dc4214f8d4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/storage/file/history/history_record.go: internal/adapters/storage/file/history/history_record.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in HistoryRecorder.RecordEvent at line 591. 2 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/storage/file/history/history_record.go\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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85c79320fe0dfadab2d4009ae5687bc7313051a5d15ff57edc206b163525e72"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/chat/ChatInput.tsx: web/src/features/chat/ChatInput.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in ChatInput.ChatInput at line 22. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/chat/ChatInput.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":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"03dd2681f7510da873626b4975d847d96adbdeb4542c32406d79050cddc3d61d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/components/layout/Sidebar.tsx: web/src/components/layout/Sidebar.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in Sidebar.Sidebar at line 56. 3 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/components/layout/Sidebar.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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3aed9e96398311f646fd72e874bf7737ac5297387d908bfb9d773daf603b76b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/chat/MessageList.tsx: web/src/features/chat/MessageList.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in MessageList.AskPanel at line 1083. 3 of those changes were fix/bug commits, and the other 6 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/chat/MessageList.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":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58f8cc92473399a7274d483e7f4c29e9b1a098593cbe5b795a23e95e3a4f3f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/chat/ChatComposer.tsx: web/src/features/chat/ChatComposer.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 96 in ChatComposer.ChatComposer at line 53. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/chat/ChatComposer.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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8599c4270e80f20b3e3bc30f5f76b153069114f7fda7989c28af555363bce5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/chat/ChatPage.tsx: web/src/features/chat/ChatPage.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ChatPage.QuestionNavigator at line 134. 3 of those changes were fix/bug commits, and the other 6 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/chat/ChatPage.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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71d1a54f2b827a4a6a312664cffe62946e03a918a20249393564a5b4dcf491e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/app/chat/input.go: internal/app/chat/input.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in chat.agentMessageToCoreMessages at line 232. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/app/chat/input.go\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":"internal/app/chat/input.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"df59f0849f3b9663b799c771fa9a467495f9f423ef2878e1af68de1633ac9493"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/bootstrap/tools/tools.go: internal/bootstrap/tools/tools.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in tools.RegisterWithProcesses at line 58. 1 of those changes was a fix/bug commit, and the other 9 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/bootstrap/tools/tools.go\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":"internal/bootstrap/tools/tools.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a12eaffe5d127e1797fcba672d8945b9711f285e7446f18792410a0c94655a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/transport/http/handler/stream.go: internal/adapters/transport/http/handler/stream.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Runtime.StreamStartHandlerWithState at line 37. 4 of those changes were fix/bug commits, and the other 6 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/transport/http/handler/stream.go\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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a309c46288afd4cb08ac935c3e977247e3497756f39083773bd6c43671c037"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/types/events.ts: web/src/types/events.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in events.decodeChatEvent at line 177. 2 of those changes were fix/bug commits, and the other 3 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/types/events.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":"web/src/types/events.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b78bccc20fda00fc746efa5b970c8812c454fda1a46ae509ce36ac0bbae11a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/transport/http/handler/runtime.go: internal/adapters/transport/http/handler/runtime.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in handler.NewRuntime at line 74. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/transport/http/handler/runtime.go\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":"internal/adapters/transport/http/handler/runtime.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11d8e656fd50a7905386f81f5a60627ea8391befd0bb402a27dec4c5fa97266"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/memory/MemoryPanel.tsx: web/src/features/memory/MemoryPanel.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in MemoryPanel.MemoryPanel 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/memory/MemoryPanel.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":"web/src/features/memory/MemoryPanel.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4a7eb0838e2a716a49440bb20d975161231180aed12d17b602a4c1c87c6425"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/app/chat/queue.go: internal/app/chat/queue.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in Service.RunQueued 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/app/chat/queue.go\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":"internal/app/chat/queue.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4381358b139b10d2640dcb1060ce2db5d37fab0801cc9b56c837ca4553227b0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/config/AgentEditors.tsx: web/src/features/config/AgentEditors.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in AgentEditors.AgentsTab at line 286. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/config/AgentEditors.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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b9cf44b2c7a01bc70290032ddcca0c6949309f44942d1bdaf724f4ac95e07d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/storage/file/history/history_persist.go: internal/adapters/storage/file/history/history_persist.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in eventlog.projectTranscriptEvents at line 115. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/storage/file/history/history_persist.go\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":"internal/adapters/storage/file/history/history_persist.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"faafc5f464f2f2bb9e3e2bce5314d9b5fdc846f6b420fdcdcbbb182c948f7dc1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/transport/cli/commands/chat.go: internal/adapters/transport/cli/commands/chat.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in commands.runChat 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/transport/cli/commands/chat.go\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":"internal/adapters/transport/cli/commands/chat.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5717472d3bf332a472761091f8d05009e393f11174acd5dcf68de49d42622d50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/transport/cli/runtime/query.go: internal/adapters/transport/cli/runtime/query.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in QueryExecutor.Execute at line 250. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/transport/cli/runtime/query.go\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":"internal/adapters/transport/cli/runtime/query.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c191845fa0e57184484edb91788329a1b32182d869ca6c440bbfad37997c550f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/config/ConfigPanel.tsx: web/src/features/config/ConfigPanel.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ConfigPanel.ConfigPanel at line 36. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/config/ConfigPanel.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":"web/src/features/config/ConfigPanel.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f92b733ea9b0ce8abd58a4429b45f671155c62b1d5165a4ced60bacb61fe85e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/app/store.ts: web/src/app/store.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in store.applyChatEvent at line 187. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/app/store.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":"web/src/app/store.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a006a7a32884d57af94e56e372aac23c96832ee8d53629bf286684d595fc59"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/storage/file/queue/store.go: internal/adapters/storage/file/queue/store.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in Store.save at line 68. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/storage/file/queue/store.go\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":"internal/adapters/storage/file/queue/store.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a8433960e9a22393c9eb39d56a7f09e141b1fed4c6184408537bc480f3461f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/chat/timeline.ts: web/src/features/chat/timeline.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in timeline.timelineItemSpacingClass at line 10. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/chat/timeline.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":"web/src/features/chat/timeline.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"68af8f36b84e0cd1a460f201dba3f2763c9cee20af50c22de0741b9cbdf691aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/transport/http/handler/http_chat.go: internal/adapters/transport/http/handler/http_chat.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Runtime.ChatHandlerWithState at line 36. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/transport/http/handler/http_chat.go\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":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e2a772679fd3c763518cc3b3c2f106f36f58cde6c7315922546bbadbbd09ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/transport/http/handler/config.go: internal/adapters/transport/http/handler/config.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Runtime.UpdateConfigHandlerWithState 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/transport/http/handler/config.go\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":"internal/adapters/transport/http/handler/config.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a75eac151b9ab49043987a4851caa64fd701a593ae938db78d5c88d2593361"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/app/chat/service.go: internal/app/chat/service.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AssistantTextCollector.Record at line 163. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/app/chat/service.go\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":"internal/app/chat/service.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"7911afaa88d407b211f1f08d9f35c566aee46dc4d3e433997eea88a0163e1cd3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/transport/http/handler/session_share.go: internal/adapters/transport/http/handler/session_share.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Runtime.CreateSessionShareHandler 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/transport/http/handler/session_share.go\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":"internal/adapters/transport/http/handler/session_share.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eeadd988decf5c3abded8e754ea0edb38c815f1cbe98fad4c0521a106f79aec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/transport/http/handler/websocket.go: internal/adapters/transport/http/handler/websocket.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Runtime.handleChatMessage at line 211. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/transport/http/handler/websocket.go\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":"internal/adapters/transport/http/handler/websocket.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b4cc05eb6766ac60e49e07eb3096efd31c10dd617324a58db8d43db399b368"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/vite.config.ts: web/vite.config.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in manualChunks 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/vite.config.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":"web/vite.config.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8702afceea0e7c9d622653541237ac76605876362ad8ead9ea56ddc4d62b7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/config/IntegrationEditors.tsx: web/src/features/config/IntegrationEditors.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in IntegrationEditors.JavaScriptToolEditor at line 314. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/config/IntegrationEditors.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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d124eff380a7faf47076c79f69e976e3521bc91df4fa6a3df64b0d8474fb617"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/storage/file/history/transcript.go: internal/adapters/storage/file/history/transcript.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in eventlog.loadTranscriptRecords at line 165. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/storage/file/history/transcript.go\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":"internal/adapters/storage/file/history/transcript.go"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd9b69cfd2c0009e5bf06dc3c41fd60484cfa722f712dc97d122b8bb44dcf0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/storage/file/memory/store.go: internal/adapters/storage/file/memory/store.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in memory.loadMarkdownFile at line 131. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/storage/file/memory/store.go\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":"internal/adapters/storage/file/memory/store.go"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8eca51fa261eddbb3e7b9b839b455368ca277a7f8b985f5f01d9e1ba8fb299"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/adapters/runtime/agentkit/message.go: internal/adapters/runtime/agentkit/message.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in agentkit.adaptOutputPartsFromRunner at line 213. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- internal/adapters/runtime/agentkit/message.go\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":"internal/adapters/runtime/agentkit/message.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe82178636362841862fc86f21d8a086ef72822f309ea11019890721707d3906"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/components/layout/SessionShareDialog.tsx: web/src/components/layout/SessionShareDialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in SessionShareDialog.SessionShareDialog at line 25. 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/components/layout/SessionShareDialog.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":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"4836d4073d81ffa379114c10019e3a3511f846c45b4f27242e29fcaa0abbd5d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/src/features/files/FileShareDialog.tsx: web/src/features/files/FileShareDialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in FileShareDialog.FileShareDialog 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-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 12:08:44 \u002B08:00\u0027 --until=\u00272026-11-13 12:08:44 \u002B08:00\u0027 --full-history --no-merges -- web/src/features/files/FileShareDialog.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":"web/src/features/files/FileShareDialog.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4d67acad6f4c4fdfe2ea227804561be616a50dc4759c24d5a7e125c3c98ab1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u5DE5\u5177 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/toolpolicy/policy.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc4300afd5d95f900195e7141bc126a09504e5cc8316d5da05426fe6c7b8d1a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo \u5F85\u529E\u4E8B\u9879\u7ED3\u6784 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/todo/func.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02c89aa39784fc02d35e986143dab2c40089e96916c1d7b936ae87081dd52d8"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060cmd/fkteams/main.go\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/fkteams/main.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afdd0e9f6ad969d8caea632336230ca759c6309d587f14052d1c95f15b6ad3b"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060groupATMessageHandler\u0060 spells \u0060AT\u0060 where 76 names in the project spell it \u0060At\u0060: 76 of 77 names in project fkteams spell the token \u0060At\u0060 (76 of 77; unit: names in project fkteams containing \u0060At\u0060). Peers: Token.ExpiresAt (internal/adapters/model/providers/copilot/token.go:41); Scheduler.AcknowledgeResult(runAt) (internal/adapters/scheduler/filecron/scheduler.go:1171); pendingToolCall.CreatedAt (internal/adapters/storage/file/history/history.go:83); queueSnapshotFile.UpdatedAt (internal/adapters/storage/file/queue/store.go:52); shareFileEntry.ExpiresAt (internal/adapters/storage/file/share/preview.go:24). Rename to \u0060groupAtMessageHandler\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/qq/qq.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff53785e9994a0c093e8d606f579a78714fa4f9760b9e4092831996f5950c80"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (70698 LoC, 934 module-visible types across 161 directories) overshoots its size bounds. 2 of 2 build unit(s) (Go, npm) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"go.mod"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39784e8a78933b908507d20b4610b78a7f819ed418525c8adae26ae57410589"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060web\u0060 (15691 LoC, 182 module-visible types across 22 directories) overshoots its size bounds. 2 of 2 build unit(s) (Go, npm) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ea941af3f901551a092032ec144fc221c4f79efdf006625aecd57cda1f6e02"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 42 % of calls cross a namespace and only 56 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"613343d1b752f35745826fe8d15b453cf20383607c0f92f58d6658c1e8f77558"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3963d9f0883390ef6e4c8eabbc4ed639a70f4e279e5af657cd708e720b9fb41"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"adedf6702b4730eccbe6a3cfb63e4df53882dae2e67e3d51e788026fa3810e77"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"673207003b06074a491ee5583ec59e8cd292169ec6ccb2d28c746ce7a9532998"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66849f88116e3a29ce680fe08812ece8ff46a0184739eea56f1c436dbf9b2d8d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7aae49aa017168a546d15fb3ead6e150c569f26d1a7ce5b9f1d723a2dddc77d0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e873679ac25c0c94022a9a0c2871121f368175761b2952b2c7656197dca5e486"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8a5d9c74ba511a88d917dccf27471eb113108e357b93821d7452d5555ea3f97"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d1d902da16b3acf7d3a7e8b2b5c933caf3fba95a0e5bbc33251b8b23a89a568"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7b082472ab3f95c13bbe8b6b798e2aae79f5ab3a80af2f81153f302c3d26577"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"251786df1c629d602aa62af423f1fd58785cb25929a77b8802a38a2616dd32d9"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"0a01ac41f45ca90bf9539d72a38932bc63a15feb3e48a9036d445d38f6a0a4a0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6ed78155df196770e227a68f6f25a32c9b48cb72a507d69781947184d5f25a7e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb8c2cb70c90efed24d20752b0e3b47e9a977d756546ee8615e685ae2f46215d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce958e2bfae38993b417bc00cb2b096fc789b5cd66669065bcdae04eb5045928"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bd688fbd351517de04379884fa99fda7a2fddb290d3eb9c13e1f718ad234f910"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"46e53bb57a87e7549a68735a0846cc4e61914cd124f6c80f35f57cfbdafc4f16"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f138129ccc74fdb201382a3e7d294d8934de77032c02e79cc91775c287f0d52c"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"d4a470ebe58ebf01b6a363b520f87ef6e909d3328d076a97eda85ea8e65c3537"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76165299837e2496a7527c0b698657f4d93b27a4dfbc0d7821749dac44489273"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd351a0a26404195e26c5825bf3fcd60a58e4c199aea1077bf2d81fd49fcd9e2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21078376fe346f7aa744276d53200734c4a041ce15403c5373f94bd915f1d225"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"4f526bcbf7e7a63a73ef6287efdb737042b5dd82d264fcebc9fb88a1fc6c44d3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b453e5b9baaabcf4feec5c16881bebe1fb9995726f25f5294dcaee29f7e0b99"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"84095ae6f32aa07701ea660595e1d8af2dec72a9fbc774a5356207b34f593efc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f9622b7d817a75c7794142b7fcdb10054671ded51167b699f6410e34ecb57b6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"718e40b37efc66aefbfd591c80053fb35a42919a2a4fbade5ed27561cf1a3cca"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"55f2cccf599bea15a6fbb0f96299524670c8b6bc10a9a34e71de031d47e74c3d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"8d29356638ba2476154b92b6dfe0ace4c86d58b223ec6c06007fdab4700826f5"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b4b84274ded7e6b21af20f24c3c1abbd7c2623cc940e96b12bd49088aeb7e024"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"68d1521e580bfce2ea1c0483747eeb582dd4c94e8093114a7bde4bf0bb75c59d"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"8040fc93cf2c0123971448f489eee9be1882f96790705a6729988696dc837b76"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"8cc3a21253d6e397191f7a64f1cd29c085b73479ba43c4811655bbda32422ec1"},"taxa":[{"id":"CWE-330","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":"11c6b18e22433f78b16b3f7f2d505d38d191382371a78b13aaecbece83bfb5e9"},"taxa":[{"id":"CWE-328","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":"d10ab336e15532fe2020d332aa024e4b0b21f2c24ab422c3da4fc5c0ecef68fc"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"771906a66870d61bbdc95d0f8f630d627df81f3bd58dc095ab5ec78184d2d653"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f7a1c38678bf108280f741d71fe0e91dbaffc9db552074a98b6e3a7c0a7a47f5"},"properties":{"dependency":{"package":"github.com/ollama/ollama","version":"0.6.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2025-3557","GO-2025-3558","GO-2025-3559","GO-2025-3582","GO-2025-3689","GO-2025-3695","GO-2025-3824","GO-2025-4251","GO-2026-5748","GO-2026-5750"],"severity":"critical","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9c7de190231d3b97dc0f1a0317bc61d7e63d7af55c350df48ddbea24eb5d370"},"properties":{"dependency":{"package":"google.golang.org/grpc","version":"1.66.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-4762","GO-2026-6061","GO-2026-6348","GO-2026-6441","GO-2026-6443"],"severity":"critical","fixedVersion":"1.79.3","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0112e6c93b0239cf906ca9bbdcf7483fdd7368746cbdb40da9fef60ce008a094"},"properties":{"dependency":{"package":"dompurify","version":"3.4.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"critical","fixedVersion":"3.4.17","relation":"direct","declaredRange":"^3.4.12","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b41dcbb9a1a79adfe8ee2dcc56aad49305e1decdb1f6965a13bb9532b52f8c1f"},"properties":{"dependency":{"package":"github.com/go-git/go-git/v5","version":"5.16.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-4473","GO-2026-4909","GO-2026-4910","GO-2026-5074","GO-2026-5105","GO-2026-5336","GO-2026-5496","GO-2026-5693","GO-2026-6213","GO-2026-6214"],"severity":"high","fixedVersion":"5.19.0","relation":"direct","declaredRange":"5.16.4","reachability":{"kind":"production","file":"internal/adapters/tools/builtin/git/branch.go","line":8}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"575854072cc339e30b6a9414bc445679c9715720acdd08ecc864786a771493be"},"properties":{"dependency":{"package":"github.com/gomarkdown/markdown","version":"0.0.0-20250810172220-2e2c11897d1a","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","GO-2026-5208"],"severity":"high","fixedVersion":"0.0.0-20260411013819-759bbc3e3207","relation":"separate-copy","declaredRange":"0.0.0-20250810172220-2e2c11897d1a","reachability":{"kind":"production","file":"internal/adapters/transport/cli/report/report.go","line":15}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f86c58b19710367312b207a76ff116c0522acb3a7a62cec78a095307516fb99"},"properties":{"dependency":{"package":"github.com/xuri/excelize/v2","version":"2.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-5960","GO-2026-6452","GO-2026-6453","GO-2026-6674","GO-2026-6676","GO-2026-6677","GO-2026-6678","GO-2026-6679","GO-2026-6680","GO-2026-6681","GO-2026-6682","GO-2026-6684","GO-2026-6685","GO-2026-6687","GO-2026-6688","GO-2026-6689","GO-2026-6695"],"severity":"high","fixedVersion":"2.11.1-0.20260915055537-22f76f9acb94","relation":"direct","declaredRange":"2.10.0","reachability":{"kind":"production","file":"internal/adapters/tools/builtin/excel/batch.go","line":8}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4881e93eeddbbaf13b9377efabbdd3e90939dead1d01976df3c757b7296ec14"},"properties":{"dependency":{"package":"github.com/go-git/go-billy/v5","version":"5.6.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","GO-2026-5490","GO-2026-5597"],"severity":"high","fixedVersion":"5.9.0","relation":"transitive","reachability":{"kind":"production","file":"internal/adapters/tools/builtin/git/func.go","line":14}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3fef58605a0b06239a045a170ff845c1bf318446236036fdd0bc64c8189af065"},"properties":{"dependency":{"package":"github.com/quic-go/quic-go","version":"0.54.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","GO-2025-4017","GO-2025-4233","GO-2026-5676"],"severity":"high","fixedVersion":"0.54.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c39da2b5c18f7557503ce2226aba9097fdd86b74e6a195776e83a5b692c8ff60"},"properties":{"dependency":{"package":"nanoid","version":"3.3.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.3.16","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"283231abece51eda74df1d79fa45ac2a0ed4f8b6a99da94aa914aa19e994d446"},"properties":{"dependency":{"package":"undici","version":"7.28.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"7.30.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ec036dd3080103e1a90125e55ec2e3bd37e03a2d886bbdaad62c144e31a8c7f"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ae9e200897320a4837667d4f2fea1b56978191bcbca9a4faf0cf218cef10060"},"properties":{"dependency":{"package":"browserslist","version":"4.28.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"4.28.7","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c01406f047fdd78ecbf20829d05fcd3426406770357d1b0d3e76bf12394157fd"},"properties":{"dependency":{"package":"browserslist","version":"4.28.4","advisory":"[CVE redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.28.7","relation":"transitive","reachability":{"kind":"not-imported"}}},"taxa":[{"id":"CWE-1321","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5325a26aca31c38dbb24776da3bc7d24a2ef791c59fdf8f4fc626ce2f7c7de2c"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.6.6","relation":"separate-copy","declaredRange":"4.3.6","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"89f7bcf3d53cf1aaeec53ce7407dd1699fdef66e7db51d01eb12d027425ca07c"},"properties":{"dependency":{"package":"zod","version":"4.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.6.6","relation":"direct","declaredRange":"4.3.6","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f18a886ba19b2274e1d5e877d140d024e1f3e6bd32481aec97fd67c279b850d5"},"properties":{"dependency":{"package":"postcss","version":"8.5.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.5.18","relation":"direct","declaredRange":"^8.4.49","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"42f0c1ab465d4073bc710079633276d473b3d37a808e32040f94c5340e4a32aa"},"properties":{"dependency":{"package":"vite","version":"6.4.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"6.4.4","relation":"direct","declaredRange":"^6.0.7","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":"4a03e6b0caf96e9624f908d8fe21216de785190cb3741b870826789abd978cd0"},"properties":{"dependency":{"package":"github.com/mark3labs/mcp-go","version":"0.43.2","advisory":"GO-2026-6911","severity":"medium","relation":"direct","declaredRange":"0.43.2","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c9c7154a9d80981a2f1da0fd0aa2e12a4e104a4411624a7aabc5ce2dd45d848"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.58.0","advisory":"GO-2026-5932","severity":"medium","fixedVersion":"0.58.1-0.20261009181718-2f1f834330b2","relation":"direct","declaredRange":"0.58.0","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eaa0a42395ad841b5170f988785f3d058da7ced2f4aa90a2b11ab24885bcd318"},"properties":{"dependency":{"package":"github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream","version":"1.6.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","GO-2026-5764"],"severity":"medium","fixedVersion":"1.7.8","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bd2ad4f8e0718501760c5e41df539626ace79ee2bc63f777618d903d0053d450"},"properties":{"dependency":{"package":"github.com/cloudflare/circl","version":"1.6.1","advisory":"GO-2026-4550","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"1.6.3","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"436c636d7c0f4a96db02738cb1022475df7f81338e5e3a0e808d0b455082960e"},"properties":{"dependency":{"package":"github.com/yuin/goldmark","version":"1.7.13","advisory":"GO-2026-5320","aliases":["[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"1.7.17","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"346ae1f77b19bb950c6e55683a42ad30dc7f365e06a9ca00167114e610203713"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.61.0","advisory":"GO-2026-6860","aliases":["[CVE redacted]","[CVE redacted]","GO-2026-6866"],"severity":"medium","fixedVersion":"0.62.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b088f2086e90029936f0fa4794fb5a92dd7943a06d094b5be3cd16b02ceaed73"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"6.1.5","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea0b03b15879d46ecdc139116bbf3041362e7e7ccf2f96eca09076065f02385f"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.40","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"2.11.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"13121075128f6dab32d914ed5be8d1b699187cbfb6fadfe1fc59a7cb7c8e0045"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.40","advisory":"[CVE redacted]","severity":"medium","fixedVersion":"2.11.0","relation":"transitive","reachability":{"kind":"not-imported"}}},"taxa":[{"id":"CWE-705","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-755","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"084afd1ada687386804c22de58a2035c5df8d2cd7bfcee377e4c0149ec4544dc"},"properties":{"dependency":{"package":"katex","version":"0.16.47","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"0.18.2","relation":"separate-copy","declaredRange":"^0.17.0","reachability":{"kind":"unknown"}}}},{"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":"683811c6fe9daf8d40d65f38761c796048afeefd52405c9d6816d6ce88a39ba0"},"properties":{"dependency":{"package":"katex","version":"0.17.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"0.18.2","relation":"direct","declaredRange":"^0.17.0","reachability":{"kind":"unknown"}}}},{"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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e83b518b7f52f2dcaa5ae6040062bb11c1eb9b8af4b47d50866778e1f843e3bd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9b6518a42519745fb22fbc8ef967295f532c52b545e9b352c1a0481510bef232"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"783faa4462809d86535dcec4e3c306bd1cea492b7ab2321a7a156ee497ccd1bc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"89ccd0dcda973adca1255808664800ec4348a92c081e0cc6893d3747958ae0cf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c28d28c36581ea01bc1c274dba395d0d292c2355300cef7a5b9eedb801936b7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df4d77fce36384c34214884370a9390985de5ef1395f5f24e3830e306f52a6df"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5b37926105210ed3444d17d2f08f3025c9f97d4139ca31f0eb389e761f775d2c"},"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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: main.go \u2194 runtimes.go: \u0060cmd/fkteams/main.go\u0060 (context cmd) and \u0060internal/bootstrap/runtimes/runtimes.go\u0060 (context internal) sit in DIFFERENT parts of the tree yet change together 56% of the time (9 of the 16 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060e69865df\u0060 refactor: \u62C6\u5206 runtime \u7AEF\u53E3\u5E76\u79FB\u9664\u8FC7\u5BBD Engine \u805A\u5408; \u00601444d26b\u0060 refactor: \u663E\u5F0F\u8FDE\u63A5 MCP \u5DE5\u5177\u6865\u63A5; \u006090e9f769\u0060 refactor: \u5B9E\u4F8B\u5316\u542F\u52A8\u7EC4\u5408\u6839 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/fkteams/main.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7721d723c9a91ba5581bb167d0c6b2d8b51c366522d2e19682f5b3ae5411e00e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: http_chat.go \u2194 websocket.go: \u0060internal/adapters/transport/http/handler/http_chat.go\u0060 and \u0060internal/adapters/transport/http/handler/websocket.go\u0060 change together 82% of the time (23 of the 28 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u0060c475451f\u0060 fix(chat): \u53CB\u597D\u63D0\u793A\u65E7\u683C\u5F0F\u4F1A\u8BDD\u53CA\u5E8F\u5217\u5316\u9519\u8BEF; \u0060fb0f36c5\u0060 fix: \u4E3A\u4F1A\u8BDD\u5386\u53F2\u7F13\u5B58\u589E\u52A0\u5B89\u5168\u6DD8\u6C70; \u0060547fe29c\u0060 refactor: \u91CD\u5EFA turn \u6267\u884C\u8BF7\u6C42\u5E76\u79FB\u9664\u91CD\u590D option \u5C42 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbef8005a13cf8caad83e15449432cf72ec64aa53a8c0345cec655316329c48"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: prompt.go \u2194 prompt.go: \u0060internal/app/agent/catalog/assistant/prompt.go\u0060 and \u0060internal/app/agent/catalog/tasker/prompt.go\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 \u00607f7da012\u0060 refactor: \u5145\u5206\u5229\u7528\u63D0\u793A\u8BCD\u7F13\u5B58 (at that commit the files were still \u0060agents/assistant/prompt.go\u0060 and \u0060agents/tasker/prompt.go\u0060); \u006004611af6\u0060 chore: \u63D0\u793A\u8BCD\u4F18\u5316\u964D\u4F4E\u53CD\u590D\u786E\u8BA4\u9891\u7387 (at that commit the files were still \u0060agents/assistant/prompt.go\u0060 and \u0060agents/tasker/prompt.go\u0060); \u0060932c5eac\u0060 feat(tools): \u4F7F\u7528\u5DE5\u5177\u540D\u79F0\u6765\u83B7\u53D6\u5DE5\u5177 (at that commit the files were still \u0060agents/assistant/prompt.go\u0060 and \u0060agents/tasker/prompt.go\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/agent/catalog/assistant/prompt.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a32e2234d4f4d902605b1fecca0881f74bb603066753a4ace98de4cc48e71dd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: sessionThunks.ts \u2194 chat.ts: \u0060web/src/features/sessions/sessionThunks.ts\u0060 and \u0060web/src/types/chat.ts\u0060 change together 58% of the time (7 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 7 shared commits counted here, the most recent 3 are \u00603d99ae55\u0060 fix: \u6309\u4F1A\u8BDD\u7BA1\u7406\u524D\u7AEF\u8FD0\u884C\u4EFB\u52A1\u72B6\u6001; \u0060e79bedd2\u0060 fix: \u4FEE\u590D\u4F1A\u8BDD\u91CD\u590D\u8BF7\u6C42\u4E0E\u6D41\u5207\u6362\u7ADE\u6001; \u00609e52a9f2\u0060 fix: \u4FEE\u590D Web \u6D41\u5F0F\u4EFB\u52A1\u7684\u91CD\u590D\u8BF7\u6C42 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/sessions/sessionThunks.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff8b69c30bd11c5b90c5f705ceff60af51a262b7b1508eac36b0b04a33577aa"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chat.go \u2194 conn.go: \u0060internal/adapters/transport/http/handler/chat.go\u0060 and \u0060internal/adapters/transport/http/handler/conn.go\u0060 change together 55% of the time (6 of the 11 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; 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 \u0060fb9c5ca9\u0060 fix: \u4FDD\u8BC1\u540C\u4F1A\u8BDD\u4EFB\u52A1\u4E0E\u961F\u5217\u72B6\u6001\u539F\u5B50\u6027; \u00609511d03e\u0060 refactor: \u8FC1\u79FB\u4EFB\u52A1\u6D41\u5230\u804A\u5929\u7528\u4F8B (at that commit the files were still \u0060server/handler/chat.go\u0060 and \u0060server/handler/conn.go\u0060); \u00607ac9a85f\u0060 feat: \u65B0\u589Eask\u5DE5\u5177\u7528\u4E8E\u667A\u80FD\u4F53\u4E0E\u7528\u6237\u4EA4\u4E92 (at that commit the files were still \u0060server/handler/chat.go\u0060 and \u0060server/handler/conn.go\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/chat.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a55cb9f3fc2e5c4b3f55f650a7a4c18b0025ee01d9bb722dbcf460c6b3be89"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: bridge.go \u2194 http_chat.go: \u0060internal/adapters/transport/channel/bridge.go\u0060 and \u0060internal/adapters/transport/http/handler/http_chat.go\u0060 change together 54% of the time (15 of the 28 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 15 shared commits counted here, the most recent 3 are \u00601181fd9c\u0060 fix(chat): \u7EDF\u4E00\u5404\u5165\u53E3\u4EA4\u4E92\u8BB0\u5F55\u4E0E Web \u4F1A\u8BDD\u5C55\u793A; \u0060fb0f36c5\u0060 fix: \u4E3A\u4F1A\u8BDD\u5386\u53F2\u7F13\u5B58\u589E\u52A0\u5B89\u5168\u6DD8\u6C70; \u0060547fe29c\u0060 refactor: \u91CD\u5EFA turn \u6267\u884C\u8BF7\u6C42\u5E76\u79FB\u9664\u91CD\u590D option \u5C42 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/bridge.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8dda282b50c6f283def24dca1fd4033b1d5e1685642bfc32e1017c1876edd3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: discussant.go \u2194 visitor.go: \u0060internal/app/agent/catalog/discussant/discussant.go\u0060 and \u0060internal/app/agent/catalog/visitor/visitor.go\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 \u00600546aea7\u0060 refactor: \u62C6\u5206 agent \u5B9A\u4E49\u89E3\u6790\u548C\u7EC4\u88C5\u6D41\u7A0B; \u0060e80d374a\u0060 feat(context): agent\u7EE7\u627F\u4E0A\u4E0B\u6587 (at that commit the files were still \u0060agents/discussant/discussant.go\u0060 and \u0060agents/visitor/visitor.go\u0060); \u0060932c5eac\u0060 feat(tools): \u4F7F\u7528\u5DE5\u5177\u540D\u79F0\u6765\u83B7\u53D6\u5DE5\u5177 (at that commit the files were still \u0060agents/discussant/discussant.go\u0060 and \u0060agents/visitor/visitor.go\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/agent/catalog/discussant/discussant.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bf2df22bb77e49748ddf0dd96523b81a38faf4ab252d13fd4237facf08d82c"}},{"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":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","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":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","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":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/files/FileManager.tsx"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e0d60e0c3a2ec5760d3a193fedc608f05f08493db726286703a6f870f56372"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/markdown/MarkdownContent.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe98fa3ca2d300eb054acf8c8cc73382b7d6baa9b146897b2554295b749fa17"}},{"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":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"7606549b6eaf7676e70bebf0bcd78fafd32c89a2f063714e8c2065da9092b7b0"}},{"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":"web/src/features/chat/openui/interaction.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"793f84e21a2d8727e5333939bd13024c2012fe6ba7c301019ebaae59bcc599cb"}},{"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":"web/src/features/config/ConfigEditor.tsx"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27df4812c25e5a3b068d963587ea3de2d147037a1ca3013e1da86e1755bf923"}},{"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":"web/src/features/config/ConfigEditor.tsx"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ce66c2045fe76268d1398e34980cef23d5959266b12e6b01aebddaa5e7f5f6"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. 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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aba5d5ec310ad21912d33ee16a3d69c05e88950e76240563133e3219eb93ed5"}},{"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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e7d4512a816851098249adfcd6329541b8215fecb75c3245471c26aa70dfe1"}},{"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":"web/src/features/files/FileManager.tsx"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6be53929a0d329a2e03e75247da2ec131e0465d18c434c4d79396f3604520ce"}},{"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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"0737de1a6e915878bdf4bac2448dcc07fd5f8bf567042283993249b3ece53b78"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. 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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd2b07b286eaf76452a6b704a732da198ec783cd81434ec46f32eaf0d2d55b1"}},{"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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"600d4936e7756cc4cc024064fc57e89d74fe6bc0521d7b08584bfcf871777792"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"472dd0109d366303918d73b05ea338e0c92ff3e272dfb38686995dce56a0691e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"6002ded37caf7b899eb1ce5701e4e0a32e8b26ce4ff9efab43589372d9addfde"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7d18b312a9c5c51ba142fdd5ef8f6c790dc73ee49d1e86ba8893e6bf494f59"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabIndex={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/markdown/MarkdownContent.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e60c7eb495efba003906c69ef3fa9d6ecc4c2151b55cf02fcf917891003a309"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/ui/action-dialog.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bbf5a471001d59cee4164b9684309ebe4093cb48413513b022315e3086291a"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/ui/action-dialog.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe7fb22f4ffa2d3562af1ff6d63fb0cf95aa5b04a8a0832fabb3d5eeef07993"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/files/FileManager.tsx"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"620b7241d41df356e1fd6d4e6090cbccd7905e911f56c58137d21ef9ec32ec8c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/files/FileShareDialog.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d9ec52aa284b52a9be03ab01705e50cfb06918ae8e8cf8937d326dfbfa2a06"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Csection role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/migration/MigrationGate.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d41a1ba68d844a1d442448e30968c2d2bd423a207688d08625a06c723ff22c7"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"172fbf1a16427cc2d23f8947aea83d854dbc0f30155bd3a0a4aee2d0e90e9b33"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac444c52f7016e903ff7f44ea76b8fde56cabab2118f2b010bdf3fb4791a0dc8"}},{"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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0742c278c53aa2b57942447686df003430f9919f7d3df974b1405c453394aba"}},{"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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"b779beb57ffae8491d4fb91a5743edd3e54a90d1eff12ede02c6b0fb40355ed3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b2713ca473c1bbb33f9cdecf3290065a99688c6a716495ebf294b313c631c6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Ci\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee299b595234c92143571163171843543e9ed3674999d42575894f18f9dd6fab"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Ci\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5b4ccf67b6cac8f47b39f6229de7f14987f29821ae8e8d815056ca51392684"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u003Ci\u003E moves \u2014 its \u0060animate-bounce\u0060 utility runs with no motion-safe:/motion-reduce: variant \u2014 and nothing reads prefers-reduced-motion for it, so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Gate it on @media (prefers-reduced-motion: no-preference) or motion-safe:."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"9476b931fe057559271cdeb2ead24a955845fc3aa1354d9a93ec604f61f889a0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.prose .markdown-code-copy[data-copied=\u0022true\u0022]\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/styles/globals.css"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f089a688e9e36f7558a86ab4879aa7cae4ecc54c0e02bd60755e36e921bedf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.prose .markdown-footnote-ref a\u0060 moves (\u0060transition: background-color 150ms ease,\n      color 150ms ease,\n      transform 150ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/styles/globals.css"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e426b5950414717f311bbfaf3eca3e7e08601f261b52e054f66ff472f7f123"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: chat \u2192 sessions: \u0060ChatInput\u0060 (slice \u0027chat\u0027) depends on \u0060clearAssistant\u0060 from slice \u0027sessions\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"785fccbe2c69242905c34d4f0bc98601ff24f444018a160de161ed06f3e80652"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: chat \u2192 sessions: \u0060ChatInput\u0060 (slice \u0027chat\u0027) depends on \u0060renameAssistant\u0060 from slice \u0027sessions\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ae2bfc2f7aea075c61416a40dba4e62aefaa7bc651a1d443eea860476b5bad"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: chat \u2192 sessions: \u0060ChatPage\u0060 (slice \u0027chat\u0027) depends on \u0060loadSessionDetail\u0060 from slice \u0027sessions\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"28710e0a7bf5806197c4cdd1633ec6449d5ebb4c20744158c03f4cd9ec8b64e4"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: chat \u2192 sessions: \u0060finishFromStatus\u0060 (slice \u0027chat\u0027) depends on \u0060refreshAssistant\u0060 from slice \u0027sessions\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ec7ff699354ecffbdc9f4cb763e8285532c987c0eff349bb505f066d08d198"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: share \u2192 chat: \u0060ShareThread\u0060 (slice \u0027share\u0027) depends on \u0060ConversationItems\u0060 from slice \u0027chat\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/share/SharePage.tsx"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b2f4c4d9ca71220cec71275792bd7d9872eca652122aa4278db98b4bea62c7"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: content-security-policy: The live app\u0027s responses did not include content-security-policy (restricts the sources a page may load \u2014 mitigates XSS/injection). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b142e47096a32517bde0bb9b78f7e564119c7f87e22fba4dccc0d1e3645d74c5"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-embedder-policy: The live app\u0027s responses did not include cross-origin-embedder-policy (recommended by the OWASP Secure Headers Project (value: require-corp)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"153214bb9c80f7d66cba8eb6a7715e9609e84c3979c9b641cd6bedaa8be6930b"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-opener-policy: The live app\u0027s responses did not include cross-origin-opener-policy (recommended by the OWASP Secure Headers Project (value: same-origin)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8cdbe5cdec6a55c732bf9a9975c0e40f81ddfa4ad583a4a50bfb0895531607f7"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-resource-policy: The live app\u0027s responses did not include cross-origin-resource-policy (recommended by the OWASP Secure Headers Project (value: same-origin)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3ba35c34991db9965777a53477c2d497c4c6606f78d133bbaa3bc99c71648c2a"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: permissions-policy: The live app\u0027s responses did not include permissions-policy (restricts powerful browser features (camera, geolocation, \u2026)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac8a111f0bb913829dc090833718dca5ab8e5fba7350f9dcf68f1971010745"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: referrer-policy: The live app\u0027s responses did not include referrer-policy (limits referrer leakage to third parties). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"364ee3f006b552b8fee33710a1fbfb0c4fac59e927af9c4396e51940d9069f01"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: strict-transport-security: The live app\u0027s responses did not include strict-transport-security (forces HTTPS on subsequent requests \u2014 mitigates downgrade/MITM). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"567d3eeb50a5678c0139a1d316c614c44cd4c4fb5db6fffa7795bc73d035966f"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-content-type-options: The live app\u0027s responses did not include x-content-type-options (stops MIME-sniffing (expects \u0027nosniff\u0027)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e7f2638203ac91f5b64c739d090b339c00a90f1007c83652152b402a6eb0cdeb"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-dns-prefetch-control: The live app\u0027s responses did not include x-dns-prefetch-control (recommended by the OWASP Secure Headers Project (value: off)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"50e54b8511264dd930857e4620bda8ba4053661b439218ed047812bcab0e3a44"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-frame-options: The live app\u0027s responses did not include x-frame-options (blocks clickjacking via framing (or use CSP frame-ancestors)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0e84499d19780ca121fad65e0f3bd2fc17b1268ce3079a5f40495749c54dc87e"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-permitted-cross-domain-policies: The live app\u0027s responses did not include x-permitted-cross-domain-policies (recommended by the OWASP Secure Headers Project (value: none)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"55366a3d9fb1c5952ebc54aab272eb775bf2c1b056d6d399652365c26cc2375b"}},{"ruleId":"AXI1","level":"warning","message":{"text":"Container process runs as root: fkteams: \u0027fkteams\u0027 (fkteams/fkteams:latest) runs as uid 0 \u2014 no user was specified, or one resolving to root was. Observed on the running container, which is the only place the answer is settled: an image\u0027s own USER, a base image\u0027s inherited one and a compose override are all invisible to a Dockerfile reader. Advisory evidence for CRA Annex I (2)(b)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d6c35dfcd9e37173ff2bbfb7a12cc680b15cf300117e0dfda0a73b9c843c538d"}},{"ruleId":"DM5","level":"note","message":{"text":"Mutable entity: HistoryRecorder: \u0060HistoryRecorder\u0060 exposes publicly writable state (Documents)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/history.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5e09b944d93a1eca532ecccc6a057289c9e77d50a0e0cd5a1ecee61f2ad065"}},{"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":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add gosec / govulncheck (or golangci-lint) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060web/package.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":"web/package.json"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7178352a8ea9a573c4063ab0352651773041b8c2dd828213fd3516e72480bf29"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/docker.yml"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/docker.yml"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"PF1","level":"note","message":{"text":"Benchmarks don\u0027t track allocations: A Go testing.B suite exists but nothing turns on its allocation measurement \u2014 allocations (the main way hot code pressures a garbage collector or allocator) aren\u0027t being measured."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/runtime/mdiff/mdiff_bench_test.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf2f76c5bdc960a8b30c30fb1f8f8edb8734018e81eefb0c722f2114e8695cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 8 sibling directories (27 clone groups): 27 duplicated blocks under web/src/features/ have copies in at least two of the sibling directories chat, config, files, memory, migration, schedules (\u002B2 more sibling(s) not listed) \u2014 21 of them are reported below, and 6 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 27 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 27 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 27 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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4391fe49f0df60c5dca8eab991c5722a6a5b31f52d659fb1dec08759414528"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (9 clone groups): 9 duplicated blocks under web/src/ have copies in at least two of the sibling directories components, features \u2014 6 of them are reported below, and 3 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 9 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 9 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 9 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":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c684c31a21376743d187c5629ebb18f0b4a326ccd8c421d34815ae52300040e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (135 matched lines \u00D7 2 locations): web/src/components/layout/SessionShareDialog.tsx:18 \u00B7 web/src/features/files/FileShareDialog.tsx:13 \u2014 the two spans are one implementation copied and then locally edited \u2014 865 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":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e7492cca6617840df9aa5d671eda2f733275b8a724d6d45116d85e81cd0340"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (66 matched lines \u00D7 2 locations): web/src/features/chat/ChatPage.tsx:269 \u00B7 web/src/features/share/SharePage.tsx:190 \u2014 the two spans are one implementation copied and then locally edited \u2014 318 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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58a7c43746d8c7d2cc044ee3a20709f5647a079a4bacf128d61f3ebd891fdc2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:298 \u00B7 web/src/features/share/ShareManagerPanel.tsx:397 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6d9c63708201c465d5a491067e55e5a1af80e8ec71047f1f7668d1b27f4b66"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): web/src/features/config/IntegrationEditors.tsx:220 \u00B7 web/src/features/config/IntegrationEditors.tsx: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":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"791b9f36e8c7e9a3801ffe5be5b7f74da04f5987853371347478905762230f63"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:255 \u00B7 web/src/features/share/ShareManagerPanel.tsx:352 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddf84c3bd92d845806fb9359b4548c730a57fe4a465633b27eab203efc83d62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:449 \u00B7 web/src/features/share/ShareManagerPanel.tsx:498 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ff35dbd999a2883f8506d1c964178b40dd214f42133b82d419dbf857d515eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:140 \u00B7 web/src/features/skills/SkillPanel.tsx:355 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ab07a96f7ad77bcc527ed1ac6227522321f890583658f41405eeeedf41ce89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:289 \u00B7 web/src/features/skills/SkillPanel.tsx:525 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26a4e1429972c1817825267014119e028ce5d40994f790a04d933565c4cb8af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): web/src/components/layout/Sidebar.tsx:534 \u00B7 web/src/features/share/ShareManagerPanel.tsx:485 \u00B7 web/src/features/share/ShareManagerPanel.tsx:535 \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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8c041c6f271fc080559f05a0a51caa40830bb603490d0e3e42f72bac2b78d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): web/src/features/chat/MessageList.tsx:674 \u00B7 web/src/features/chat/MessageList.tsx:797 \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":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"953df412356163b1c98943e39b24fcfbb70dc68e4b4a6861a1b4dcd5ebf4d102"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:194 \u00B7 web/src/features/share/ShareManagerPanel.tsx:214 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e8bdc4f6b029cc96bdb90d0f46f91d9c94dbaf93edd9ce5a04ae309a735457"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): web/src/features/schedules/SchedulePanel.tsx:194 \u00B7 web/src/features/share/ShareManagerPanel.tsx:147 \u00B7 web/src/features/skills/SkillPanel.tsx:362 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"445951ef5f810c9164d8c42d8365cf6b83b55e87fefc70ab0e91754a78cc2ede"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): web/scripts/stream_frontend_logic_check.ts:188 \u00B7 web/src/api/stream.ts:112 \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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3f4e70e8e3cfdbefdb6a8aaf15a7c77b2dd244b9fc3a02e40449f963cde036"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): web/src/components/layout/Sidebar.tsx:508 \u00B7 web/src/features/share/ShareManagerPanel.tsx:459 \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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"4861e17a81c5e9aa2ab9f0dad6f1c4e8cd679180a98ba083e77e900870292294"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:506 \u00B7 web/src/features/skills/SkillPanel.tsx:676 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"df228028867b9b137ef5f2f558f9aa1f797249060f41ad00891e3b281d737f5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:98 \u00B7 web/src/features/schedules/SchedulePanel.tsx:143 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"190ab42d7d9523bce396e12b93cf027618a7c2a8b1bd9c1646252edfc86a9c27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:465 \u00B7 web/src/features/skills/SkillPanel.tsx:602 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"785c641a5cacfa56b751f4581bf12c8fd205637e94f709dee95e0dc2bbff5605"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): web/scripts/stream_frontend_logic_check.ts:229 \u00B7 web/src/app/store.ts:205 \u2014 the two spans are one implementation copied and then locally edited \u2014 88 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbcecc8a438df8f41f3f51ccd45d201bd62c95c5da5da6df9e90dadab67f1f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): web/src/features/config/AgentEditors.tsx:664 \u00B7 web/src/features/config/ConfigFields.tsx:71 \u2014 the two spans are one implementation copied and then locally edited \u2014 88 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"55be36bdcc6ca31e0ad27cba089ccbc6aee33eee6052c37e4d75775ffd3f6eb4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:606 \u00B7 web/src/features/skills/SkillPanel.tsx:945 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"977e13c9dcece5970e16463c0c6f3ed093639c7cf53ad0e12b6df506012d26f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:346 \u00B7 web/src/features/share/ShareManagerPanel.tsx:443 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07e0a0373b35fc0b4c94c038019ff8fc0b5acc89fbb23dba5c7b0f193cda1cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/src/components/ui/action-dialog.tsx:28 \u00B7 web/src/components/ui/action-dialog.tsx:95 \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":"web/src/components/ui/action-dialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9759ccef3c0aadd59525ea3159501ee3854291373c566ddc406cdd901135b74"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/src/features/chat/ChatComposer.tsx:642 \u00B7 web/src/features/chat/ChatComposer.tsx:662 \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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"62baeeb53ddfa6d67f45304ce4db19ef9b1172a8fee053d17aeb7d74488857ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/src/features/chat/ChatPage.tsx:219 \u00B7 web/src/features/chat/ChatPage.tsx:290 \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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"78edd6bea72a51a1eff64329c4c62970d929f391489d1e3a4495826832983061"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): web/src/features/config/ConfigFields.tsx:86 \u00B7 web/src/features/config/IntegrationEditors.tsx:559 \u2014 the two spans are one implementation copied and then locally edited \u2014 123 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":"web/src/features/config/ConfigFields.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf0df290d15efca6459b03b11d286040b449de89d56b4cfad5298fe1e482215"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:42 \u00B7 web/src/features/share/ShareManagerPanel.tsx:57 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b08feecc9b6f7555296604b53eabf5d8c5331ead4de7f69b38c11d3fc62005"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/src/features/share/SharePage.tsx:162 \u00B7 web/src/features/share/SharePage.tsx:210 \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":"web/src/features/share/SharePage.tsx"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"47328a39d397692ccaf642cfff0ae9ec852535d565fdb90b7c9a78adf4e0aa77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/features/config/AgentEditors.tsx:338 \u00B7 web/src/features/config/IntegrationEditors.tsx:31 \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9d523d8adfde836d2fcf9a4b6d5562f5f3933113a731ca46d98daaa45154b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:267 \u00B7 web/src/features/schedules/SchedulePanel.tsx:282 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cedcf84ed6085d6443948b4cbdc7b20e2138cd3dd2d0c3dd2eaa95699c51b29"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:83 \u00B7 web/src/features/share/ShareManagerPanel.tsx:96 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9f776ce0578fa3cdac0190dd5b76455abcc0cb4d53b19b427534a12d6f7bd9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/src/features/skills/SkillPanel.tsx:184 \u00B7 web/src/features/skills/SkillPanel.tsx:213 \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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad52d01f5870dff5e6ec6477abb957033d5f792d1c69a2af5993d72852c0701"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/scripts/stream_frontend_logic_check.ts:464 \u00B7 web/scripts/stream_frontend_logic_check.ts:475 \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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39b511f2bae9ad7525c0607f821a88722805909f71ef8e37c71d4ec1a64ca51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/src/app/store.ts:336 \u00B7 web/src/app/store.ts:347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/store.ts"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2432222f6a5fda9c534d4e8b6dd8264737113ec776a8a3d24e906977ecc485c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:77 \u00B7 web/src/features/skills/SkillPanel.tsx:100 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c300abcaa6d6ea5c7a1a5a9d67d9b70c037e69da4001f4fed31a589778823a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:151 \u00B7 web/src/features/skills/SkillPanel.tsx:339 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2da8d24c99242e0f0f84fa3c4395b849f0d304037b48b8e54cf9b234ac98cb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): web/src/features/schedules/SchedulePanel.tsx:241 \u00B7 web/src/features/share/ShareManagerPanel.tsx:202 \u00B7 web/src/features/share/ShareManagerPanel.tsx:222 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"24321c6ed189059da6941c3c46b61e84245e647745e3f038eb1d89fea47379d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/src/features/skills/SkillPanel.tsx:203 \u00B7 web/src/features/skills/SkillPanel.tsx:249 \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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"9157ce71cea978c77a4bab4ff997a9ea0211fe36ee1c27b19dae58bc72f88b1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): web/src/components/layout/Sidebar.tsx:82 \u00B7 web/src/features/chat/ChatComposer.tsx:754 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f4a45e02976f91f9326d7bbee0f1cade3152a02638a391bd428fdc097a73ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): web/src/features/config/AgentEditors.tsx:93 \u00B7 web/src/features/config/IntegrationEditors.tsx:232 \u00B7 web/src/features/config/IntegrationEditors.tsx:272 \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4003bac5c419924919f5be2f3166c874e66a14c11427bf1b9a3cc046c082e88d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:46 \u00B7 web/src/features/skills/SkillPanel.tsx:55 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9dbb9d9834187d222f7357809188075a2a0374f5ab15765efab5cb7b9a4e0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:416 \u00B7 web/src/features/skills/SkillPanel.tsx:580 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79814d659175df8f9f11cb365b4657c5dedb3eaa544d800f756d25c41bb6661"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): web/src/components/layout/Sidebar.tsx:468 \u00B7 web/src/components/layout/Sidebar.tsx:530 \u00B7 web/src/features/share/ShareManagerPanel.tsx:481 \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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"339e39c8ee05a396fb3f84a7f455c911d8888193a023e0c9a0dbb619550e8cf8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/src/features/config/AgentEditors.tsx:535 \u00B7 web/src/features/config/IntegrationEditors.tsx:599 \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d85bb52cb1b1e85238991440053c32ef1ad7a067b2ba0f81ec6584ace857114"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:115 \u00B7 web/src/features/schedules/SchedulePanel.tsx:165 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"320fe0184606d99afa5cabfbe3ec2a1a7467fe3103245ebe961daf779dcfae99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/src/features/skills/SkillPanel.tsx:126 \u00B7 web/src/features/skills/SkillPanel.tsx:136 \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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93018e577a2ba95e9f084379982cb6e58d004a5e456f386c6a3aa979189c158"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/src/features/skills/SkillPanel.tsx:278 \u00B7 web/src/features/skills/SkillPanel.tsx:298 \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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95b666f0242015ed8ba2ef5a6890206b3747213e3ad00fd5000157079ecf7b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/src/components/layout/Sidebar.tsx:485 \u00B7 web/src/components/ui/action-dialog.tsx:121 \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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"78949a6512a1a461bc62f459b9628e8b1dba982aabefc467ee1c5e834f49707c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/src/components/ui/select.tsx:33 \u00B7 web/src/features/chat/ChatPage.tsx:179 \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":"web/src/components/ui/select.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"071701e9e139e4a8b767e2f613dcfcf3b681e8f1655035c133402f13cf373b9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): web/src/features/config/ConfigFields.tsx:619 \u00B7 web/src/features/config/ConfigFields.tsx:628 \u00B7 web/src/features/schedules/SchedulePanel.tsx:647 \u00B7 web/src/features/skills/SkillPanel.tsx:993 \u2014 the 3 copies are spread across 3 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":"web/src/features/config/ConfigFields.tsx"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"5314e3bd2e3e6af3ccf14c072a28d9e28aede134b01502261f4f9b40c54e73f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:647 \u00B7 web/src/features/skills/SkillPanel.tsx:993 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be735d1249d2d0d75006bb58e2fe0c4772cd9de2a628f0d580514d50515e6c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/src/features/skills/SkillPanel.tsx:171 \u00B7 web/src/features/skills/SkillPanel.tsx:236 \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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3185614a8f8e896506fade3666b561b2f224fe548149ade2a0fe9ed813b14ef4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/src/features/chat/ChatComposer.tsx:715 \u00B7 web/src/features/chat/MessageList.tsx:1000 \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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"53be24172d96fb945cb8599483846730fd9a82dfab75ad734c6076cd04e71a56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/src/features/config/AgentEditors.tsx:555 \u00B7 web/src/features/config/IntegrationEditors.tsx:620 \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3bf3d86fa8322c8bf31c0a75b93836bdbda62a5cae89b9f210a0b247b8de78"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/src/features/chat/QueuePanel.tsx:11 \u00B7 web/src/features/skills/SkillPanel.tsx:50 \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":"web/src/features/chat/QueuePanel.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d39aef4c05ef38fb1571526d39e866425b21b9311e65c9a9458bca9ce99ee5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/src/features/chat/QueuePanel.tsx:129 \u00B7 web/src/features/chat/QueuePanel.tsx:137 \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":"web/src/features/chat/QueuePanel.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5931da0a9b43d11ac8f73f4f17b9cb35b277eb797eb9ddd23719f39b70e48a62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): web/src/features/config/AgentEditors.tsx:403 \u00B7 web/src/features/config/IntegrationEditors.tsx:241 \u00B7 web/src/features/config/IntegrationEditors.tsx:281 \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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"010cb8218cdcb805bae3daa2173d761660cab16b81dcc9cddefcfb56a02f41df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/src/features/config/ConfigEditor.tsx:44 \u00B7 web/src/features/skills/SkillPanel.tsx:72 \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":"web/src/features/config/ConfigEditor.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f955399c6ad7c9f4c8b286b8c24d76183733aac78eae7d889ca9b49f2c58ff88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/src/features/memory/MemoryPanel.tsx:20 \u00B7 web/src/features/share/SharePage.tsx:15 \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":"web/src/features/memory/MemoryPanel.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21d0828c2037b8a5c3ff94f2ff14fcb038f5f5fc2d0f9af2abcf7b878628765"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): web/src/features/migration/MigrationGate.tsx:10 \u00B7 web/src/features/schedules/SchedulePanel.tsx:50 \u00B7 web/src/features/skills/SkillPanel.tsx:60 \u2014 the 3 copies are spread across 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/migration/MigrationGate.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22dc280c2362302f46d27df8e3bb910cb954c969b948d20a9dbfe3fa49bd205"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/src/features/share/ShareManagerPanel.tsx:619 \u00B7 web/src/features/share/ShareManagerPanel.tsx:628 \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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a60e3a49bc3d12159d948b4c8dbac1c8de8187e3e599d3b7e2b3fdf436052db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/scripts/stream_frontend_logic_check.ts:558 \u00B7 web/scripts/stream_frontend_logic_check.ts:566 \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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a56460c39846a9a9adac1514d254c35185386a17dcbde612a9f243ce8918cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/src/features/chat/ChatPage.tsx:19 \u00B7 web/src/features/chat/TaskStreamController.tsx:20 \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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3b16cc9c9c28a2befb5561464a87c1988394c61445264f1621869af4e00048"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/src/features/chat/ChatPage.tsx:28 \u00B7 web/src/features/schedules/SchedulePanel.tsx:45 \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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2ecf49fa7c3a6e1a7f2e1ad83967402d81b00a473a30bd97e11274bd7a64ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): web/src/features/chat/QueuePanel.tsx:11 \u00B7 web/src/features/files/FileManager.tsx:42 \u00B7 web/src/features/skills/SkillPanel.tsx:50 \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":"web/src/features/chat/QueuePanel.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a5262e0769aeff30f0f439b3668a696b553a8bd162848ec0867f47f0152a5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/src/features/schedules/SchedulePanel.tsx:56 \u00B7 web/src/features/share/ShareManagerPanel.tsx:38 \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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e025edece5eb04b445d25f5626f1b07c7273d57e9bc1cad4d5d343f25eedae10"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:3 imports highlight.js/lib/core, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a43bae637713c0ca160db27b4bf67ce8268a135a6c86731feca84be46d1a7c4"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:4 imports highlight.js/lib/languages/bash, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1640133a4abeae4741091075a0e2a2bbb2305d259bf13cd5bc8bc84281d566"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:5 imports highlight.js/lib/languages/css, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3424f20e822f46033b01f4a5435c5329072457f2b744b2674ecfc48d51db1e2"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:6 imports highlight.js/lib/languages/diff, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0356f32bb56d6d92227cce85f8e4a11bdc33d509faa96e30898ed05dcff6e30"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:7 imports highlight.js/lib/languages/go, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5e9246b33a6a32c4aef3f5f1bebf2685d8522a76da1cc7e89086fd54fd4a3f"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:8 imports highlight.js/lib/languages/javascript, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd329b25087e4b1ade2d8aca965ab8f46c4db84a0ae4659216a2db519ed8594"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:9 imports highlight.js/lib/languages/json, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dca8c83b49501eac4f145f445196ef940dedc28a7e0dd0aaffc31482eeaaa5"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:10 imports highlight.js/lib/languages/markdown, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd4ad2928770bdd80c53ad68998a84b92883ebd7bbf830f2edf8fd29592bc01"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:11 imports highlight.js/lib/languages/python, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ef88b5b6c600af87a736669a4708790ef41e7f038fbb68828c7612539f9c1a"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:12 imports highlight.js/lib/languages/sql, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3215f1543f5e00aaeb83d75d16d7146892a497ae1cb0f727c8a6f674f584bb08"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:13 imports highlight.js/lib/languages/typescript, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf317b303eb5c6c38976347327eeac07519fc183f4bad6fc4d3ddf05d7bd0a6"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:14 imports highlight.js/lib/languages/xml, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"029ca49add3b99c71b398002832bc7e36d5d6e297f91694600c41153e52782a9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: web/src/lib/markdown.ts:15 imports highlight.js/lib/languages/yaml, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/markdown.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce3449eec7fa2034a2dff19269f4a1bc9357cdb4ca71f51b83e8b9d77a41b8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decodeChatEvent (cyclomatic 43, cognitive 51): decodeChatEvent has cyclomatic complexity 43 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/types/events.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8044af4e511f8d5aed4a1be2dd06b9bb71bbeb7f4cd138be7f96d2215e2b9df5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChatComposer (cyclomatic 34, cognitive 32): ChatComposer has cyclomatic complexity 34 and cognitive complexity 32; 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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd822fbefed5a0f341bb2078214d027f7eef09ab2b93967404eb0c7ce862caa2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function analyzeEvents (cyclomatic 32, cognitive 53): analyzeEvents has cyclomatic complexity 32 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"479c035015ec2790c14da49f30d39c4ed91fa1b915339caf5409aaf9134dfd9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MigrationGate (cyclomatic 28, cognitive 25): MigrationGate has cyclomatic complexity 28 and cognitive complexity 25; 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":"web/src/features/migration/MigrationGate.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f743f63546e5acdb8143986d6ec10c326780a843626b0b0e22d3965034b435"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 26, cognitive 27): handleKeyDown has cyclomatic complexity 26 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/ui/select.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffebc598a3152858b7f0a2cd9fc708a6e060f19757c83b34ce1c3557063a32a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ToolCallCard (cyclomatic 25, cognitive 18): ToolCallCard has cyclomatic complexity 25 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/src/features/chat/ToolCallCard.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"745301b0959f294e432599427744de1a4048ab24d2d0867d068a0c0e65b7ffbb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyChatEvent (cyclomatic 24, cognitive 19): applyChatEvent has cyclomatic complexity 24 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/store.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf71c13f762ac76b6ed1242a639b3901fd6ffc5fcb8edf6488ec15e13a6bca8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PreviewPage (cyclomatic 24, cognitive 15): PreviewPage has cyclomatic complexity 24 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/preview/PreviewPage.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d0d52dbc2608991f387849b8f9ecc200e4b599bab256df9ae5305b1fefb9d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function InteractiveBlock (cyclomatic 23, cognitive 15): InteractiveBlock has cyclomatic complexity 23 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/openui/AssistantUIContent.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d74e466128ab06912342d981d81ac32c35572541daffe70475f347733a10808"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function analyzeMemberCompletedText (cyclomatic 22, cognitive 25): analyzeMemberCompletedText has cyclomatic complexity 22 and cognitive complexity 25; 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99052e807dc9e11ea32fed72b332709ca9dc11175af23eb1596c9de4cdbd07d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeConfig (cyclomatic 22, cognitive 21): normalizeConfig has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/configModel.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd17be7bad61587de0b9a58cc0b73bb0b35012419c6dd620930c61e77971e94"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function manualChunks (cyclomatic 22, cognitive 12): manualChunks has cyclomatic complexity 22 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/vite.config.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"28678146295a72cb589b6bcea4b5677ccf3967f8ddc5ed0bc402c0f22a409d7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function subscribeStream (cyclomatic 21, cognitive 41): subscribeStream has cyclomatic complexity 21 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/api/stream.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27650cf8f17d5027c48d6573596352df581b98225adeeaa3fe298f75b349fc3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 26): (anonymous) has cyclomatic complexity 21 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/sendMessage.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"737caee1fd35d07c3da16310403932a4da02167a514a4819c3218649692e2600"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Sidebar (cyclomatic 21, cognitive 20): Sidebar has cyclomatic complexity 21 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0feb70c6a9924ead7281426c9f9e0d7e4ce250c03440cb46e4d362ae5f36ee72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function memberRenderParts (cyclomatic 20, cognitive 34): memberRenderParts has cyclomatic complexity 20 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad6aa9fecd99fb9fed1a0dba9249be94a9aec60a7439643d055f5306babe831"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function followTaskStream (cyclomatic 19, cognitive 29): followTaskStream has cyclomatic complexity 19 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"333d582af7c431acc7d1d7e6dad90f88c9e6abd4bc4de3eec6d910eb51edc99b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SkillPanel (cyclomatic 19, cognitive 17): SkillPanel has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1071acf4a23835809e58833ffe6009638d33c59178e6e0ee87d4870017ca77e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function timelineItemSpacingClass (cyclomatic 19, cognitive 12): timelineItemSpacingClass has cyclomatic complexity 19 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/timeline.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9714939fe12910da9b12f2fe76c24528fa3f5aa28ffe29714d870eca30986b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AskPanel (cyclomatic 19, cognitive 11): AskPanel has cyclomatic complexity 19 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc463cf1466fce85364208a921533954e978746a23e722959fab640b6b27d083"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SkillDetail (cyclomatic 18, cognitive 16): SkillDetail has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"115134e8096b51d5d4125c71207fb415b08a8bcde58549ba97dd7654544a3116"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitUIMessage (cyclomatic 17, cognitive 23): splitUIMessage has cyclomatic complexity 17 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/openui/protocol.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5107790749cd8669a2543ef69035284c57b6da491fff6d10f89a51cc00f0076e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyPresentationUpdate (cyclomatic 17, cognitive 21): applyPresentationUpdate has cyclomatic complexity 17 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/types/presentation.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebc94eec996035946d8a640d58e863f8715f7c213053d13ba606f8638dad1c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentCatalogEditor (cyclomatic 17, cognitive 16): AgentCatalogEditor has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e386522cb3572ad77b0c1ef9a7a42dd49e6521918e5db73728806de9c72ed9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FileManager (cyclomatic 17, cognitive 16): FileManager has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/files/FileManager.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2b33ca6f7b4957c7b59bef9d32cf15800537099b1bf2d254f56dcd5dca0ee6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 20): (anonymous) has cyclomatic complexity 16 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e0ddb54a0dfca4abbb227056a046f9791606b3f5d4377b7c2ffcc8e2b3120f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function subscribeStream (cyclomatic 15, cognitive 26): subscribeStream has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9b9a85c06aaeebad64060e89c556208ea67269b178839767ac768548d6fc5a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function completedMemberCallIDs (cyclomatic 15, cognitive 26): completedMemberCallIDs has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"789f8740d3c10364b70003a6a5b40ff9559c1d875015ab269623bd1376445098"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function monitorTaskStream (cyclomatic 15, cognitive 21): monitorTaskStream has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc835a1a42895dcab619ec0888095de17a312288372141b850d3b28948ed5cad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FileViewerContent (cyclomatic 15, cognitive 18): FileViewerContent has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/files/FileManager.tsx"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f78de098984b683d95a4d451d6712dec4835c3dd189836261aecbe2bfec9f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ConfigPanel (cyclomatic 15, cognitive 15): ConfigPanel has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/ConfigPanel.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e795ae28f159b1c67615b9f29ab730f6f77903f000bea2b3d7ef9f8177b33953"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDeepConfig (cyclomatic 15, cognitive 14): normalizeDeepConfig has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/configModel.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d8e6d4f2e3636680a35cfc52f7ab86aaa1c90197411edfaf2adec5d392dcd7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function JavaScriptToolEditor (cyclomatic 15, cognitive 13): JavaScriptToolEditor has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f59f999db0ea9f2acd0a562ccd5a73b200a3a1bee2b48785aba7bb96dfca2ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CreateSkillDialog (cyclomatic 15, cognitive 11): CreateSkillDialog has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fe661c8ed7dfd82a0121b1fe89a1bb2f67cb59d1bf6d57dc6bb0b59fd652c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChatPage (cyclomatic 15, cognitive 10): ChatPage has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf0393d466c18f7a3948c27a68cefca59bf72ed8636b2da0735fe9f8ac213df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addAttachments (cyclomatic 14, cognitive 20): addAttachments has cyclomatic complexity 14 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d2a6b19d845a6659e36df57fd954d647b78675d1d25a014983810c5514e1c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assertReport (cyclomatic 14, cognitive 16): assertReport has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b90d3e3d99d7c738f0f492cebaf85ffa0799f4d0c6efbfa074af80a208ace60"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function encodeUIAction (cyclomatic 14, cognitive 14): encodeUIAction has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/openui/protocol.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b13841008f57ad6d432c2738b25ec9666898211261771cd6ac31e0965328443"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChatInput (cyclomatic 14, cognitive 13): ChatInput has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf0af4c03be88b88cda4a3a1d630727d926f676b5984ae20dbce4a01308380d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ChannelsTab (cyclomatic 14, cognitive 13): ChannelsTab has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/ConfigPanel.tsx"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"db895d123c7d8978537fd75667add83935e5781aab3f340ff65bb5a3fb2f1cac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function QuestionNavigator (cyclomatic 14, cognitive 12): QuestionNavigator has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ba4f8e799850b6a8b4d1f058d823a9b86128e8d65bcea2362bc1507d0238e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ServerTab (cyclomatic 14, cognitive 12): ServerTab has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/ConfigPanel.tsx"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9009977cb756022eb0c0f4e5f92e01060213b6eeb0a17f440fab228f41291055"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function JavaScriptHookEditor (cyclomatic 14, cognitive 12): JavaScriptHookEditor has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e75494505ecda17db4d986412805e5759ee655af83ec08c8650758bba45a67d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MemoryPanel (cyclomatic 14, cognitive 12): MemoryPanel has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/memory/MemoryPanel.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a7147020cb061e92cf5b452020f3e3eb3603e2e55940a1ef7c8b6cfc73e310"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submit (cyclomatic 13, cognitive 12): submit has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dab9113ff3502c531aac69304d6284c18c0447eed933fd54399d66727c1110b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeDeepConfig (cyclomatic 13, cognitive 12): mergeDeepConfig has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/configModel.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"299706fb3ea68ae59a5645ffe786b362ab8243e2efd3cda604fb02f54dd38d8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentDraftDialog (cyclomatic 13, cognitive 10): AgentDraftDialog has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d1379f89d4885ee0a36ddbda8c30688cac596da480b3614900c8c11677177c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function receiveEvent (cyclomatic 13, cognitive 9): receiveEvent has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"2356fe129a8fc1ca4afa35db088abc82038e1c71c138440d656b644d527aae8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 20): (anonymous) has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f44633258219d3065417463945b7eaa342ece6440e76e3d9b0f6259ea5f4b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldReconnect (cyclomatic 12, cognitive 15): shouldReconnect has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8be6bdd66de54f2a250aee7bd86588110cd2f59cfb26048df96cb4c31828be2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MessageRow (cyclomatic 12, cognitive 14): MessageRow has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ef964457048c9cf7c4fe687f7cacfc7a9e3730733f150864015bd74b3686eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rememberChatEvent (cyclomatic 12, cognitive 13): rememberChatEvent has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/eventBuffer.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdde58f47f1bd362510f1f032def5a9390894e438438a5f3ae5a507a1421efd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function confirmCommand (cyclomatic 12, cognitive 11): confirmCommand has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"06249f6bd61cffc03d85389b39482fdb291fed0fa65d70a116231c892bfdfc53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelNameField (cyclomatic 12, cognitive 11): ModelNameField has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c32c5ab133f5f01aef664825c5340a901e75d4c6a1226f875442baef5e7213"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SharePage (cyclomatic 12, cognitive 11): SharePage has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/share/SharePage.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"468aafc8c87733c955329ede568ebbca0aa4ae9b380d3a0131aa2a5a4235a570"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function JavaScriptAIDialog (cyclomatic 12, cognitive 9): JavaScriptAIDialog has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3ce012bc4fdcc167d03e508f2b9f43f3088ec927f466caaa3d2e814fe5793f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function analyzeMemberRenderParts (cyclomatic 11, cognitive 18): analyzeMemberRenderParts has cyclomatic complexity 11 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"661747dbc3027229832b03a0e09ec90bb8e0661e4bf78e1770fb509b340c565d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function programProblem (cyclomatic 11, cognitive 15): programProblem has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/openui/program.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8a1d81edce5f6c5923a4fb12492c291b5b738edecb327717d0986f54ad1fb8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateSessionRuntime (cyclomatic 11, cognitive 14): updateSessionRuntime has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/app/store.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb50f311d6bf179681cd60b7dd441784f822e012c18c5176304541d311a6801"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildToolOptions (cyclomatic 11, cognitive 14): buildToolOptions has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/configModel.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f3ecf06dc3f9cb73a0ee63c95e7e69f2aa275724c900e0a0a694f8688a3ae9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MessagePart (cyclomatic 11, cognitive 13): MessagePart has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf3cd592502aaa15986da7390e2fd27b3fcd525ffbc85839fbcd597da227218"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/chat/MessageList.tsx: 1345 lines of code: web/src/features/chat/MessageList.tsx has 1345 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":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83dacca714c076148160a8c4292d81defef96ee61423773a5c9865afedc2777"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/skills/SkillPanel.tsx: 1006 lines of code: web/src/features/skills/SkillPanel.tsx has 1006 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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b616eaa89cfb0f3d361735df06ccd415ea35a46002c975d2154084d4050b92"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/chat/ChatComposer.tsx: 996 lines of code: web/src/features/chat/ChatComposer.tsx has 996 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":"web/src/features/chat/ChatComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9d30e52a94190dcf6ad76855e1732eab3b01e0d0c57e49704f02569b9ebbc1"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/config/AgentEditors.tsx: 750 lines of code: web/src/features/config/AgentEditors.tsx has 750 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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa799c7292a8d1510f5ebc5139e391dc4d18dfcfddeadb63da9c88e9d1e9052"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/components/layout/Sidebar.tsx: 699 lines of code: web/src/components/layout/Sidebar.tsx has 699 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":"web/src/components/layout/Sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff72744b65bf09f4da920c8705f701ae4964db97fdcfd934ecb8b0d2efcaca4"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/schedules/SchedulePanel.tsx: 683 lines of code: web/src/features/schedules/SchedulePanel.tsx has 683 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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f885d170f8548a4e12764c581d9d81b739586cd2ca109d682c78768a1309d25"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/share/ShareManagerPanel.tsx: 628 lines of code: web/src/features/share/ShareManagerPanel.tsx has 628 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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cd6f592f3bcc661f6236bcc1152dbc124f4bc4ec6687d6830b204569906a92"}},{"ruleId":"R3","level":"warning","message":{"text":"web/scripts/stream_frontend_logic_check.ts: 616 lines of code: web/scripts/stream_frontend_logic_check.ts has 616 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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"432eb19161f0daca7e5b77a8073024f8b44e716ece2de6e400b893830adcd207"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/config/IntegrationEditors.tsx: 611 lines of code: web/src/features/config/IntegrationEditors.tsx has 611 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/IntegrationEditors.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72e5dfb0b6f277814b9c702fb3ffd83b81331be005eeacd6d07f0ff567bd48b"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/files/FileManager.tsx: 610 lines of code: web/src/features/files/FileManager.tsx has 610 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":"web/src/features/files/FileManager.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fcf72268d7a1af4d01b05d00afe654d6e3710198c09b4b682202a17755127a"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/config/ConfigFields.tsx: 604 lines of code: web/src/features/config/ConfigFields.tsx has 604 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":"web/src/features/config/ConfigFields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10edc0787789b61bd6f5a8b3d8a6f390657dfdddb550b76d68de3b9048e82ac"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/app/store.ts: 474 lines of code: web/src/app/store.ts has 474 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":"web/src/app/store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47132c5634d584124f72f12455d2b116ef7e6a812d9b9a2317ba5a1ac8b943fd"}},{"ruleId":"R3","level":"warning","message":{"text":"web/src/features/chat/ChatInput.tsx: 422 lines of code: web/src/features/chat/ChatInput.tsx has 422 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":"web/src/features/chat/ChatInput.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36244efdfb9b73e7c4b6dea226d6ad678e9ffc902aa3044cf612b9057b6c32f2"}},{"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":"web/src/features/skills/SkillPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c92be336f305b543e2a81c66323a3fb78d28700723ccab2a66a69acff1597ac"}},{"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":"web/src/features/share/ShareManagerPanel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d2e0be276a4dee3444e41c4fb125f0ed5ba0f7e5902f82974ecbd68a073943"}},{"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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d527888a2206f1b4c7327e9e1bef8d1dfa1de017468e13b7e92b754bfb31452"}},{"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":"web/src/features/files/FileManager.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c2fc680a18a937ab10da8da66d8a6e1ea5e070536bcb1e6cbcd49cc8f499b3"}},{"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":"web/src/features/share/SharePage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dccc438c1c219d4f1aaaebfa73f703547fa7cb1cf7ba9f84180807ed59947cb"}},{"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":"web/src/features/files/FileShareDialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23933cf2cab73ac70ad9d279b4dcc87bff72d195f2f6b6c825e47235e6a3da0"}},{"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":"web/src/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbba11a704dcffe0c0ba3c76c008b856633191b577898eaec1fc1d7a9bd328ea"}},{"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":"web/src/features/preview/PreviewPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26762a0cf491a2496d4d9c59888f0664988b3f9aa26ae9da15c65782ada29da9"}},{"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":"web/src/api/skills.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9e74a12fe59c187b605d2352480976c235c24f6357902fe3e2617474431003"}},{"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":"web/src/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb444f7bbb134c8c8aec8298b22a068e287cdcfa94d471aac0faa24e59f55482"}},{"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":"web/src/features/auth/LoginPage.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67601fc95b34c729c9bdb96fb09fd673c32c639c316cf646c07c7ea299621694"}},{"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":"web/src/api/preview.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1e831fbc1bbdd5277ef5103b5474494e63e9a8c13e61711fff610efc08a6e1"}},{"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":"web/src/features/schedules/ScheduleNotifications.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"363fd616f840e94a09cdf138977c69cf9eba08c0a64281143b09f8508430c7c1"}},{"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":"web/scripts/generate_assistant_ui_prompt.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05daa035d52f300bfa6a9584feb5e03af8fc47d76f962b74aee9dff91107effa"}},{"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":"web/src/api/agents.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31c6748e88100fb2d5bd7b75c01dcde28ae947694d6b3256905524a541a191e"}},{"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":"web/src/lib/openui-devtools.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df25c2662c1b57711652a7922a326475f053911f5a4157b81efdbd05a0d841f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027sendSteering\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/api/chat.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbfedff5e00ef759cf4beeb67efae0cd36e82e9e5e0d61d706cfa7b4cd9c824"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getTemplateVars\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/api/config.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05842bafab6e20c619e67ef50ac32c32743089f4ce5c71fac8e37bab4fd4bf6"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027listProviders\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/api/providers.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed7dd78037226e024fc0ccf630e8a6c53552412ee5636f70615a345be4e4b7c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027createSession\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/api/sessions.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9f74e6fc909484475f2e4589d2ebb9214fd7a0aab2fa75be0bddecfeac822a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027updateSessionAgent\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/api/sessions.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba57cbb01f083c4ecc3d39351b9ef987b728fd5adc64eb2348df488a947743f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027streamQueue\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/api/stream.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"06069ac9f364ad1f5a0250493bd04c91bfe2f05cb80de5c17ae9db0896b79564"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ActivityList\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"405c801ad77e96612b5306959b42582b161ba57e0bc96d783a9338209caf2997"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027approvalDecisionLabel\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/timeline.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4078e0fbde53bbb99b21ea1f5097238df6ff143609cda858166dcc944caf6dc7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027truncateText\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/lib/format.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b17d2707ebb64992f2e912ca4c3b93c7e9ddce9ceb1473f1baeff1fa2792597"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027setAgents\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/config/configModel.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06ae3fb662f85bce1508eee6ed065dc39467dac61a8a9c9e442b4d0dbdad07c"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027animejs\u0027: Declared in 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":[{"physicalLocation":{"artifactLocation":{"uri":"web/package.json"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7958d8864e77cba30ec2006b4860e62ea5d05e7c634e1e8f4b10743b37e804fa"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027class-variance-authority\u0027: Declared in 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":[{"physicalLocation":{"artifactLocation":{"uri":"web/package.json"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2734143e39902c4611b831edc6f52adeab9b6ea08fec8073238e3e4a5e2d3c72"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!domainsession.ValidID(taskID) || len(taskID) \u003E 160\u0060 appears character-identically in 2 files \u2014 internal/adapters/scheduler/filecron/results.go, internal/app/schedule/executor.go. 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":"internal/adapters/scheduler/filecron/results.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"882b692468442b1db5300e3574aae692a7633a50e9f0288fc683d9a118daec2d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!entry.ExpiresAt.IsZero() \u0026\u0026 now.After(entry.ExpiresAt)\u0060 appears character-identically in 2 files \u2014 internal/adapters/transport/http/handler/preview.go, internal/adapters/transport/http/handler/session_share.go. 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":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb5a4b36d3f7874ce360b151466df8659c3f0c6efc683c4fc57d8965e463fd0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!entry.ExpiresAt.IsZero() \u0026\u0026 time.Now().After(entry.ExpiresAt)\u0060 appears character-identically in 2 files \u2014 internal/adapters/storage/file/share/session.go, internal/adapters/transport/http/handler/preview.go. 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":"internal/adapters/storage/file/share/session.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7f8738ea866b5d196ae5fe542c80ca31c455ed60b1b7e29266de463f90fd1a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060agentName == \u0022user\u0022 || agentName == \u0022\u7528\u6237\u0022\u0060 appears character-identically in 2 files \u2014 internal/adapters/storage/file/history/history_access.go, internal/app/chat/input.go. 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":"internal/adapters/storage/file/history/history_access.go"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b48f090a901d5b976827d186a3ec5294576478f1bc328e0ad0171d69390cf4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060archivePath == \u0022\u0022 || strings.ContainsRune(archivePath, \u0027\\x00\u0027)\u0060 appears character-identically in 2 files \u2014 internal/adapters/transport/cli/update/zip.go, internal/app/skill/install.go. 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":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b7a245fddb5c9bc1a406cc7dbd24e592fef602607e9eb9ce266b4166623cea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060char \u003E= \u0027a\u0027 \u0026\u0026 char \u003C= \u0027z\u0027 || char \u003E= \u0027A\u0027 \u0026\u0026 char \u003C= \u0027Z\u0027\u0060 appears character-identically in 2 files \u2014 internal/adapters/tools/javascript/state.go, internal/app/config/config.go. 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":"internal/adapters/tools/javascript/state.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d907368429e96b9665d8dd38caffb91e1831caf2118e9d39dd598cf82b7dc1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cleanRelative == \u0022.\u0022 || filepath.IsAbs(cleanRelative) || filepath.VolumeName(cleanRelative) != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/adapters/transport/cli/update/zip.go, internal/app/skill/install.go. 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":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2875ad41c00871c53d25f66f334ce275b0cdef5b1add210d9c090362d69bfc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content == \u0022\u0022 || strings.Contains(chunked, content)\u0060 appears character-identically in 2 files \u2014 internal/adapters/storage/file/history/history_record.go, internal/adapters/transport/channel/bridge.go. 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":"internal/adapters/storage/file/history/history_record.go"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e472ba362bbff6ff552b3266a7183c21d3179c0c6dad117352a562a777e65ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil \u0026\u0026 !errors.Is(err, os.ErrNotExist)\u0060 appears character-identically in 2 files \u2014 internal/adapters/storage/file/history/session_repository.go, internal/adapters/transport/http/handler/files.go. 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":"internal/adapters/storage/file/history/session_repository.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0d92620ef19eb2b6660f23c0f2733fbeb116e8e471edc8c30b73e03b7fe18a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || relative == \u0022..\u0022 || strings.HasPrefix(relative, \u0022..\u0022\u002Bstring(os.PathSeparator)) || filepath.IsAbs(relative)\u0060 appears character-identically in 2 files \u2014 internal/adapters/transport/cli/update/zip.go, internal/app/skill/install.go. 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":"internal/adapters/transport/cli/update/zip.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef0d8b182f117bb008fcab7277de719dbbb9d76c88bab9e9d1565458a5494dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.Notice != nil \u0026\u0026 event.Notice.Code == \u0022transfer\u0022\u0060 appears character-identically in 2 files \u2014 internal/adapters/transport/channel/bridge.go, internal/adapters/transport/cli/eventview/print_markdown.go. 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":"internal/adapters/transport/channel/bridge.go"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ec487df3789f168bb14d15a6e84d0a857409e7d0d356b18e26a8d296bc7468"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inputType.Kind() != reflect.Pointer || inputType.Elem().Kind() != reflect.Struct\u0060 appears character-identically in 2 files \u2014 internal/adapters/runtime/agentkit/tool.go, internal/ports/runtime/tool.go. 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":"internal/adapters/runtime/agentkit/tool.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b69c4425236c7df5bf90334c83c5d5b54e46316520bf6de72682e65bb8c9584"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path == base || strings.HasPrefix(path, base\u002Bstring(os.PathSeparator))\u0060 appears character-identically in 3 files \u2014 internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go, internal/adapters/tools/builtin/file/func.go, internal/runtime/pathguard/pathguard.go. 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":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1adc99497bb7d4202752a5d7489b38fa7afbf021bc1f828df487d23b7a0743"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readErr != nil \u0026\u0026 !errors.Is(readErr, io.EOF)\u0060 appears character-identically in 2 files \u2014 internal/adapters/scheduler/filecron/scheduler.go, internal/adapters/transport/http/handler/files.go. 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":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a41e1c3799915d8a7bbee5fe53a429afe3cc4f258e2ee522de1b470e7341f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060req.Message == \u0022\u0022 \u0026\u0026 len(req.Contents) == 0\u0060 appears character-identically in 2 files \u2014 internal/adapters/transport/http/handler/http_chat.go, internal/adapters/transport/http/handler/stream.go. 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":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d5da117e3dd4bb4efbf27747cebd7b75bef02c9ec1e0da07ef7c71a8cf89da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resp.StatusCode \u003C http.StatusOK || resp.StatusCode \u003E= http.StatusMultipleChoices\u0060 appears character-identically in 2 files \u2014 internal/adapters/model/providers/copilot/oauth.go, internal/adapters/transport/channel/weixin/sdk/protocol/api.go. 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":"internal/adapters/model/providers/copilot/oauth.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"409dd21e81b30c0a6776cadcd9863fe451367e4170cc8e26be2ba7add230baca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.Action == ActionSkip || result.Action == ActionReject\u0060 appears character-identically in 2 files \u2014 internal/runtime/hooks/bus.go, internal/runtime/hooks/invoke.go. 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":"internal/runtime/hooks/bus.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"6607ca186576cae740d4bf048f7b9e962e3a4e37bf8536dfa36e296c1b57fef4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stream == nil || stream.Status() != \u0022processing\u0022\u0060 appears character-identically in 2 files \u2014 internal/adapters/transport/http/handler/stream.go, internal/adapters/transport/http/handler/websocket.go. 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":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1153f9b1186ef147ac8d955dd1e04c9f2960d2fbc5f5045abc582009605c7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(content, \u0022\u6267\u884C\u51FA\u9519\u0022) || strings.Contains(lower, \u0022error\u0022) || strings.Contains(lower, \u0022failed\u0022) || strings.Contains(content, \u0022\u5931\u8D25\u0022\u2026\u0060 appears character-identically in 2 files \u2014 internal/adapters/transport/cli/eventview/print_stream.go, internal/adapters/transport/cli/tui/member_panel.go. 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":"internal/adapters/transport/cli/eventview/print_stream.go"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0933031b4ba07b1c45923e7bb0e0adcfa31468a15b5c9681c3da8d4f4b71a43"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(lower, \u0022anthropic\u0022) || strings.Contains(lower, \u0022claude\u0022)\u0060 appears character-identically in 2 files \u2014 internal/adapters/model/providers/providers.go, internal/runtime/model/model.go. 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a357dbeeeaf9c038c5fb8912f875b02fa97be8fff797331af835a2386d5bb7d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(lower, \u0022copilot\u0022) || strings.Contains(lower, \u0022githubcopilot\u0022)\u0060 appears character-identically in 2 files \u2014 internal/adapters/model/providers/providers.go, internal/runtime/model/model.go. 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"681cf4e20039f5c650b4c7d925c2d86d271a1435c35638d25420b7de1efcedb9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(lower, \u0022dashscope\u0022) || strings.Contains(lower, \u0022qwen\u0022)\u0060 appears character-identically in 2 files \u2014 internal/adapters/model/providers/providers.go, internal/runtime/model/model.go. 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9a35e4b73a89da782eb24129350e1f5347c75c37058837187a58c742a6a205"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(lower, \u0022generativelanguage.googleapis.com\u0022) || strings.Contains(lower, \u0022gemini\u0022)\u0060 appears character-identically in 2 files \u2014 internal/adapters/model/providers/providers.go, internal/runtime/model/model.go. 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f02bf1eecf4f1f9957b6234c88ce5da516b29b456a22a803d9d75b2e3f9987"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(lower, \u0022ollama\u0022) || strings.Contains(lower, \u002211434\u0022)\u0060 appears character-identically in 2 files \u2014 internal/adapters/model/providers/providers.go, internal/runtime/model/model.go. 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0749411301a17966881c0fe0e6cf40396df89b204fe1193ba4d6b888af8f0735"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(lower, \u0022volces.com\u0022) || strings.Contains(lower, \u0022volcengine\u0022)\u0060 appears character-identically in 2 files \u2014 internal/adapters/model/providers/providers.go, internal/runtime/model/model.go. 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":"internal/adapters/model/providers/providers.go"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbddc0704a0bc64f27bb5c9b5f517d02a2d2936000abe0125f22177407c10e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060viewErr != nil \u0026\u0026 !errors.Is(viewErr, os.ErrNotExist)\u0060 appears character-identically in 3 files \u2014 internal/adapters/transport/http/handler/http_chat.go, internal/adapters/transport/http/handler/stream.go, internal/adapters/transport/http/handler/websocket.go. 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":"internal/adapters/transport/http/handler/http_chat.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5967dbe30978d74389f0c570f5c91ab8192cb953fd142751e2512db0a42256e7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!instruction.trim() || loading || applying\u0060 appears character-identically in 2 files \u2014 web/src/features/config/AgentEditors.tsx, web/src/features/config/IntegrationEditors.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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2764fc9bcb6602d2ded2e9435a5919dd8cb6e4bc5b4dcb5dc4263b92da3c43"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060agent.builtin \u0026\u0026 (agent.id === \u0022coordinator\u0022 || agent.id === \u0022workspace_assistant\u0022)\u0060 appears character-identically in 2 files \u2014 web/src/features/config/AgentEditors.tsx, web/src/features/config/configModel.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":"web/src/features/config/AgentEditors.tsx"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c1cd3054b2f9de98d3b7a09c47b6cb11b123a75233b6307dc74ecbf6a3ef13"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error instanceof APIError \u0026\u0026 error.status === 401\u0060 appears character-identically in 2 files \u2014 web/src/features/chat/TaskStreamController.tsx, web/src/features/migration/MigrationGate.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":"web/src/features/chat/TaskStreamController.tsx"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e776506a9d8e0a9cf724718df171f118f0c31ea4b47d8eece5f7306c1b7b50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.target !== event.currentTarget || (event.key !== \u0022Enter\u0022 \u0026\u0026 event.key !== \u0022 \u0022)\u0060 appears character-identically in 2 files \u2014 web/src/features/schedules/SchedulePanel.tsx, web/src/features/skills/SkillPanel.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":"web/src/features/schedules/SchedulePanel.tsx"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"2456c9abfaca3305699ac5060e32bef85b8050f27a72d007c9c0e7b19960e4c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.target === event.currentTarget \u0026\u0026 !creating\u0060 appears character-identically in 2 files \u2014 web/src/components/layout/SessionShareDialog.tsx, web/src/features/files/FileShareDialog.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":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ddece7deeec351429a1202b2bc6af19168fe6ea35a58a57b48e946cc115c58"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.type === \u0022cancelled\u0022 || event.type === \u0022processing_end\u0022\u0060 appears character-identically in 2 files \u2014 web/scripts/stream_frontend_logic_check.ts, web/src/app/store.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8482d76ff084f98217394c65fbba1e23e3a1b17f778ffd93429399dc0bc1246"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060idLine \u0026\u0026 event.stream_event_id === undefined\u0060 appears character-identically in 2 files \u2014 web/scripts/stream_frontend_logic_check.ts, web/src/api/stream.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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"54488e02bb068c20d850d11a4bda7ebe9748cf9716a03843ca7414cfe416ce5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mobileOpen \u0026\u0026 \u0022bg-accent text-foreground\u0022\u0060 appears character-identically in 2 files \u2014 web/src/features/chat/ChatPage.tsx, web/src/features/share/SharePage.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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdc01a0204b02f0c50bd81019f21253c35880d5dc20febe5dc35d6922081e28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session.title || shortID(session.session_id)\u0060 appears character-identically in 2 files \u2014 web/src/components/layout/SessionShareDialog.tsx, web/src/components/layout/Sidebar.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":"web/src/components/layout/SessionShareDialog.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dda96e8a057c9d8305020740a5fd85a6307bb4e2723f0e15c2487f266a75c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state.chat.activeSessionID \u0026\u0026 state.chat.runningTasks[state.chat.activeSessionID]\u0060 appears character-identically in 2 files \u2014 web/src/features/chat/ChatPage.tsx, web/src/features/chat/MessageList.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":"web/src/features/chat/ChatPage.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5325f32db5a5c465c187887f01d0fb63005758ee5200242963502d92d08aff00"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tool.kind === \u0022agent\u0022 || tool.name?.startsWith(\u0022ask_fkagent_\u0022)\u0060 appears character-identically in 2 files \u2014 web/scripts/stream_frontend_logic_check.ts, web/src/features/chat/ToolCallCard.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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e64fbfe6b4e4fbd6ae1483c4625a4d4556f2b512e587eefd09233649b560aa"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context or an AbortSignal: Only 25/29 functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http; net/http, net.Dial) accept a context.Context or an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, a cancelled request, a shutdown, an expired deadline. Take a \u0060signal\u0060 (Go: \u0060ctx context.Context\u0060) 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":"577196fe89725f9b0e6c2faf89eceb8eb245919bd44e4439e0b0d649c1ee1c53"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: clearServerAuthentication: \u0060clearServerAuthentication\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":"web/src/lib/auth-session.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbb9d28c53e8e1a4e403706f59470707d3cbe1a17b495e1d2396d3a4ee85d37"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: request: \u0060request\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":"web/src/api/client.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8017ee83923489df8817a88abc4ceb97f1ce7328452967498b8c38fa2564e6d"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: post: \u0060post\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":"web/scripts/stream_frontend_logic_check.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e59bdae03014bc1a8f28ffb50ec6cf2dbf4570ab1c57e14ca3ace7eb2e3e1a3"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: CheckForUpdates: \u0060CheckForUpdates\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/update/update.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8650678b47a198bc37599cc750e74d77e25ac886b713e75b460495bd85505f89"}},{"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":"web/src/features/schedules/ScheduleNotifications.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6f65e66aa7d7a20b6e5ad0c2d6ee50fe5919b18a6ffc8cfdfff0d4e528bf39"}},{"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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/features/chat/MessageList.tsx"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ce7b91c50d394fa698aa0f5ea5af32c28d6c07c96c613746850f6750fbe7ba"}},{"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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/components/markdown/MarkdownContent.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fd781f9ec774f859599eceb36d9e0f71e85b8361dc57b422e9ce26a04e7e00"}},{"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":"web/src/components/layout/useSidebarResize.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d91ddd1bdce1eb807fd2ed6a76427b01918b6f5e963fc2d9a20fb9e788f921"}},{"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":"web/src/components/layout/useSidebarResize.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d711f4dd4726f032c234c8a446659008ed5394bd73d7be1c654fdb50a2d558ec"}},{"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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/src/api/stream.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffd3f2c14cdfa75b7d28c2d0d6da2b3dd95481457ac771859929b050fb06820"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060processes.Close()\u0060 returns an error, and the statement drops it: when \u0060processes.Close\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := processes.Close(); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/bootstrap/composition.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e377d893a2f9b7419ca3f676b6d31b4938241872f710884395fafe9c3f5c5d7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/tools/catalog.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c83575dc813b8762a80803bb5fffba69b2030c109a2c5e516dabc3939953d11"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := yaml.Unmarshal([]byte(parts[1]), \u0026info); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/skill/export.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"656e716d4f3325c42f17332283ec1aa2e50534ed485cd8f5cf4ae7edd0391a74"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/skill/export.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ba6d3fd494fe34127773819fafc78b25ce4234ef1f8f636b165bb2209d133b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/skill/export.go"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc928a4ad9db946696297de2966d7ec71a672b22a4940b310433b39d58c76eb9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := json.Marshal(typed)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/chat/taskstream/stream.go"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd8a320a4f2cc642c0b307d2e1454e0153a7b31b2cccac178521db9dda73189"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/chat/taskstream/stream.go"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2f437f33f3bf56ace9781fe32038c1f7040c9bd6b6bcfa978504ad4f5893f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/appdata/dirs.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e48a241aad62a1b6272027ae65f0b1f2972c28459a87acebb191bdda39b92f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/aiassist/service.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b05924317259368382ec3e934c058dc9577d8ad1a18fab0d1550fb5611975f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/agent/runner.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b65959b000f8fee5689bf72b78dae35e6952a7f2e6f9fa1fdde14a8581fd5c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := strconv.Atoi(v)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/agent/catalog/deep/deep.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"42810292e37d1d5f49a82b1f389a23c1f2c25287ddf3aa1c91e4eac63104504e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := strconv.Atoi(v)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/agent/catalog/common/definition.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b88b9e9db51167772501b1f503eb0f9aab962b9716ba88aa27d4b315dd2d84f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/aiassist.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e321708ef20a3ccbc6896c1efd266093a11da6a34dd3c2e38a56399ce9c8b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/auth.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00c637295f156cd79689083d813507fc8328f29ab7bf396aa5c75100435ea4b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/auth.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5ac9229dd791973e7c80e6557d7c73da7b44f737e4bc4f251df34edc4ff796"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/files.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec1ad8d1d03cdaae391cd64e64545055e8d403a673f66844bc888f47a9e70ff"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060newBody, _ := json.Marshal(bodyMap)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060newBody\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060newBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060newBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/openai_api.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d314c7d107f54402e256d55a5d4d98b277acd433960b892894342938f19f54be"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if readErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/openai_api.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9a2c5606ce2484e99462949bbba91172443965b555e42135148f2ff43c83bc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/preview.go"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93b6bd928a5a185bd5b3963571205ce75c7327c32a6e75f58b513245d7432b6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"9872d5f7aef8b4d2dbbdaf133212ca6eabc38c801d8a0a717bc0ee3d308c9400"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := fmt.Fprint(w, chunk); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/http/handler/stream.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"a472e0d88d35eb8dd2a78edb4eb1bd9203f8eeb50437a9d5a2201cc14cdf6e29"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := hex.DecodeString(fields[0]); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/update/exec.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a5110f2a802890efa8959e941e355dfb9d18c94134789613b1e2502993a91a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060r, _ = glamour.NewTermRenderer( customDarkStyle(), glamour.WithWordWrap(width), glamour.WithChromaFormatter(\u0022terminal16m\u0022), )\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060r\u0060 as if the call succeeded. When \u0060glamour.NewTermRenderer\u0060 fails, \u0060r\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060r\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"52df78f3e92b02cc2f08c91bf8885356f866fe257a148475f3b58421953050c9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4e45de38e2ba3cfdbd5907cbb0a01aba2270ab468d0e43027bf54754081ac6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"acdd447fdd5b487ff04f4c10b71e29d6efce54e667a31023ad7ec9926d1ce5d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := quick.Highlight(\u0026out, code, lexer, \u0022 \u0022, \u0022 \u0022); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d74b6fb82ed429f13baddc4ce8bb305d998bb184d589ba2e2804c5e73acb08"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd776e1240c5444c3ed4c04df9211745e16a3627531dde3a41ae222f34366d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(args), \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/panel_render.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0894d0436d7abf09dac969827bba82e5f89f0b45dc1766fbf901227e9cba1d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/runtime_widgets.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c72c757068549e09b79ef0da5cfa20d8d4bf2dd2376a1d1dea7ca40ccecfeeb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/query.go"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"830ac2f8dafe600b6decf37e32b8e734dcb3fcc35c00b7dae7a88d8b2e4a21df"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060spinner, _ := pterm.DefaultSpinner.Start(\u0022\u6267\u884C\u4E2D...\u0022)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060spinner\u0060 as if the call succeeded. When \u0060pterm.DefaultSpinner.Start\u0060 fails, \u0060spinner\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060spinner\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/query_view.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8af23790dac5eb96183bc4144e3599db21c8d96425f72efe80636edeccf36d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(args), \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_events.go"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"73453e9da7bc8146cc472383b1f765b2c1db54fdda92781798c79d43b76cf3d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rel, _ := filepath.Rel(p.baseDir, p.currentDir)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rel\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060rel\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rel\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0966cc2140406ffe1c5f449db29ebd3663bc156b0d412576f1a82bc19b98a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1a37dd1289b1d6d310637f68c47a9e8ea7bf197690ca395d5eab0f1151c643"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rel, _ := filepath.Rel(m.picker.baseDir, fullPath)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rel\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060rel\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rel\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"edad6262b96c888207de38252cd2aba6e5a3dd7a278d65a134b52c8590b2469a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd6abb72367cf1f549326211cb7b84beb2b613ae2e2d48eb89f4c05569503fe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bacb4480d0d54cb83c4261abb7fdfdd05d7d39733a678b03acd943170db76a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05952e7266144ae01f8a3e0b5c49baf2d0d31792ae0058f601519b2184420ca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"7965d6ff8c4cd850cf550a7bd6ae271a8d3b5382c1e6fa9bf1100488a113c311"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"905840eeebe1a105705d3d69a39d5e21473d439b826d553ed6cfd74c03772bd1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa119daf50bb9d77f140c008be95488c6a6e96f1142f4eb1a31940b8084775c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef05b8dd1b712e34720ad4ef73a411ae1b7f82f8cdd5696e78b03241323edef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"afca147fa12de1c85936e295c37f4ca33d5401827f428a68bcb1081e9fb55cff"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d336de05d5148ad744a971f53a29fcd0c29c691edfbd87392c601398deeeb33a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8496eed8f60cf78de522db04d38ff19b8577b0a66a781647cb0fb04ea4dae2d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(content), \u0026result); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a7c5bfe4e4a21f0cf8cfbfa8fc581c17aea8be3e1e2de67177e173721e9de1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060spinner, _ := pterm.DefaultSpinner.Start(fmt.Sprintf(\u0022\u6B63\u5728\u67E5\u8BE2 %s \u53EF\u7528\u6A21\u578B...\u0022, pcfg.Provider))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060spinner\u0060 as if the call succeeded. When \u0060pterm.DefaultSpinner.Start\u0060 fails, \u0060spinner\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060spinner\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/commands/model.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"06098b0498528f0678464b9c54e5de8224baee062b7fa083fd064ee886b1c5c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060spinner, _ := pterm.DefaultSpinner.Start(fmt.Sprintf(\u0022\u6B63\u5728\u4ECE %s \u4E0B\u8F7D %s@%s...\u0022, provider.Name(), slug, versionLabel))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060spinner\u0060 as if the call succeeded. When \u0060pterm.DefaultSpinner.Start\u0060 fails, \u0060spinner\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060spinner\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/commands/skill/install.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fe42ab543618cd13e0407caba60b535937f51f016f607e711aa3f370a2da76"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := bot.SendTyping(ctx, userID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/weixin.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"224689b5aaa03592e5627ccef331d7009b647df0072dac4fe946db1b215fb687"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := bot.SendTyping(ctx, userID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/weixin.go"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"83eae8d938d8292b2bb02ee5dcbaebf3a7bf0dc7c810603b791b6752870b3df7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060auth.ClearCredentials(b.opts.CredPath)\u0060 returns an error, and the statement drops it: when \u0060auth.ClearCredentials\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := auth.ClearCredentials(b.opts.CredPath); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67420f0144e55027568458b2452b49e8849735c44b35ffbb90bc2d086258677"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(rawMsg, \u0026wire); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f48464a7ea46557513b40ef685f110c0e34a39d2bad3cc28f0138554cba11f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060size, _ := strconv.ParseInt(item.FileItem.Len, 10, 64)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060size\u0060 as if the call succeeded. When \u0060strconv.ParseInt\u0060 fails, \u0060size\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060size\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/weixin/sdk/bot.go"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a05e4fa7378571115c6b12b7be3349d725ab0ac295ea43896defce03fc6d80"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := session.ChannelTyping(channelID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcf3ea31bb17f1ad91544a2e115d7a97f9b119818f1e52ebba2418b4b608aea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := session.ChannelTyping(channelID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7173e41f5dbdd2e9e1e6f0e6f94c123e59bead1cd0ca1f004aea39c15ca950d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/channel/discord/discord.go"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b768d88d48b7ada93422ad675c6b9b342588c36055cc4c2f2fb3180f217eb9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060st.client.Close()\u0060 returns an error, and the statement drops it: when \u0060st.client.Close\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := st.client.Close(); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/ssh/func.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39de8f022447d0ad829ea48a598aa98c8d77f94b647d70a6f873aaa3a3473cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060lineNum, _ := strconv.Atoi(parts[0])\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060lineNum\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060lineNum\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060lineNum\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/uv/func.go"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb652a8d6cdac8d92118152b3c6210969f52aef37be359ff07a99dc6ed4e4dc2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060offset, _ := strconv.Atoi(parts[1])\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060offset\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060offset\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060offset\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/uv/func.go"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"854d82c2f130d820903956187d7f7f0d7c493c51c17ad5b15399363a43cbe06f"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if _, err := os.Stat(packageJSONPath); err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/script/bun/func.go"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"154a19479e4c957162f612378106a197d18945d47298fef23cbc7f7d0883685f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82050204d7f9f256b8ba4c509507efcc1802747c7cc89d351e1baec478555b2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060matched, _ := doublestar.Match(req.Pattern, matchPath)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060matched\u0060 as if the call succeeded. When \u0060doublestar.Match\u0060 fails, \u0060matched\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060matched\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"d827b5c2aef73d71438460ecc7b5a2d9a09be8da33f06f008b650ba121d9a1f5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060matched, _ := doublestar.Match(includePattern, fi.Name())\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060matched\u0060 as if the call succeeded. When \u0060doublestar.Match\u0060 fails, \u0060matched\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060matched\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ea08f06b4af097ba41d99b02e2e6dea72910449b3dfa122156764ce572e55b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/tools/builtin/file/func.go"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f859cd2d9eda7f04832256143b0d7ccdb19c676ec717c0c7e782829b781d21"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/transcript.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d01485c8672a8f0d0448bfc8d60e6cdd64113caac1c3606155fc4f36d0b473"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := atomicfile.WriteFile(filepath.Join(h.sessionDir, rel), data, 0644); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/storage/file/history/transcript.go"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"232ca1057700286b7ddddabe2c95075028d8e05b8a5150c0489a04a7aa2d9099"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/scheduler/filecron/scheduler.go"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f35b412ecf6517b64251bd8f58c354a38e997bfafc4ce18e969c4119104bbd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/runner.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d09b5515bebe146341a9f06f2dd7c64fd7c93274402d165c355dd43abbb5bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/runner.go"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd18e7a3be3568689ea1ea2c952974901295382c163e0b5f2e3aedd6c7c86519"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if walkErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be1af3f296408b5db28719a1e9fe0ce09400dc51a3b783842fe431e54869583"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if readErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6616902833849d4d141cf1aca459b261615ba22eddd18dde7f187f1320dd13bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa6b8490bfa46383e4934ff1a01118afe16f9b74dfb96876133f117aad22b9d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if walkErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f54cb96963a808bca1cf1c04772b291b465431dc556274c57e2a5164359edbf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if relErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/fkfs/backend.go"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"7974fb297e6d17008bae6d0ecc662a1467c49bcaf337b43198f2c7bb7b7e5261"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060detail, _ := json.Marshal(map[string]any{ \u0022task_index\u0022: e.TaskIndex, \u0022description\u0022: desc, \u0022event_type\u0022: e.Type, \u0022event_detail\u0022: e.Content, })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060detail\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060detail\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060detail\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/dispatch/executor.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e358e7078b8d632612b24d955043a25b36687a3ee899359ec83eb15f95643e6c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060final, _ := p.Run()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060final\u0060 as if the call succeeded. When \u0060p.Run\u0060 fails, \u0060final\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060final\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/runtime/agentkit/middlewares/dispatch/view.go"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a978f73fdd1e16d7dc849eaf78a8c1074a17739c9a7df7a94f52dfa2285732"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060b.Remove(spec.ID)\u0060 returns an error, and the statement drops it: when \u0060b.Remove\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := b.Remove(spec.ID); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/process/local/local.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c0b6ef3c6a0dc39f738de737e4861ae67ff1a917dc92a222886813bc7380a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060b.Remove(spec.ID)\u0060 returns an error, and the statement drops it: when \u0060b.Remove\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := b.Remove(spec.ID); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/process/local/local.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ef0a8b7eefda9fa6c15f05c31d543f7670f9ae0b157cd9e51894732c17b889"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/copilot/token.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"2755cfa3f0037bea35de4a2c48ede85da94b9db1533c053b88325bed0d2a714d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(data, \u0026content); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/copilot/token.go"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0034a1f8a53ae528cd5cd39dfa61547151cf82d48ac93edfa09ac588f866c0d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060home, _ := os.UserHomeDir()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060home\u0060 as if the call succeeded. When \u0060os.UserHomeDir\u0060 fails, \u0060home\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060home\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/model/providers/copilot/token.go"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f466354532ba46dba33cf31336be08d75e6c00ac41fa7af650d6e7c34a50a72f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060home, _ := os.UserHomeDir()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060home\u0060 as if the call succeeded. When \u0060os.UserHomeDir\u0060 fails, \u0060home\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060home\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/environment/bun.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19d9786780d93299a81b00b55b329c6dbbdaa777c3c87692e22f3253aa9ffce"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060home, _ := os.UserHomeDir()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060home\u0060 as if the call succeeded. When \u0060os.UserHomeDir\u0060 fails, \u0060home\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060home\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/environment/uv.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c7ecbe5a6f8b2088901b0901ba9b9b19bb615735bcb17a04f13f677f9d71f4"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 2/3 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) override strict null checking: ~0.4 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 6 assertion(s) across the 16806 source line(s) of the 97 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: web/src/features/chat/openui/fieldState.tsx (3), web/src/features/chat/MessageList.tsx (1), web/src/features/schedules/notifications.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060formatSearchResults\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80317eea0baefe16342fe3dd707830d9d9cdc9244d7893e8f394d65de256bf9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060formatCommandResult\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b2eec00c70699fe912654311228ef66337f6ad2272ee2f04ce0d82db2206c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060formatFileOpResult\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3388264b7f6aa7ed80b24ce8989d09f5fc116f10491644f4bf91545706ed143"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060formatSSHResult\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e562b2959bad35a5025157398e31b0b6c6330d408d2955e9c6dc54c8a8647e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060formatTodoResult\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"3734992741e4d1b042dd433f0a528a0e95012b7d94aa24e7824dcfe7219365b9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060formatFilePatchResult\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_format.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b262fe9a77d3ccc0ae0eeb21e802a2897bb6e7e31e17bac77ee15fb8e23b17"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060formatSearchResultMarkdown\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"008e8b471c2787a49246bad740eb82e305a32db3c165ff39e9611428578d8e28"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060formatSchedulerResult\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/eventview/print_markdown.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7663ed82f29f7039c23ed3acef7a0027c3ae2197c4f8a16e7725893aefa35a2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060runtimeAgentTaskFromCompleteArgs\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_events.go"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9e1b1cdebd320778912b8da69dfd5da92ce989e72cd68110742ff45638672f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060currentRel\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022.\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/runtime/runtime_picker.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a319d739dc530a66058e930ba0b2b028dedec8268ae0bb117789b9712955e4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060stableToolArgsSummary\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/panel_render.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1eb98d4f0fdb13a28bf3c5590b4f719da0736b8f07fd8697d4eeff6262cd594"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060compactJSONPreviewValue\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/adapters/transport/cli/tui/runtime_widgets.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5c9a173e13da7e944d7d5fb83a31fe4a6450d723147a1438951b8ef34f3ac0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060marshalPromptPayload\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022{}\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/aiassist/service.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37eb6801c29838c805e7ba457b5af59171777a6a8194499bde79917886ee3e7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060Dir\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022.fkteams\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/appdata/dirs.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"65156c9748e936222a567eea4284dee74ec8b1e3af0e926d23595df3e5bd7311"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060estimateEventValueSize\u0060 turns a non-nil \u0060err\u0060 into \u0060return 64\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/chat/taskstream/stream.go"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37657affc364ab85a965633d4c42622750471f5573cf66026d06028f01c7bae"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060previewLinkIDFromPath\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":"web/src/features/preview/PreviewPage.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"58781704fee0d690ac23fd2d98d84799fd0cedca08b74c9d59d57f93097beae3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060chatSessionIDFromPath\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":"web/src/lib/navigation.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"202629cde7a8fd81bef30dc3921df0eb76ce2dd88e16a514886b2b1edcc78a69"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060strings.Contains(lower, \u0022invalid api key\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060strings.Contains(lower, \u0022invalid api key\u0022)\u0060 also satisfies \u0060strings.Contains(lower, \u0022api key\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":"internal/runtime/events/friendly_error.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3447e49540e768e56d9c3a54ed4766992362d3118bccd92898325b5b71c1e9"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060strings.Contains(s, \u0022**\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060strings.Contains(s, \u0022**\u0022)\u0060 also satisfies \u0060strings.Contains(s, \u0022*\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":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"6312432a06bf97b9e334d58ff27b3efc5470ec08c0e5059214ee1f945e479a92"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060strings.Contains(s, \u0022__\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060strings.Contains(s, \u0022__\u0022)\u0060 also satisfies \u0060strings.Contains(s, \u0022_\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":"internal/adapters/transport/cli/tui/markdown.go"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59fb39dd35b87fe9ad4c80db7bd8d2216763d05cd7b153e9f255c935d3b34d7"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1321","guid":"0367a99b-2a5d-7b52-a83b-6f4196022556","name":"CWE-1321","shortDescription":{"text":"CWE-1321"},"helpUri":"https://cwe.mitre.org/data/definitions/1321.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-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-252","guid":"78915dc5-e486-f858-bc3c-aa570ad9010d","name":"Unchecked Return Value","shortDescription":{"text":"Unchecked Return Value"},"helpUri":"https://cwe.mitre.org/data/definitions/252.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-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-330","guid":"f811ddf9-2e54-865b-9c76-f97905849790","name":"Use of Insufficiently Random Values","shortDescription":{"text":"Use of Insufficiently Random Values"},"helpUri":"https://cwe.mitre.org/data/definitions/330.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-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-704","guid":"50bd74b4-a921-5159-8671-99fd7e78c810","name":"CWE-704","shortDescription":{"text":"CWE-704"},"helpUri":"https://cwe.mitre.org/data/definitions/704.html"},{"id":"CWE-705","guid":"bfa22244-2156-5e5a-a6f6-2fbbc9d8a328","name":"CWE-705","shortDescription":{"text":"CWE-705"},"helpUri":"https://cwe.mitre.org/data/definitions/705.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-755","guid":"ac8136dd-f77c-1c5e-bdcc-3905bbad9bd9","name":"Improper Handling of Exceptional Conditions","shortDescription":{"text":"Improper Handling of Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/755.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"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"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":78,"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."]}]}