{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayChatOwner._event (cyclomatic 119): NormalGatewayChatOwner._event has cyclomatic complexity 119 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d09c62335956a1ea718b7de1a9bc7aa4be9ec6d165dd64268d55534810ce85e"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._buildInputBar (cyclomatic 83): _ChatScreenState._buildInputBar has cyclomatic complexity 83 (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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":7111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e5e7904fad1e2cc6e5ee67f84a158a92f94ee2bd244e5d8d9a9ab704552ee3"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._buildBody (cyclomatic 71): _SessionListScreenState._buildBody has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e595a99101e2438cfbfbc5a412f2e91304184bb84018b3bc96113d103e1a5a"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._applyNormalSnapshot (cyclomatic 66): _ChatScreenState._applyNormalSnapshot has cyclomatic complexity 66 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b796040ff170ee10e958e79897c3dd0e012c36eb4ab333585dc6d734fb623b"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayChatOwner._settle (cyclomatic 61): NormalGatewayChatOwner._settle has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"472a4e0922ed99e15e1acac3ddd2fa792c55b6f354eb8c09f553675c4b7c64ec"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._submitMessage (cyclomatic 59): _ChatScreenState._submitMessage has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4781}}}],"partialFingerprints":{"codehealthFindingId/v1":"145e166106398d25fe35822dac4a101dbe9288f1fe2cfbfd46e9574fa55236ed"}},{"ruleId":"D1","level":"warning","message":{"text":"MobilePushService._refresh (cyclomatic 59): MobilePushService._refresh has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9688a8336881986443e81882550ed9aa79613d061072341b399e6c4312d63e"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._sendMessage (cyclomatic 58): _ChatScreenState._sendMessage 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4425}}}],"partialFingerprints":{"codehealthFindingId/v1":"df525ae335324dbc1f59148e011f654c332b6d4543c362f6af519aa01bc0bf66"}},{"ruleId":"D1","level":"warning","message":{"text":"_OfficePackage._index (cyclomatic 55): _OfficePackage._index has cyclomatic complexity 55 (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":"lib/core/services/attachment_document_service.dart"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"210bd4501cfe2a01ee07f7c8ef1a2421d01a0cf3ff121e13df98b3cb806cb0d8"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayChatOwner._recover (cyclomatic 55): NormalGatewayChatOwner._recover has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff386ea67e952688fb47aecb16c9575fc5774087d159b71513f03a9aaf496994"}},{"ruleId":"D1","level":"warning","message":{"text":"HermesAppState._runNotificationNavigation (cyclomatic 53): HermesAppState._runNotificationNavigation has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9203ad6b25f3e5cde4cf90ea8216d32c9e8d19f4b06255ed9145a0f88908be"}},{"ruleId":"D1","level":"warning","message":{"text":"MobilePushBridge.command (cyclomatic 52): MobilePushBridge.command has cyclomatic complexity 52 (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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushBridge.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"05366e1bde886ecb2b86b6ea5ac003ad939db1e77935c4724984329ca52d4115"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSessionsScreenState._buildLoaded (cyclomatic 51): WorkspaceSessionsScreenState._buildLoaded has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed11f0f4459a0f04f32069339261e1cc50d01a88fec49dbe97036e01a057bec"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayChatOwner.submitPrepared (cyclomatic 50): NormalGatewayChatOwner.submitPrepared has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1739a442f6e183e970147c16bfedb4c70fa0d95a630367fd3642b4b59672c7e"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._sendDesktopGatewayMessage (cyclomatic 46): _ChatScreenState._sendDesktopGatewayMessage has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5080}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08b690b65de6cc57f8e5e6fb7db006c622e95ebd03cba7c4e5fbda5192cf08d"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._buildBody (cyclomatic 44): _ChatScreenState._buildBody has cyclomatic complexity 44 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8063}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba02f692b5d98a3da393265f22a955a664189f7350495a889e470fdb729e22c"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSessionsScreenState._buildSessionRow (cyclomatic 44): WorkspaceSessionsScreenState._buildSessionRow has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"39320171391ef169a664f2644edc2f92de6b389dcdb09fa7f125dcadcc5e2793"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayChatClient.sendMessageStreaming (cyclomatic 44): GatewayChatClient.sendMessageStreaming has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e4bddf87ed805e64a23f1b993f2570371473a237e1101989cde0c568fc9a78"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._sendRecoverableGatewayMessage (cyclomatic 42): _ChatScreenState._sendRecoverableGatewayMessage has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5242}}}],"partialFingerprints":{"codehealthFindingId/v1":"47de7c49fa615347eb0a23558810fa0317a70e42f7799597fd42a2bcb261e243"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayChatClient._decodeSseFrame (cyclomatic 40): GatewayChatClient._decodeSseFrame has cyclomatic complexity 40 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"90831c1c42a67fe0a7604d3be53027a9abb3d7360e48ed1d708bd3172fe9bdbd"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardTaskHistory.fetch (cyclomatic 40): DashboardTaskHistory.fetch has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/delegated_task_history.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dca9d257dd2012509014fc805de2c5f73bf23199c0a5c0cff353a40247a29bc"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnRecoveryCapability._fromRecoveryPayload (cyclomatic 39): GatewayTurnRecoveryCapability._fromRecoveryPayload has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e17f5b51e3f008ca0c22c404d665a5c207e2a070ca64b72e6ef84fa981b3ba0"}},{"ruleId":"D1","level":"warning","message":{"text":"_MobilePushSettingsState.build (cyclomatic 39): _MobilePushSettingsState.build has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/mobile_push_settings.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee159932aaad18c3c53c456a7e788ca502c27c4830cae770aa7f139f2428262d"}},{"ruleId":"D1","level":"warning","message":{"text":"_AddDialogState._validateAndSaveOwned (cyclomatic 36): _AddDialogState._validateAndSaveOwned has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e5ce0bcc98a3f3d72bf82e8da4a2648093c33026a80c8b6ea20dd3140f2a0c"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnReconcilePage.fromWire (cyclomatic 36): GatewayTurnReconcilePage.fromWire has cyclomatic complexity 36 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7a5b67f240e21a531239665bb38a63befd6abe328e89f74cefcf047249b66c"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnCoordinator.submit (cyclomatic 36): GatewayTurnCoordinator.submit has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc545bb89af70934f8809fd93828584cfc6db4ef717270611c7589cf8adfce7f"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._applyGatewayTurnState (cyclomatic 35): _ChatScreenState._applyGatewayTurnState has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3462}}}],"partialFingerprints":{"codehealthFindingId/v1":"da142ef1a2423a1c6d647cc2796165815f4402e4db7358e93c3ce9a64976499c"}},{"ruleId":"D1","level":"warning","message":{"text":"HandsFreeConversationController._event (cyclomatic 34): HandsFreeConversationController._event has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a786c0c9b062461ad808eb954716daae8c2e0f9ee6c6700e2f4a388e865e74"}},{"ruleId":"D1","level":"warning","message":{"text":"BackgroundReport.fromMessage (cyclomatic 34): BackgroundReport.fromMessage has cyclomatic complexity 34 (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":"lib/core/models/background_report.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9032ec7a47660dc3b8c0db2475145ebfb4ad8c475ed25f430da2cff876163cd"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiClient.respondToRunApproval (cyclomatic 33): ApiClient.respondToRunApproval 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ca22adef57e1b5ba81f0baad026d7d1c2de025439566acc152be18dd1ef44f"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnRecoveryState.rehydrate (cyclomatic 33): GatewayTurnRecoveryState.rehydrate has cyclomatic complexity 33 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_recovery.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18dc1d1aa57f56b69c3955cb5eab2bea6a90bd096e378b4c4b423e2a639c32d"}},{"ruleId":"D1","level":"warning","message":{"text":"WsClient.parseGatewayEvent (cyclomatic 33): WsClient.parseGatewayEvent has cyclomatic complexity 33 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ws_client.dart"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"36694796af7fd2176c46cd5d590b29b56573091e7cb651dc1b9eca3f5e56eac5"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._handleDesktopGatewayEvent (cyclomatic 32): _ChatScreenState._handleDesktopGatewayEvent 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5451}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd19c7c8a8a863bc8c2132cf0a25884f1687c794f0d8bf2ee6f5fac215561dec"}},{"ruleId":"D1","level":"warning","message":{"text":"_AddDialogState.build (cyclomatic 31): _AddDialogState.build 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":"lib/main.dart"},"region":{"startLine":3007}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4be9c3ddc316e830fe1608613e31b01b405b10bd46c3c455823515ba2a2ff7"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState.build (cyclomatic 31): _ChatScreenState.build 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6806}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd17f80207f649bda34c150b485fb5280097a6a8cafb25c4f91d74fc1f83b14"}},{"ruleId":"D1","level":"warning","message":{"text":"_AssetsScreenState._scan (cyclomatic 30): _AssetsScreenState._scan has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/assets_screen.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5670c2d43afdab7ba6128768795a644366413cb58c3013532a12002362ed65a"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnJournalEntry._fromJson (cyclomatic 30): GatewayTurnJournalEntry._fromJson has cyclomatic complexity 30 (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":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"3163575f68eb147dbdfd1655bc0d144fbd6ce488518d6c402a879772cd4c7a48"}},{"ruleId":"D1","level":"warning","message":{"text":"_ProviderUsageScreenState.build (cyclomatic 29): _ProviderUsageScreenState.build has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_usage_screen.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9bfa0dacc895bb780be974f16ed3eb85c406a45a07d4a06f653d4062704385"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayPersistedTurn.fromWire (cyclomatic 28): NormalGatewayPersistedTurn.fromWire has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/normal_gateway_persisted_turn.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c391a761eaed8fe860265a0b484faf0b31a648a3b6d61075b1a5d66b69969d08"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble._buildBubble (cyclomatic 28): MessageBubble._buildBubble 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8910}}}],"partialFingerprints":{"codehealthFindingId/v1":"02358d16271a8cae59e15f613af4c94c7adc566cccbbe23f43b81a9a66def63a"}},{"ruleId":"D1","level":"warning","message":{"text":"_OfficePackage.walk (cyclomatic 28): _OfficePackage.walk 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":"lib/core/services/attachment_document_service.dart"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"114a28b066daebeb1dd150f4d640d802aaab17814939561ad8c9d2f0dfa1a166"}},{"ruleId":"D1","level":"warning","message":{"text":"MobilePushService._enable (cyclomatic 28): MobilePushService._enable 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":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f500387f0d086a8743fa9bfc118619d5ba89cc62b5439d8551eb3e0ff36cba"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._refreshDeferredHistoryIfIdle (cyclomatic 27): _ChatScreenState._refreshDeferredHistoryIfIdle has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3343}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc674ee7d360116855c3b652ca20cade0ebab164b6aa57e5199d8b4b0b7934f6"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._showModelSelector (cyclomatic 27): _ChatScreenState._showModelSelector has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4142}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fe694066d9f412f1dbea7338bfe171fc7fc304e2a2d09494db00243405108e"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._stopResponse (cyclomatic 27): _ChatScreenState._stopResponse has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e52abf704a5717a2f3258a523e7e89f2a0bcd2e2f817d08f02193c5a477542d"}},{"ruleId":"D1","level":"warning","message":{"text":"_ModelManagementScreenState._buildBody (cyclomatic 27): _ModelManagementScreenState._buildBody has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b0417444a51c5bc18ec538d9937460f2f4cbb8c080ed5a48478e1ed3979fc6"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayChatOwner._recordActivity (cyclomatic 27): NormalGatewayChatOwner._recordActivity has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aaad54dd5e18e0425d15e1da84445f1ecfaca1efe96d4115b0cb5ba606735f7"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectsRepository._reconcileSnapshot (cyclomatic 27): ProjectsRepository._reconcileSnapshot has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/projects_repository.dart"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef81148140e298e99f0f1f941dd5cbc404b3a55778925c0c0a96824440f6b65d"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._canStartHandsFree (cyclomatic 26): _ChatScreenState._canStartHandsFree has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2272}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfff3f9e87dea17a783a4e32348f3e20d961923880fd5dae694e7194d24d1ed"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._dispatchSlashCommand (cyclomatic 26): _ChatScreenState._dispatchSlashCommand 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4569}}}],"partialFingerprints":{"codehealthFindingId/v1":"e622ddb2e4379d47984dbb42b77c43ff79f68aeb525d81fecfc7a44ce1bcd074"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._showGatewayApproval (cyclomatic 26): _ChatScreenState._showGatewayApproval has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6071}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb631e63fb4a1b6df10dd8f5a2701bb7fc87f2d881fc17b6805635374d50dafb"}},{"ruleId":"D1","level":"warning","message":{"text":"_CronScreenState._showEditJobDialog (cyclomatic 26): _CronScreenState._showEditJobDialog 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":"lib/core/screens/cron_screen.dart"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"7521d36bf7eafae8f4336881b009fd41562039fb64633b37ee14d490cc8412ba"}},{"ruleId":"D1","level":"warning","message":{"text":"AppReleaseApk.parse (cyclomatic 26): AppReleaseApk.parse has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/app_update_service.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff34b2354a29b244773124bfe4d3a87d852274f29e9b871edd405cee904628cc"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardClient.getArchivedSessions (cyclomatic 26): DashboardClient.getArchivedSessions 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":3123}}}],"partialFingerprints":{"codehealthFindingId/v1":"569dcbbe74f4173d33ae409ba4438822bde794136b4e4ac1bb1eacdcfb2f7991"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyBackgroundMessage._isDelegationResult (cyclomatic 25): LegacyBackgroundMessage._isDelegationResult 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":"lib/core/models/legacy_background_message.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"010346955c5e566e0ff47258db9d641c8c7f614f7a0a409a79296d6ec02bf0d6"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._extractToolMessages (cyclomatic 25): _ChatScreenState._extractToolMessages 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3617}}}],"partialFingerprints":{"codehealthFindingId/v1":"8267a8224d50eacee7bda97e508a47e492b4dc8255c84a209ce195805769d3cb"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionManager.resetConnections (cyclomatic 25): ConnectionManager.resetConnections 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af9ec243039f19a4a7de356acd2dde859306acefad152f0812b1e33318d28eb"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnCoordinator._reconcile (cyclomatic 25): GatewayTurnCoordinator._reconcile has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df8dbddc199ad5b34b9e169fbd3687b807f4251aaf880204c3ee8ccde9a17bc"}},{"ruleId":"D1","level":"warning","message":{"text":"_WorkspaceScreenState._loadWorkspaceSessionsData (cyclomatic 24): _WorkspaceScreenState._loadWorkspaceSessionsData has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb13b77217bd566d9bff50c9637e990fa85d531280dd4d98e1980d189f001592"}},{"ruleId":"D1","level":"warning","message":{"text":"_WorkspaceScreenState._moveChatToProject (cyclomatic 24): _WorkspaceScreenState._moveChatToProject 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":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda66a945eec0ffdc33992486e75da5327f0c4944b1d695a5174f55976b2c4a4"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopGatewayClient._handleServerRequest (cyclomatic 24): DesktopGatewayClient._handleServerRequest has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74d4809a0566ab023af00fc2feeb9df9ebbc005cec871ec8daa175d5a808da1"}},{"ruleId":"D1","level":"warning","message":{"text":"_DelegatedTaskTimelineState.build (cyclomatic 24): _DelegatedTaskTimelineState.build has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/delegated_task_timeline.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee35b8bc8fd152ee05fd0c3380f5202c8ea213a6fd3a76954de323dd15be102"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyLcmSummary.splitEnvelope (cyclomatic 23): LegacyLcmSummary.splitEnvelope 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":"lib/core/models/legacy_lcm_summary.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f874b0284b5cf5f18999d20ed6031d79d98a1262b1b87b6a1c8702b5a07b328"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._fetchMessages (cyclomatic 23): _ChatScreenState._fetchMessages 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a5b9b9c884b82edc48da8af9af349014ae0d3b04636a67b79c63e2d098515f"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._drainSensitivePromptQueue (cyclomatic 23): _ChatScreenState._drainSensitivePromptQueue has cyclomatic complexity 23 (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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78c5fbaacbe37543bbd64ed1754f5999036aea56012e70163bcc8655470bd8c"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._buildDisplayItem (cyclomatic 23): _ChatScreenState._buildDisplayItem 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":7892}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c05017ed1be6331405f98edeb4bd5886df2d9870dacaed321e0c2079db361f7"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSessionsScreenState._loadOnce (cyclomatic 23): WorkspaceSessionsScreenState._loadOnce 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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe67a89f7e6e4236a5bcb585da9c6b1da61d9219953c63b7c06ee18f3e99b826"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentDraftService._detectImageFormat (cyclomatic 23): AttachmentDraftService._detectImageFormat has cyclomatic complexity 23 (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":"lib/core/services/attachment_draft_service.dart"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6b300dc62268ee80e5cf549c89b2df9cdddc7c58b7d67531e4b43368f68701"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiClient.getSessionById (cyclomatic 23): ApiClient.getSessionById 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc65c1cfaf53737f296d4f743233090c7f2fe3a0dec82a7df78c23453f14b584"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopGatewayClient._rememberBinding (cyclomatic 23): DesktopGatewayClient._rememberBinding 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":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dbf13cb34319e2ee6914572aaf1264b26cbc846c79581db29b638e6284a20f"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnJournalEntry.GatewayTurnJournalEntry (cyclomatic 23): GatewayTurnJournalEntry.GatewayTurnJournalEntry has cyclomatic complexity 23 (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":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ddd7ecb932b6ae46c1e0be2d2043de57830ad50002dc8e702477a96dbd4d0d"}},{"ruleId":"D1","level":"warning","message":{"text":"FlutterVoiceReplySpeaker.speak (cyclomatic 23): FlutterVoiceReplySpeaker.speak 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":"lib/core/services/hands_free_speech.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b1fa16c25fcba8992f1a31a7616d49231c54a0c8d18a763860d8d3cb30b422"}},{"ruleId":"D1","level":"warning","message":{"text":"Profile.policy (cyclomatic 23): Profile.policy 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":"server/mobile-push/mobile_push/config.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1fb5d520b51f94158e5ac3ff8357367adae046af3462b097ad666aaf04d49d"}},{"ruleId":"D1","level":"warning","message":{"text":"transport.validate_endpoint (cyclomatic 23): transport.validate_endpoint 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":"server/mobile-push/mobile_push/transport.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fbfee4143a42e333eb2da73ff1a5a572661eb55329056d5b65d95983f588f0"}},{"ruleId":"D1","level":"warning","message":{"text":"DelegatedTaskController._performRead (cyclomatic 22): DelegatedTaskController._performRead 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":"lib/core/controllers/delegated_task_controller.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2f72df9463f93e170cf8734ab1af35274720dc12c3c706f00213af34e899a5"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyLcmSummary.matches (cyclomatic 22): LegacyLcmSummary.matches 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":"lib/core/models/legacy_lcm_summary.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"561462842f3fb6016a69559e82a63335dc77224746f65b6366a14649266aadc7"}},{"ruleId":"D1","level":"warning","message":{"text":"_ModelManagementScreenState._applyModel (cyclomatic 22): _ModelManagementScreenState._applyModel 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":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ba321059adf0f180df7f0443a2a0c37973411c15fc744f9113c20ddc2c09bf"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardClient._requireRawFallbackConfig (cyclomatic 22): DashboardClient._requireRawFallbackConfig 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3d14aa7cdcdee31b9f4b415d0f99210e96d57b0de599fd45b95bf42f01eb0f"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnRecoveryState.applyEvent (cyclomatic 22): GatewayTurnRecoveryState.applyEvent has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_recovery.dart"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edbd28069d8ff3edfbe8a0b52f4f920a6510f8758c82dde297183235c51da64"}},{"ruleId":"D1","level":"warning","message":{"text":"VoicePlatformEvent.parse (cyclomatic 22): VoicePlatformEvent.parse has cyclomatic complexity 22 (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":"lib/core/services/hands_free_voice_platform.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e484370160615b8c378fc566e86a03ede6d584ee8e1f78bd8bfb9ed84e3e35"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatReceivedRecoveryProjection.build (cyclomatic 22): ChatReceivedRecoveryProjection.build 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":"lib/core/utils/chat_received_recovery_projection.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33e17a429994a4bee2ae1ad6f06e6532fc284f7ad652dd854fb3e75fa13fea7"}},{"ruleId":"D1","level":"warning","message":{"text":"_AuxiliaryModelsState._load (cyclomatic 22): _AuxiliaryModelsState._load 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":"lib/core/widgets/auxiliary_models.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98a935547fb4dfad03d40a5d870a1d9361010e4e97816148aa6c21a53616f43"}},{"ruleId":"D1","level":"warning","message":{"text":"_FallbackModelsState.build (cyclomatic 22): _FallbackModelsState.build 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":"lib/core/widgets/fallback_models.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8ed6e1824f9d044f7619071dfc48e07ce663f62ef9e6dc145f00c841c8244a"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceRecordingControls.build (cyclomatic 22): VoiceRecordingControls.build 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":"lib/core/widgets/voice_recording_controls.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b6ec1e6e09f4fd2e577857d6fac3b716a03b8cca39f44f43afe0ef98c89a92"}},{"ruleId":"D1","level":"warning","message":{"text":"HandsFreeConversationController._start (cyclomatic 21): HandsFreeConversationController._start has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f243e6cba6e19e2f5f5c5c53c5c862a8cb0cde6e5641b31f4b6904e7994f0b"}},{"ruleId":"D1","level":"warning","message":{"text":"HandsFreeConversationController._submit (cyclomatic 21): HandsFreeConversationController._submit 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":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae2f24a7ff46b69973613b3c6903db5fbae1cb7d95dbcea829466688a72e235"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState.initState (cyclomatic 21): _ChatScreenState.initState 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50f540899433e7633bfb9b0c8cad5785b2e2cb1fcafd5bd8aca0f6e455684bf"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._drainClarifyPromptQueue (cyclomatic 21): _ChatScreenState._drainClarifyPromptQueue has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9331b55a604aff065f4b7c940d32f7b528ccf8c1f6a604f1b8e9bd48ef869258"}},{"ruleId":"D1","level":"warning","message":{"text":"_ModelManagementScreenState._parseModelOptions (cyclomatic 21): _ModelManagementScreenState._parseModelOptions has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e18a9f724bc4081865dee61effbabfb8e5d0f261508478f46a52b7004f9efaa"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardTaskHistory._isCompressionEdge (cyclomatic 21): DashboardTaskHistory._isCompressionEdge has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/delegated_task_history.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb3c7f3396b073429a86efbcd7bf7afb53b543685bdd1bf5ef0b7c68ae24eb6"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnCoordinator.stageAttachment (cyclomatic 21): GatewayTurnCoordinator.stageAttachment 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":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50d8494c12c9e6b7eddd8e47e776b2b79f49eff52dc5bab9a78e371efc13730"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnCoordinator.interrupt (cyclomatic 21): GatewayTurnCoordinator.interrupt has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6fc6790b5304004438a5fcda1dd722c10f0b832df7163146ad5db686298657"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnJournal._readData (cyclomatic 21): GatewayTurnJournal._readData has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aac0e956420ead10cc74ae64c49c3e456f1e166a0313cacd7c0c586d1438535"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayTurnRecoveryState.applyReconcilePage (cyclomatic 21): GatewayTurnRecoveryState.applyReconcilePage 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":"lib/core/services/gateway_turn_recovery.dart"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"255fe5df27ed7108fb2ce5e3a704479bbb2c7edbc63cb9b243c502123c15c232"}},{"ruleId":"D1","level":"warning","message":{"text":"WsClient._handleMessage (cyclomatic 21): WsClient._handleMessage has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ws_client.dart"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"7184ea0ba4743149bf1c3a8562d21159829f971180a623bb6e1543b49ce1113a"}},{"ruleId":"D1","level":"warning","message":{"text":"WsClient.submitPrompt (cyclomatic 21): WsClient.submitPrompt has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ws_client.dart"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"5594ef6e6ec53d16daf6f15e0a0745620b1b3e3f7d21bce75307ec12f55ca9a1"}},{"ruleId":"D1","level":"warning","message":{"text":"_FallbackModelsState._row (cyclomatic 21): _FallbackModelsState._row has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/fallback_models.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4b3064cfb5f6b508d3ec3763fd8dffea2d04ae7caca192b5349ef10323f125"}},{"ruleId":"D1","level":"warning","message":{"text":"MobilePushPolicy.valid (cyclomatic 21): MobilePushPolicy.valid has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushPolicy.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e4882e0e1e9a6dba7dc0a1bc26ebf9701afdd29b4ac54a5fd1d9b34bb2f7ca"}},{"ruleId":"D1","level":"warning","message":{"text":"HermesAppState._handleNotificationResponse (cyclomatic 20): HermesAppState._handleNotificationResponse has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c8cd4c241964307a76cc7365cbc4588f2f0deaa3ca4a58e03d301c35fb02a0"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._startVoiceInput (cyclomatic 20): _ChatScreenState._startVoiceInput has cyclomatic complexity 20 (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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff749821b37fed7c4f1a535f57f6131e5ab46d71ad2399dcb9674432b649cd1"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._loadOlderMessages (cyclomatic 20): _ChatScreenState._loadOlderMessages has cyclomatic complexity 20 (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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3271}}}],"partialFingerprints":{"codehealthFindingId/v1":"997e992059794e310883d9b3ddf53b330617508a8643580daa637a07e4b88ccd"}},{"ruleId":"D1","level":"warning","message":{"text":"_CronScreenState._buildBody (cyclomatic 20): _CronScreenState._buildBody has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/cron_screen.dart"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1d14a490b8b30f0d8c16e52645a784d05ac7fa6804cf5c59d9904878cc856a"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._runServerSearch (cyclomatic 20): _SessionListScreenState._runServerSearch 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":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea47503d590faed2c4b8114b6696d297315a3f3a78a9472988e443461b281c0"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientCertificateService.importIdentityDocument (cyclomatic 20): ClientCertificateService.importIdentityDocument has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/client_certificate_service.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb76fbb59b562d88205f2fe83e2dda24e9afdf1ff5704905eea13e436fe503e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionManager.updateConnection (cyclomatic 20): ConnectionManager.updateConnection has cyclomatic complexity 20 (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":"lib/core/services/connection_manager.dart"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"b611e87b9f60261d0e0ba9871886e8940ed3fc202d4f255e8fb5b27c403ff42e"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopGatewayClient.respondToClarify (cyclomatic 20): DesktopGatewayClient.respondToClarify 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":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc52f93c45a3d8e4bb67b1e20747dff325402a688946d1e1924b5a953933b54"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayProbe.probe (cyclomatic 20): GatewayProbe.probe 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":"lib/core/services/hermes_sign_in.dart"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6b15d0a3ece5b5cd429ca4ff1448f1b59398ba6adaec0a5cf75b329d36858d"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayApplicationSession._coalesce (cyclomatic 20): NormalGatewayApplicationSession._coalesce 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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb3aa3804b98a66ff0ece5c95c0005cf3633e91d7e8e5024e0c0dbcfe60cb31"}},{"ruleId":"D1","level":"warning","message":{"text":"_CronModelPickerState.build (cyclomatic 20): _CronModelPickerState.build 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":"lib/core/widgets/cron_model_picker.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edbd48c6461b6f596457f155dda67df88f754e8c3f2749e071c24396f04c8ef"}},{"ruleId":"D1","level":"warning","message":{"text":"_FallbackModelsState._loadOptions (cyclomatic 20): _FallbackModelsState._loadOptions 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":"lib/core/widgets/fallback_models.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbb014e73cfbe1ea53db6183d9baf10840ca1774734649543198a675c5f6725"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewaySubagentCard.build (cyclomatic 20): GatewaySubagentCard.build 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":"lib/core/widgets/gateway_insight_card.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd4b11ee156222d43a07ab5b14773ec615fc46682a3d24ac4017933f59bcb0a"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenState._showDashboardAuthDialog (cyclomatic 19): HomeScreenState._showDashboardAuthDialog 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":"lib/main.dart"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00bd57400cffea65be179c8f909ceb74ccf5fcf09bb3e25f9e41e03bea17863"}},{"ruleId":"D1","level":"warning","message":{"text":"BackgroundReport._isPreservedTaskList (cyclomatic 19): BackgroundReport._isPreservedTaskList has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/background_report.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aefc02e57f6eb02b5c2384b837c275615a892cf40c07e9ba67efcc232d455f6"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._readAssistantText (cyclomatic 19): _ChatScreenState._readAssistantText 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c97020c98650eecb8979f3e035c0ae8c53f2503872a6d571e3826a369eacef5"}},{"ruleId":"D1","level":"warning","message":{"text":"_ProviderOAuthScreenState.build (cyclomatic 19): _ProviderOAuthScreenState.build 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":"lib/core/screens/provider_oauth_screen.dart"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"73987bd9213d0a8bd60ee52d3593c8ecda51d52dacd6394f959cdabd9be76419"}},{"ruleId":"D1","level":"warning","message":{"text":"_WorkspaceScreenState._startSharedChat (cyclomatic 19): _WorkspaceScreenState._startSharedChat 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":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"3095bf33906539bc58a1de91c9960e7111695fe9e282017419825432a7c11844"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSessionsScreenState._setArchived (cyclomatic 19): WorkspaceSessionsScreenState._setArchived 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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"5703b3676d83c524de8cb9bc9a02307d8b3e494dcefb351cf76e5765992a4aa5"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentController.save (cyclomatic 19): AttachmentController.save 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":"lib/core/services/attachment_controller.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe301bcd4c8e2722f367a34b1a71ec288b644752e77b111867cf52ee9c2035c4"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiClient.setSessionArchived (cyclomatic 19): ApiClient.setSessionArchived 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2a93141f7cb01d2a840d18d6164aa64e02423acb5920a164be4784134292c3"}},{"ruleId":"D1","level":"warning","message":{"text":"LanDiscoveryService.candidateHosts (cyclomatic 19): LanDiscoveryService.candidateHosts 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":"lib/core/services/lan_discovery_service.dart"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"577d1ffb385a710d33cea66f0f3241721c456b973e6f0ee58e0841c1721be58f"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalVoiceRecorder._recoverContinuation (cyclomatic 19): LocalVoiceRecorder._recoverContinuation 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":"lib/core/services/local_voice_recorder.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03951ecdd2d0670116aa0fdafb69abac8e4bfe891dda732e21c742c286337a3"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayChatOwner._boundSettledPresentation (cyclomatic 19): NormalGatewayChatOwner._boundSettledPresentation has cyclomatic complexity 19 (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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ba18c500170f4f8a3de78fae7ba107e9a04aefd3fa6b8919d4e5caf27fcd8a"}},{"ruleId":"D1","level":"warning","message":{"text":"HermesAppState._onMobilePushChanged (cyclomatic 18): HermesAppState._onMobilePushChanged has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"4729d2047f01b8d9e16a073bde4717e3ab0f75abd3be3a915e149026d397ed58"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._queuePersistedHistoryContext (cyclomatic 18): _ChatScreenState._queuePersistedHistoryContext has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"2315abd996d12da7c8f390bb2791114652f7da0c206069ee6624e437bfeb5b48"}},{"ruleId":"D1","level":"warning","message":{"text":"_WorkspaceScreenState._loadOperationalActivity (cyclomatic 18): _WorkspaceScreenState._loadOperationalActivity has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb93b3366e6fcdfee47ae743b7c9ab51c3944ec48e2a5c38aee37897bd8a72d"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSessionsScreenState._applyData (cyclomatic 18): WorkspaceSessionsScreenState._applyData has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e872f225f73440acceb482424e9e09c80f42589a72a1aafbb1d0030f478e3d"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSessionsScreenState._rename (cyclomatic 18): WorkspaceSessionsScreenState._rename has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a39b362811fde2d61711ddd665e30b89a59e235fd6ce4b39fbaf1073b76c4f"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionManager.saveSingleLoginConnection (cyclomatic 18): ConnectionManager.saveSingleLoginConnection 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"80030603ee56893fd2a1225abda09512360b09688a89383ab0bddc34903d3700"}},{"ruleId":"D1","level":"warning","message":{"text":"MobilePushService._current (cyclomatic 18): MobilePushService._current has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"869dcb74b7416593b8decf2991a19413e41c6b048b37d08c6ec557c48888075a"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayChatOwner._reconcilePersistedTurns (cyclomatic 18): NormalGatewayChatOwner._reconcilePersistedTurns has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"744d50c680f205ffdc4649a6c98b966b013d1889f9c2f2acdfabcd1292078595"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectsRepository._create (cyclomatic 18): ProjectsRepository._create has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/projects_repository.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"902fa1a8ccbc89fbc99451cf460673addd6fd23df6d4def68bdd037905b4a779"}},{"ruleId":"D1","level":"warning","message":{"text":"_GatewayClarifyDialogState.build (cyclomatic 18): _GatewayClarifyDialogState.build has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/gateway_clarify_dialog.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd8e08eaeef085d5ec209b614ca331caecb0722fdb9a2838099929d9793ed5c"}},{"ruleId":"D1","level":"warning","message":{"text":"Runtime.deliver_one (cyclomatic 18): Runtime.deliver_one 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":"server/mobile-push/mobile_push/service.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b569f68d0b6e869b8be15536062ce7ac3979617336676e57910cd71ba3040ce5"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.events (cyclomatic 18): Store.events has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/mobile_push/store.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4de34c861fc9c56d2d4d2e0ec8725ba4f7cbc900b182d89e19db1d32828e979"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayApprovalRequest.fromEventData (cyclomatic 17): GatewayApprovalRequest.fromEventData has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_approval.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7091e59b7659dc7ab7f966059764f6d5ba474cdff90c6150b24bd617bb9a9a"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewaySessionBinding.fromWire (cyclomatic 17): GatewaySessionBinding.fromWire 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":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"4605b01e57b7561b94fcf0fef96220c8d30e36df10aacbe9454087cb7cf04bbf"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._sendWhileWorking (cyclomatic 17): _ChatScreenState._sendWhileWorking has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4705}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45661453d5721b6ebc565136273b3823785cbd10adc635f0f89a374177807dc"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._handleDesktopAsyncEvent (cyclomatic 17): _ChatScreenState._handleDesktopAsyncEvent has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5672}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cad61419bb878fd084cab51e7389f45087b136c086d7a3c1828b2cfba15ab90"}},{"ruleId":"D1","level":"warning","message":{"text":"_ProviderOAuthScreenState._poll (cyclomatic 17): _ProviderOAuthScreenState._poll has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_oauth_screen.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55c3e771fdc53d322ab9d3783250fc36e241536f813c0d41243039739cdb0bc"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentDraftService.prepareImage (cyclomatic 17): AttachmentDraftService.prepareImage has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_draft_service.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"78afd31636059896c2bd87915d963c4d0a1cc85d068683ba67f793ecc2bf3997"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionKeepAliveService.start (cyclomatic 17): ConnectionKeepAliveService.start has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_keepalive_service.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"24288ef2c047823229d83c1ea121fa1b4ff2d9fac7523108365ce04f1fe3705c"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayChatOwner._completionAssistantMessage (cyclomatic 17): NormalGatewayChatOwner._completionAssistantMessage has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bdac0a19ae2560470ab662ca3a177c434a5bd88fedd45b7c8c08d6376684be"}},{"ruleId":"D1","level":"warning","message":{"text":"ActivityPaneState.build (cyclomatic 17): ActivityPaneState.build has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f00a56ddb86ca1d55f5979e091bdfedae3788d912095356ddfb2759efaa11ba"}},{"ruleId":"D1","level":"warning","message":{"text":"_AttachmentVideoPreviewState.build (cyclomatic 17): _AttachmentVideoPreviewState.build has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/attachment_video_preview.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55b60d88796ef82066cf35ac0378d4d41ca24db2f7ca8e78e3ffb272a08659d"}},{"ruleId":"D1","level":"warning","message":{"text":"_AddDialogState._pickCertificateIdentityOwned (cyclomatic 16): _AddDialogState._pickCertificateIdentityOwned 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":"lib/main.dart"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"0652483a60c22bc84d63cad1aef98b40b494967c439e83b8144719a20564c8ac"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyBackgroundMessage._isDelegationFailure (cyclomatic 16): LegacyBackgroundMessage._isDelegationFailure has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/legacy_background_message.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"3499c8ed97b1f36d3ab6402c0e4d08d690da1891f5e4b73e2e1b1463e9fe0ed9"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._completionAssistantMessage (cyclomatic 16): _ChatScreenState._completionAssistantMessage 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5605}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbf9d88edc777228497b16f4312b381e154d90bb22cb465b3306ffabdbfe719"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._stopRecoverableGatewayResponse (cyclomatic 16): _ChatScreenState._stopRecoverableGatewayResponse 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6510}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad93fbbb68e88151dd1b0ef4e2561d936e003e87f42f4ff54528057aa48b918"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageBubble._renderContent (cyclomatic 16): MessageBubble._renderContent 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8588}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f804f7a791752dc65a651794379bca7e2a5baec4bf0a78303afe63f3cf0c698"}},{"ruleId":"D1","level":"warning","message":{"text":"_SessionListScreenState._loadMoreSessions (cyclomatic 16): _SessionListScreenState._loadMoreSessions 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":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4400fc1e8df12d0bff948f1fc70ca4d0843220432aacfd0def723bfd57fbd7dd"}},{"ruleId":"D1","level":"warning","message":{"text":"_WorkspaceScreenState._refreshActivitySessions (cyclomatic 16): _WorkspaceScreenState._refreshActivitySessions has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: _WorkspaceScreenState._openMoreEntry (cyclomatic 17) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6019d5e0e5697cb60c2826f789151601a3eac89139149565793a6d89b624fd6"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceSessionsScreenState._promote (cyclomatic 16): WorkspaceSessionsScreenState._promote 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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd089a14d0d408e36841fcbef13279a511a3049afd41010fd63e064afe06382"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigBackupService.import (cyclomatic 16): ConfigBackupService.import 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":"lib/core/services/config_backup_service.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa40c465d9f8b3e261bac135a1450582ee87431fda6ae5482120efe1d479c2c"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayChatClient.buildChatCompletionMessages (cyclomatic 16): GatewayChatClient.buildChatCompletionMessages 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"881b91350e9584aa22f2383f19a39d90737774c60081676b3b276398fb72c60a"}},{"ruleId":"D1","level":"warning","message":{"text":"HermesSignInVault.sessionForRequest (cyclomatic 16): HermesSignInVault.sessionForRequest 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":"lib/core/services/hermes_sign_in.dart"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a51e1bbac6b567211e0b781a0d871676de10118e89ff976e161c5b12b3b377"}},{"ruleId":"D1","level":"warning","message":{"text":"MobilePushService.checkAvailability (cyclomatic 16): MobilePushService.checkAvailability 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":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bf42b22bae629484a115dbf0d3e0700f1afe52c88b732e8eb9bb3ac9a81233"}},{"ruleId":"D1","level":"warning","message":{"text":"MobilePushService._events (cyclomatic 16): MobilePushService._events 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":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fb7b3f3924fb8c96c60fff9351e309406e6a3b87c45028467d259bfc040695"}},{"ruleId":"D1","level":"warning","message":{"text":"NormalGatewayPendingMarker.parse (cyclomatic 16): NormalGatewayPendingMarker.parse 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":"lib/core/services/normal_gateway_pending_store.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8094d7354d0bfce220cb0b15367080bb8acf6756edc5d0c17c8e2fb81fec7c14"}},{"ruleId":"D1","level":"warning","message":{"text":"DashboardProjectFolderDiscovery.scan (cyclomatic 16): DashboardProjectFolderDiscovery.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":"lib/core/services/project_folder_discovery.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dd9cb60d1f1e13b712699063563439a72f7d5b4f3632b861e2ad1f036fa282"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectsRepository.refresh (cyclomatic 16): ProjectsRepository.refresh 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":"lib/core/services/projects_repository.dart"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"db651d62d262d8d11ba4b9f12558438ee6d34281f5ad8d483f9399e1f9bd79d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectsRepository.overview (cyclomatic 16): ProjectsRepository.overview 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":"lib/core/services/projects_repository.dart"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32d4f0c5c6ffb4d375f8e46890819d7acead4247b8d4c82fade10961cdc8ab4"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteFilesClient._downloadUrl (cyclomatic 16): RemoteFilesClient._downloadUrl 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":"lib/core/services/remote_files_client.dart"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc35c1e0dd26e9a65be8c1e9f8d8b0caeafe818f76322f771b5204d125dab50e"}},{"ruleId":"D1","level":"warning","message":{"text":"_AuxiliaryTaskState.build (cyclomatic 16): _AuxiliaryTaskState.build 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":"lib/core/widgets/auxiliary_models.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf5e6387b124403cbe37b3ae1c60c47adfe4c64613f379132e6e99065b3c8c9"}},{"ruleId":"D1","level":"warning","message":{"text":"_UpdateAvailableDialogState.build (cyclomatic 16): _UpdateAvailableDialogState.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/update_available_dialog.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"90befbfc83099d98350c12b166944301d6716c68c5c0dff5f818ef1090dccdf6"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner._event (cognitive 173): NormalGatewayChatOwner._event has cognitive complexity 173 (threshold 15). Drivers by points: if/else 53 (95 pts), boolean chains 60, ternaries 6 (15 pts), loops 2 (3 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1689cb66beaf3df2df331856c33e0b9756ff50eb6d7611126546aa7577aefc"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushService._refresh (cognitive 115): MobilePushService._refresh has cognitive complexity 115 (threshold 15). Drivers by points: if/else 33 (83 pts), boolean chains 19, error handling 2 (5 pts), loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 57). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4dc21c457fad1da3eb89ff0c8a960c6a741f5ad8dd212fd97c9ce3f14654e9"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner._settle (cognitive 111): NormalGatewayChatOwner._settle has cognitive complexity 111 (threshold 15). Drivers by points: if/else 24 (55 pts), ternaries 9 (25 pts), boolean chains 23, loops 3 (7 pts), error handling 1 (nesting depth added 51). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec679d1fae232f56fff41d44e3d0890698356e81468433e23f94f3fe563482e8"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._submitMessage (cognitive 104): _ChatScreenState._submitMessage has cognitive complexity 104 (threshold 15). Drivers by points: if/else 32 (73 pts), boolean chains 20, ternaries 4 (7 pts), error handling 2 (4 pts) (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4781}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8c525b34a6c408acc5c81cdea7180994d96e266993249a89afb96549847e85"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._buildBody (cognitive 97): _SessionListScreenState._buildBody has cognitive complexity 97 (threshold 15). Drivers by points: ternaries 29 (47 pts), if/else 17 (25 pts), boolean chains 24, loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"96879c1082eaf2d1fcf3ea6f1c1f24e9e291bd4b7880238236d29597e7b8b3c6"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesAppState._runNotificationNavigation (cognitive 91): HermesAppState._runNotificationNavigation has cognitive complexity 91 (threshold 15). Drivers by points: if/else 24 (52 pts), boolean chains 24, ternaries 3 (12 pts), error handling 1 (3 pts) (nesting depth added 39). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"35be263039566aa9038eae066dccc5672124449af906c9b48ca4abf819df125f"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._applyNormalSnapshot (cognitive 87): _ChatScreenState._applyNormalSnapshot has cognitive complexity 87 (threshold 15). Drivers by points: if/else 29 (48 pts), boolean chains 28, loops 8 (9 pts), ternaries 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c886bce756bfb8d56007920517da77a47702972619d48fd89726e5c3a9a8a3"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner.submitPrepared (cognitive 87): NormalGatewayChatOwner.submitPrepared has cognitive complexity 87 (threshold 15). Drivers by points: if/else 28 (60 pts), boolean chains 14, ternaries 5 (10 pts), loops 1 (2 pts), error handling 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"485ef73aafdec31d631a836dfddd89fb768b0cd5f8b32a29e477eba3fbf59d34"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._buildInputBar (cognitive 86): _ChatScreenState._buildInputBar has cognitive complexity 86 (threshold 15). Drivers by points: boolean chains 52, if/else 17 (18 pts), ternaries 14 (16 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":7111}}}],"partialFingerprints":{"codehealthFindingId/v1":"140afaed317e1ac02e9697f2bd8ffdd9d59036c8c45e13f12b222f48bfc10ea4"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._sendDesktopGatewayMessage (cognitive 78): _ChatScreenState._sendDesktopGatewayMessage has cognitive complexity 78 (threshold 15). Drivers by points: if/else 24 (49 pts), boolean chains 15, ternaries 6 (13 pts), error handling 1 (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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5080}}}],"partialFingerprints":{"codehealthFindingId/v1":"c117a7946d59f734ed714c0ccae28bc5da2c2b362fbdd64dee3b30c41feb26ec"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayChatClient.sendMessageStreaming (cognitive 78): GatewayChatClient.sendMessageStreaming has cognitive complexity 78 (threshold 15). Drivers by points: if/else 29 (53 pts), boolean chains 10, error handling 3 (7 pts), ternaries 2 (6 pts), loops 1 (2 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0667b9f4dffd1c7b5d9647e9fb70940791cfe956c011588845c6a0ed52dcc08a"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner._recover (cognitive 74): NormalGatewayChatOwner._recover has cognitive complexity 74 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 31, ternaries 3 (8 pts), error handling 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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":2364}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8027fd16d7ae2381a37d947a0f92b30e4cc9b9c5d15177f5304896468e129d"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._sendRecoverableGatewayMessage (cognitive 71): _ChatScreenState._sendRecoverableGatewayMessage has cognitive complexity 71 (threshold 15). Drivers by points: if/else 19 (38 pts), boolean chains 13, ternaries 3 (8 pts), loops 3 (7 pts), error handling 3 (5 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5242}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efb2769fa37304ada2180a0a134827535ed42d2bd1c7fda221f34a5da835d6b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._sendMessage (cognitive 70): _ChatScreenState._sendMessage has cognitive complexity 70 (threshold 15). Drivers by points: if/else 28 (40 pts), boolean chains 27, error handling 2, ternaries 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4425}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e2c965b400b1d302d300ec2f3c7b7a5cde428f0c95c24ac4387cf6b63c67bc"}},{"ruleId":"D2","level":"warning","message":{"text":"_OfficePackage._index (cognitive 66): _OfficePackage._index has cognitive complexity 66 (threshold 15). Drivers by points: boolean chains 36, if/else 13 (23 pts), loops 4 (5 pts), ternaries 1 (2 pts) (nesting depth added 12). 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":"lib/core/services/attachment_document_service.dart"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e83bfad0923265b90b9446c9f45146310531f94c95bd4a66a9854717857b424"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSessionsScreenState._buildLoaded (cognitive 64): WorkspaceSessionsScreenState._buildLoaded has cognitive complexity 64 (threshold 15). Drivers by points: boolean chains 24, ternaries 16 (21 pts), if/else 7 (10 pts), loops 3 (9 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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"75163d34d678c0a0a479b03e127a155b47f3e95ed1bd32beb393869a8f36fbad"}},{"ruleId":"D2","level":"warning","message":{"text":"_AssetsScreenState._scan (cognitive 62): _AssetsScreenState._scan has cognitive complexity 62 (threshold 15). Drivers by points: if/else 15 (41 pts), loops 3 (9 pts), boolean chains 6, error handling 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/assets_screen.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b15736270865e182dcad95b4ce3e81d86bbd655fe31fcc57bb7cc06e34d1a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"_AddDialogState._validateAndSaveOwned (cognitive 59): _AddDialogState._validateAndSaveOwned has cognitive complexity 59 (threshold 15). Drivers by points: if/else 13 (26 pts), ternaries 8 (17 pts), boolean chains 11, error handling 3 (5 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":"lib/main.dart"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbfa1ef9b2d8ed817075a2c694cabf959322e83b65e4e613b56288dd67da505"}},{"ruleId":"D2","level":"warning","message":{"text":"_OfficePackage.walk (cognitive 58): _OfficePackage.walk has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (47 pts), boolean chains 6, ternaries 1 (4 pts), loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_document_service.dart"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ed4b547d80d78a4a0b8925bcb3f2598847eb28e35c8f0f4c8eb0c6953d6b90"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardTaskHistory.fetch (cognitive 57): DashboardTaskHistory.fetch has cognitive complexity 57 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 21, ternaries 3 (6 pts), loops 1 (2 pts), error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/delegated_task_history.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27847894a0786fde18a57784a1fb185fab04ccbcf7abd5993270bde6be6d40b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._buildBody (cognitive 55): _ChatScreenState._buildBody has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 11 (14 pts), boolean chains 12, loops 7 (11 pts) (nesting depth added 11). 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8063}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa3fc7efa9671b36800b1991d291a24b467b51416161bff19bb6f6161f0950e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ModelManagementScreenState._buildBody (cognitive 54): _ModelManagementScreenState._buildBody has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 13, ternaries 2 (8 pts) (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d2f36471a91dfbf0a102479257884d1b19671d7ace89201c455426684e84a9"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSessionsScreenState._buildSessionRow (cognitive 54): WorkspaceSessionsScreenState._buildSessionRow has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 19, ternaries 10 (17 pts), if/else 11 (16 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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d658204e4faae4b761c691c2588a9930edb946e41efea22463f1e645cee66df"}},{"ruleId":"D2","level":"warning","message":{"text":"_AddDialogState.build (cognitive 52): _AddDialogState.build has cognitive complexity 52 (threshold 15). Drivers by points: if/else 11 (24 pts), ternaries 11 (19 pts), boolean chains 9 (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":"lib/main.dart"},"region":{"startLine":3007}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d6ceb8711688921613f7088e71d3e5d3eb303226c15b6f46daf22717516049"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProviderUsageScreenState.build (cognitive 52): _ProviderUsageScreenState.build has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 6 (14 pts), boolean chains 6, loops 2 (4 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":"lib/core/screens/provider_usage_screen.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51417d83115f82b8e1710493019e1dbf3afab749bbb7dc96fabc42737f43ce2"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushBridge.command (cognitive 52): MobilePushBridge.command has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (30 pts), boolean chains 17, match/switch 2 (3 pts), loops 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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushBridge.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe14cd0cc695ca59356be77bd90ac4fe3772f3076a8455059f62a315e7d08fe"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnCoordinator.submit (cognitive 48): GatewayTurnCoordinator.submit has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (27 pts), error handling 6 (11 pts), boolean chains 10 (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":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"411b8760c7607de6d0b22a40df07b15de2cbf9fc6d3a1d289a49a9ea6a31be4c"}},{"ruleId":"D2","level":"warning","message":{"text":"_CronScreenState._showEditJobDialog (cognitive 47): _CronScreenState._showEditJobDialog has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 11, ternaries 3 (9 pts), error handling 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/cron_screen.dart"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b478381c6e96c857425bd98a962f2974fa0e1a703221237336129ad398f550"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionManager.resetConnections (cognitive 47): ConnectionManager.resetConnections has cognitive complexity 47 (threshold 15). Drivers by points: if/else 9 (21 pts), error handling 6 (13 pts), loops 4 (7 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f9cdfda2622d5f9c1193a8279c11b41e023b9ebd8b97929a15f6bce1c57676"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushService._enable (cognitive 47): MobilePushService._enable has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (36 pts), boolean chains 7, error handling 2 (4 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d27cc311e4536930ad9caa0fd0aef318d68863dbf0129c9594c895b84c13c31"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._dispatchSlashCommand (cognitive 45): _ChatScreenState._dispatchSlashCommand has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 7, error handling 4 (7 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4569}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da914e460d566a5feb6c5018797d365157708f721b50fd4c8bedc9d44192013"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._handleDesktopGatewayEvent (cognitive 45): _ChatScreenState._handleDesktopGatewayEvent has cognitive complexity 45 (threshold 15). Drivers by points: if/else 26 (40 pts), boolean chains 5 (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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5451}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b2cbafec7c8ab8c4747f1d41dce5eef7f3cdb99d83ad61a1f01857d46a8eff"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState.build (cognitive 45): _ChatScreenState.build has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (23 pts), ternaries 8 (13 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6806}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b65e089117dbbc789313a6554d56da92af7000020a4b6beb63c26628a6f0b87"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._showModelSelector (cognitive 44): _ChatScreenState._showModelSelector has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 6 (12 pts), boolean chains 7, error handling 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aef9b46c07d8c1a04c3e893168f08beaccda5017c1d9616fc19e1be92643dd2"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayChatClient._decodeSseFrame (cognitive 44): GatewayChatClient._decodeSseFrame has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 15, ternaries 4 (7 pts), error handling 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e1003c64909228c143ce3c0d7a8edec40a03ca09a9c0f1701ac3942a046958"}},{"ruleId":"D2","level":"warning","message":{"text":"HandsFreeConversationController._start (cognitive 43): HandsFreeConversationController._start has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (32 pts), ternaries 4 (8 pts), boolean chains 2, error handling 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f729f8a5ee19c1a7da5085da778b44be1bd233b9c89b98f8bc640bec6e7a3d42"}},{"ruleId":"D2","level":"warning","message":{"text":"WsClient._handleMessage (cognitive 43): WsClient._handleMessage has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (28 pts), ternaries 2 (8 pts), boolean chains 6, error handling 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ws_client.dart"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f579810bffa60ea0c77b34eef59c6cfb26399a113b6f0adf662febb66454a0f"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiClient.respondToRunApproval (cognitive 41): ApiClient.respondToRunApproval has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 17, ternaries 3 (6 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b26dfdd15785132547e9d48051b5335e0d04de54e44ce1524f064e7f239ed5"}},{"ruleId":"D2","level":"warning","message":{"text":"HandsFreeConversationController._event (cognitive 40): HandsFreeConversationController._event has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 15, 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":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d46f8d7e61ba3701df3efde26253fbc8697b57b72d5ee2559e68c85a4a969d"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnRecoveryCapability._fromRecoveryPayload (cognitive 40): GatewayTurnRecoveryCapability._fromRecoveryPayload has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 19, if/else 13 (14 pts), ternaries 6 (7 pts) (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":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb13d8c3467482a86d2064f492e67d3ba5bf98799c098dda9bc8e121effba36"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyBackgroundMessage._isDelegationResult (cognitive 40): LegacyBackgroundMessage._isDelegationResult has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/legacy_background_message.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a75ef1ffe6f473f36e554b2e9dca98ca096f5ba1960a0ebe0bbe1f0c380e274"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._applyGatewayTurnState (cognitive 40): _ChatScreenState._applyGatewayTurnState has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 11, ternaries 6 (10 pts), match/switch 1 (3 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3462}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfe69d3644f1618323dc893c006ce55a88ffe207c8a9dfa5bd89711bf31547f"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._stopResponse (cognitive 40): _ChatScreenState._stopResponse has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 6, ternaries 2 (5 pts), error handling 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4ab412ba71ac061d302a53c38e5261aeaa4c669243789fc59ac04a1375b8f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiClient.getSessionById (cognitive 40): ApiClient.getSessionById has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 7, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f4c4004f15a06a9f5d9940f93f6acc56dfc7ff4a6fa030961bd754735d2397"}},{"ruleId":"D2","level":"warning","message":{"text":"_MobilePushSettingsState.build (cognitive 40): _MobilePushSettingsState.build has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 15, ternaries 11 (13 pts), if/else 11, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/mobile_push_settings.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"284b627165d817bd6123c51a57314685916048216cdafc18d95a130e5af6c2d5"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnReconcilePage.fromWire (cognitive 39): GatewayTurnReconcilePage.fromWire has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 23, if/else 8 (10 pts), ternaries 3 (5 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"a351dd0b86b6f88245afbbce1d6e1dad80ef8fe30389d3431864cd965b5468c9"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardClient.getArchivedSessions (cognitive 39): DashboardClient.getArchivedSessions has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 11, loops 2 (3 pts), ternaries 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":3123}}}],"partialFingerprints":{"codehealthFindingId/v1":"476db914af384962563a6be4fb3dbae33bab05b454e54d4bfff93a372d6fbc26"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._extractToolMessages (cognitive 38): _ChatScreenState._extractToolMessages has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 5 (6 pts), boolean chains 5, ternaries 3 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3617}}}],"partialFingerprints":{"codehealthFindingId/v1":"34737629b7f8e508a128285848b258773ef0aa7ffaf854eea0e7700b69aa3a78"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopGatewayClient._handleServerRequest (cognitive 38): DesktopGatewayClient._handleServerRequest has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 6, loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa659f0cc2041c6b7d4f19218908dd0040c58af6c865ab24365a3734d8f1fc5c"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble._buildBubble (cognitive 37): MessageBubble._buildBubble has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 12 (17 pts), if/else 8 (12 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8910}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fa6f93f88bd87e73d7dcd80efdb69c57960fae449748a92441ff1ba03869ef"}},{"ruleId":"D2","level":"warning","message":{"text":"_WorkspaceScreenState._loadOperationalActivity (cognitive 37): _WorkspaceScreenState._loadOperationalActivity has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (26 pts), error handling 3 (5 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94b0e9981200df7dece5f91c5f3cbfc4146db8df76ffae3f32ee804305e680a"}},{"ruleId":"D2","level":"warning","message":{"text":"FlutterVoiceReplySpeaker.speak (cognitive 37): FlutterVoiceReplySpeaker.speak has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 6, loops 1 (2 pts), error handling 1, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/hands_free_speech.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9c7a125e746523ec63a7aaf3826898e462c7c18b714b35d7432509e65bf3a2"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._exportConversation (cognitive 36): _ChatScreenState._exportConversation has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 4 (12 pts), ternaries 1 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0357ee62372ec60102e5d4c8cf28e0af556c409aa4ea817a397fa895351b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._sendWhileWorking (cognitive 36): _ChatScreenState._sendWhileWorking has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (25 pts), ternaries 2 (6 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4705}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15c3d76df247d20c0ab10f7bb50bab04f6b51e28d06d237d623507476248b75"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnJournal._readData (cognitive 36): GatewayTurnJournal._readData has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 6, loops 2 (4 pts), error handling 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc9eaa75a49a26e21a91bb5778d3fa1618c0a3f5f32916f67be36545e66e527"}},{"ruleId":"D2","level":"warning","message":{"text":"_FallbackModelsState.build (cognitive 36): _FallbackModelsState.build has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 4 (9 pts), boolean chains 5, loops 2 (5 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":"lib/core/widgets/fallback_models.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2233f4fb7c7c5785098badb0c14c103a0f482c1fa3762e596d4134c2ee885c1c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._fetchMessages (cognitive 35): _ChatScreenState._fetchMessages has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 8, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"609da475a538aece8cd026b04958d0659e4d82447027481185c1fb801fd46d9c"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopGatewayClient._rememberBinding (cognitive 35): DesktopGatewayClient._rememberBinding has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 10, ternaries 1 (2 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cb427392e23df6b0255e6d67fb78e143b575034ceff07589e58f1aa9e5ab0b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectsRepository._create (cognitive 35): ProjectsRepository._create has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 3 (9 pts), loops 2 (3 pts), ternaries 2 (3 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":"lib/core/services/projects_repository.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"55aabd22401a8bbdc39f1acaa7142e4affe76ec552adca1da080f7ee75e22619"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatReceivedRecoveryProjection.build (cognitive 35): ChatReceivedRecoveryProjection.build has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 5 (6 pts), boolean chains 2, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/chat_received_recovery_projection.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"351f73109f1a21508c95a8a35bdb37feb8335ec3569c76aec513ca7492d37006"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnCoordinator._reconcile (cognitive 34): GatewayTurnCoordinator._reconcile has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 7, match/switch 2 (6 pts), error handling 2 (4 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c885dbc837b7208a6096522a6d3b12c37566fc0c8b595e4db17b98f6416f12c"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnJournalEntry._fromJson (cognitive 34): GatewayTurnJournalEntry._fromJson has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 17, if/else 5 (7 pts), ternaries 5 (7 pts), error handling 2 (3 pts) (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc62e1faedd2c93351f181cd24f6dacb3d4cede9adf486769cd3d2ab6676a55"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundReport.fromMessage (cognitive 33): BackgroundReport.fromMessage has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 17, if/else 9 (11 pts), ternaries 4, match/switch 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/background_report.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f7029fb76142662b1f57981e8dc27be82cc7df14cf310b35cd8c7cefff891a"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._initVoice (cognitive 33): _ChatScreenState._initVoice has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 3, error handling 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2535}}}],"partialFingerprints":{"codehealthFindingId/v1":"af91817a26d8cba3e9de2bee5b63fe2950e5b3c8ba23b240f5b6df239defbb49"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._refreshDeferredHistoryIfIdle (cognitive 33): _ChatScreenState._refreshDeferredHistoryIfIdle has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 17, if/else 8 (15 pts), error handling 1 (nesting depth added 7). 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3343}}}],"partialFingerprints":{"codehealthFindingId/v1":"b544f8568474d39925d4ed9dbbfce9c0c4ee3ee67bf27316d3294b57a78726b4"}},{"ruleId":"D2","level":"warning","message":{"text":"_VoicePickerState._load (cognitive 33): _VoicePickerState._load has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (7 pts), error handling 2 (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":"lib/core/screens/settings_screen.dart"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b82c921eb71c89a9def95ed6f318db485d29be858c4247b0c91bc8bf7a7e3f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectsRepository._reconcileSnapshot (cognitive 33): ProjectsRepository._reconcileSnapshot has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 11, loops 6, ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/projects_repository.dart"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71c42e4f96d15ce56aa4e7de7d411a8a4e346526aa83116d5880735bf610422"}},{"ruleId":"D2","level":"warning","message":{"text":"WsClient.parseGatewayEvent (cognitive 33): WsClient.parseGatewayEvent has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 24, if/else 3 (4 pts), ternaries 4, loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ws_client.dart"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f9b1b835448d3226b3e58c952ae8f8a1f9a12250e30546bc592d1cdb9b4d77"}},{"ruleId":"D2","level":"warning","message":{"text":"_AuxiliaryModelsState._load (cognitive 33): _AuxiliaryModelsState._load has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (12 pts), ternaries 2 (6 pts), loops 1 (2 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":"lib/core/widgets/auxiliary_models.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"75379aec8128e33f61c9c6b903d928a6a781a8f3c0dc118a7a032883d76f716e"}},{"ruleId":"D2","level":"warning","message":{"text":"_CronModelPickerState.build (cognitive 33): _CronModelPickerState.build has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 3 (9 pts), loops 3 (6 pts), boolean chains 5 (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":"lib/core/widgets/cron_model_picker.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f287d9394aab4f05ef8b7ab1a82b2624cebaf7b9f53d4008ff83c1df1b8f606"}},{"ruleId":"D2","level":"warning","message":{"text":"_AddDialogState._pickCertificateIdentityOwned (cognitive 32): _AddDialogState._pickCertificateIdentityOwned has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 2 (6 pts), boolean chains 1, 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":"lib/main.dart"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"051d4ecf308a7ed27044e70458cf6cb7a89423ad97d367f9faa0c0d3a5d41106"}},{"ruleId":"D2","level":"warning","message":{"text":"_WorkspaceScreenState._refreshActivitySessions (cognitive 32): _WorkspaceScreenState._refreshActivitySessions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 6, loops 2 (5 pts), ternaries 1 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb71ff02fa6c1be9cece980f7b98dc4923dac3b61d751ca77308b5fb0e3f14dd"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentController.save (cognitive 32): AttachmentController.save has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 5, ternaries 2 (5 pts), error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_controller.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"326905b3c15abdc18f1e5761e255f0a13146720785ee940c0e13a4e1eac223ee"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionManager.importConnections (cognitive 32): ConnectionManager.importConnections has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 3 (7 pts), loops 4 (7 pts), ternaries 2 (6 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1a83fb3664b2ce00b87aabbd288e14e1cc2b84bb89a581cc9bfc9d8c5002c3"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnRecoveryState.rehydrate (cognitive 32): GatewayTurnRecoveryState.rehydrate has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 31, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_recovery.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d42411b9aaacbd46e1448c27b618645f6f9cf70721c142808027555296796e2"}},{"ruleId":"D2","level":"warning","message":{"text":"_FallbackModelsState._loadOptions (cognitive 32): _FallbackModelsState._loadOptions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 8, ternaries 2 (6 pts), loops 1 (2 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/fallback_models.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1af454ea8604f3e96c272ce57c196e6d16d4dd7f56a3806daab611e38eed9c6"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesAppState._dispatchNotificationResponse (cognitive 31): HermesAppState._dispatchNotificationResponse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (24 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adab924a9c7c1f9d6cc3cd08acac922d2416328035904c57ad3260228f00010"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._runServerSearch (cognitive 31): _SessionListScreenState._runServerSearch has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 3, error handling 3, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31b7719464f4b9809120320ba64333f508166e808c3f6d27b545b5ec2d61980"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardClient._requireRawFallbackConfig (cognitive 31): DashboardClient._requireRawFallbackConfig has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 10, ternaries 2 (4 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa17e31ebcfa4a32c3a65292e62ca183778d0e9e782f7d2e78a4a464bfeff69e"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegatedTaskController._performRead (cognitive 30): DelegatedTaskController._performRead has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 10, ternaries 2 (4 pts), error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/delegated_task_controller.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82b9a3ad4d8e6cc169582bcc7368ce8bc378a19156b4116fb7ecb1dc712c4fb"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyLcmSummary.splitEnvelope (cognitive 30): LegacyLcmSummary.splitEnvelope has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 11, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/legacy_lcm_summary.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1786a37714f5cdd8c0bd62ddf8e370fd6943bc89d54f5a6e16c07053272be132"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._showGatewayApproval (cognitive 30): _ChatScreenState._showGatewayApproval has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 7 (9 pts), ternaries 3 (5 pts), error handling 1 (2 pts) (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6071}}}],"partialFingerprints":{"codehealthFindingId/v1":"589444ce985e673bf27a4a7d38644908ed5a3eb2201f887c23ec441ec0c900f5"}},{"ruleId":"D2","level":"warning","message":{"text":"_WorkspaceScreenState._loadWorkspaceSessionsData (cognitive 30): _WorkspaceScreenState._loadWorkspaceSessionsData has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 4 (6 pts), boolean chains 5, error handling 4, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3ce954adb2cd18e3df88a2ac5f56b54ea7cfe088de517a195d9a4c9d38252a"}},{"ruleId":"D2","level":"warning","message":{"text":"_WorkspaceScreenState._moveChatToProject (cognitive 30): _WorkspaceScreenState._moveChatToProject has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (14 pts), error handling 1 (2 pts) (nesting depth added 7). 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":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1886}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e9418d4c895e785267b00c17884b0339f3ba119b77684feb569685409f5740"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentVideoDirectoryOwner.sweep (cognitive 30): AttachmentVideoDirectoryOwner.sweep has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (20 pts), error handling 3 (7 pts), loops 1 (2 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":"lib/core/services/attachment_video_file_ownership.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a8cf38ba293e04352e05a6c9e448816afb4f97720defb34e945f1bfe9aa54b"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesSignInVault.load (cognitive 30): HermesSignInVault.load has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (8 pts), error handling 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/hermes_sign_in.dart"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f4511d9f37fafad6f1d41a8369d42a5a9fd86885aecd103eb784d3929da554"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyLcmSummary.matches (cognitive 29): LegacyLcmSummary.matches has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 11, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/legacy_lcm_summary.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a60d0aab60f7e7704eb6cba28fed09477cd83b07a3f8b12553922e6f4ee470"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProviderOAuthScreenState.build (cognitive 29): _ProviderOAuthScreenState.build has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 8 (10 pts), boolean chains 3, match/switch 1 (3 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_oauth_screen.dart"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6647f39234c10db199e2aefed12101e5defdfbe3d100917362df16f4c9a835"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSessionsScreenState._setArchived (cognitive 29): WorkspaceSessionsScreenState._setArchived has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5, ternaries 2 (4 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"60682083c881427eba8f9dd58ee8c53ee4ceb86126dba7e2bd0a22250fcb642a"}},{"ruleId":"D2","level":"warning","message":{"text":"ComposerDraftStore.bind (cognitive 29): ComposerDraftStore.bind has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (21 pts), boolean chains 3, error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/composer_draft_store.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7c428524710459a89f89f3c2e55c2a73cdb1e86bc23c8a54c8ab777bb4a144"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnCoordinator._quarantineAndCloseExactSource (cognitive 29): GatewayTurnCoordinator._quarantineAndCloseExactSource has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (9 pts), boolean chains 3, loops 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd068a55eae3d29a9579ecce26e6c980336726195ba7f1bf17e938dc007af49"}},{"ruleId":"D2","level":"warning","message":{"text":"WsClient.submitPrompt (cognitive 29): WsClient.submitPrompt has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 7, error handling 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ws_client.dart"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3ae3e3d804559607fcbd2976d8feb450d4f246253149b646a4c780a5702e88"}},{"ruleId":"D2","level":"warning","message":{"text":"_DelegatedTaskTimelineState.build (cognitive 29): _DelegatedTaskTimelineState.build has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8, ternaries 3 (5 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/delegated_task_timeline.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04ab5864497f25816e4ec3638fd85b33f336f671c891d69822a0f3bb7a61267"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceRecordingControls.build (cognitive 29): VoiceRecordingControls.build has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 11 (18 pts), if/else 6, boolean chains 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/voice_recording_controls.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ade7586a378052ee4afcfff922e002a3e71f5cec1b991c2a3b9e511e4e1ff4"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayPersistedTurn.fromWire (cognitive 28): NormalGatewayPersistedTurn.fromWire has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 20, if/else 6 (7 pts), loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/normal_gateway_persisted_turn.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53a939cde8f560770fcba62543b6c999715b5aff198d067142743bc98e5f30e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ModelManagementScreenState._applyModel (cognitive 28): _ModelManagementScreenState._applyModel has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 11, ternaries 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd86c2377457719a95d9ee2aa04f6e030306a3176af987fc33d857479988090"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopGatewayClient.respondToClarify (cognitive 28): DesktopGatewayClient.respondToClarify has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7, ternaries 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb335078426d44c249178b16b5cc3c4e28aeb4f0749ec6bf1ba4cd5133eb9bbf"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalVoiceRecorder._recoverContinuation (cognitive 28): LocalVoiceRecorder._recoverContinuation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 6 (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":"lib/core/services/local_voice_recorder.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f06bf09b64c46e4e3b9a0c328c4c0fb2919f4c85d7a9176da0c1dad7fee031"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteFilesClient._downloadUrl (cognitive 28): RemoteFilesClient._downloadUrl has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/remote_files_client.dart"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e166a75f21608aed09cf411adff7e0239464fd4c05481f8a0601e9628bf83f2"}},{"ruleId":"D2","level":"warning","message":{"text":"_AdoptProjectFolderSheetState.build (cognitive 28): _AdoptProjectFolderSheetState.build has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1 (5 pts), ternaries 1 (3 pts), boolean chains 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":"lib/core/widgets/adopt_project_folder_sheet.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f92ca8e0eb9c83a8f54bbb43617021b65077e3e2c58e55f762b68e61ece007"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSessionsScreenState._loadOnce (cognitive 27): WorkspaceSessionsScreenState._loadOnce has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 7 (9 pts), boolean chains 7, 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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c763a17b28de58361b92a26e3d952a85982a6c8623e99089927b4ffc645da8c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionManager.initialize (cognitive 27): ConnectionManager.initialize has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (8 pts), loops 2 (4 pts), boolean chains 2, error handling 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c453352dddc7b0bfc73c4b45d9ee4de47e7a98bf18bfc31382a9c0af973ea23"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayProbe.probe (cognitive 27): GatewayProbe.probe has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 7, error handling 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/hermes_sign_in.dart"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2b5c5254a24ee5e22f1bfd011c85bc13d5dcea69bb0566e5ae9d59d7348bdd"}},{"ruleId":"D2","level":"warning","message":{"text":"LanDiscoveryService.candidateHosts (cognitive 27): LanDiscoveryService.candidateHosts has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 10, 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":"lib/core/services/lan_discovery_service.dart"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90de0655a1e6db026fbba6edb618f86654b45977ba72ffc648eb89538587920"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushService._drain (cognitive 27): MobilePushService._drain has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (14 pts), boolean chains 6, error handling 2 (6 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"240787f028afbac48269034a01030c9b94a58b2c250917e075f410d52677fbc6"}},{"ruleId":"D2","level":"warning","message":{"text":"_AuxiliaryTaskState.build (cognitive 27): _AuxiliaryTaskState.build has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 6 (10 pts), boolean chains 4 (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":"lib/core/widgets/auxiliary_models.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6905cdc9c9c8bdb53a64c25806238baf333aeb5cb90363909c2aece344b595"}},{"ruleId":"D2","level":"warning","message":{"text":"_FallbackModelsState._row (cognitive 27): _FallbackModelsState._row has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 7 (11 pts), boolean chains 8, if/else 6 (8 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":"lib/core/widgets/fallback_models.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f8713618d7f9a674d5514573df3cee59f69d760cebec58529f2db537c1b037"}},{"ruleId":"D2","level":"warning","message":{"text":"_GatewayClarifyDialogState.build (cognitive 27): _GatewayClarifyDialogState.build has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 10 (19 pts), if/else 4, boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/gateway_clarify_dialog.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3074d210e2bdabc4f2dfe5e94ecd1f4b01698cdbfeadebaa073f28febe70c154"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewaySubagentCard.build (cognitive 27): GatewaySubagentCard.build has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 17 (24 pts), if/else 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/gateway_insight_card.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2cfe20b545bee92f09aa714f8d9fe58b5d23ee82c30171e019584014e8339a"}},{"ruleId":"D2","level":"warning","message":{"text":"Profile.policy (cognitive 27): Profile.policy has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 9, loops 2, error handling 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/mobile_push/config.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b95d2deea98f60c1979c309bc683272e50b430ee4d13d8d63ad6fbcc22c4254"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._buildDisplayItem (cognitive 26): _ChatScreenState._buildDisplayItem has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 6 (7 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":7892}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20153960f42b7e8f8de7c459a4a6573f11ea97529e9908b1c8c5e19e24cb4c9"}},{"ruleId":"D2","level":"warning","message":{"text":"_ModelManagementScreenState._parseModelOptions (cognitive 26): _ModelManagementScreenState._parseModelOptions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 9, 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":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cb854f1c09edbeb409fe6716b23a57b0b92c61d974b1ae7cde2162b6dfd255"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner._boundSettledPresentation (cognitive 26): NormalGatewayChatOwner._boundSettledPresentation has cognitive complexity 26 (threshold 15). Drivers by points: loops 9 (12 pts), if/else 5 (10 pts), boolean chains 4 (nesting depth added 8). 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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec466b18a3fd27e27d409dea113f0312ea929f2d58ae271415ec5580956a6d3"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionArchiveLedger.apply (cognitive 26): SessionArchiveLedger.apply has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 4 (7 pts), loops 4 (6 pts), boolean chains 4 (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":"lib/core/services/session_archive_ledger.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3dcbe6669be6bc387f013d627ecc574d6014c1025eadb34b379a7de8168aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"ActivityPaneState.build (cognitive 26): ActivityPaneState.build has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (15 pts), if/else 6 (7 pts), boolean chains 2, 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":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2676e47b5304a1378939601af716342750781c464c690edb6573e7a45a5e184"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.events (cognitive 26): Store.events has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/mobile_push/store.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01385aceffe2b694a3542e29a0cf2fce9a89b8de542a3ba7d19f50be41ce83d"}},{"ruleId":"D2","level":"warning","message":{"text":"transport.validate_endpoint (cognitive 26): transport.validate_endpoint has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 10, error handling 1, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/mobile_push/transport.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11d43152a210fa5c6679491806521f07045f9efa5458054d9634c1680fa1eb9"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesAppState._onMobilePushChanged (cognitive 25): HermesAppState._onMobilePushChanged has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 8, loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f79ae1fa12744277ff72e2a77971e9751bb2909a509df1d27b73fc58305b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._canStartHandsFree (cognitive 25): _ChatScreenState._canStartHandsFree has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 25. 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2272}}}],"partialFingerprints":{"codehealthFindingId/v1":"975de7d6a251b93c87efe5fb29c01f22c3604cc540c6bb8e8ea021cea2de3877"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._startVoiceInput (cognitive 25): _ChatScreenState._startVoiceInput has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (10 pts), error handling 1 (2 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"758cf8f28b950cd83161b87be844b5b58d31be24d34de50948d2a249d2a01c08"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSessionsScreenState._rename (cognitive 25): WorkspaceSessionsScreenState._rename has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 7, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6922115b212f01648e92b97b6b1ffa91a7a7683a7b6c7ddf11213982d38ba6c0"}},{"ruleId":"D2","level":"warning","message":{"text":"AppReleaseApk.parse (cognitive 25): AppReleaseApk.parse has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 21, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/app_update_service.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64c3203f2b40225da8a05ca4d383d13803d8c5f60f96cfd7fac70f6aa2f0910"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesSignIn.browserSignIn (cognitive 25): HermesSignIn.browserSignIn has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 5, error handling 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/hermes_sign_in.dart"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0ad92338ec8130809e7d72100756f85b97e4d10278f4fa25bb32ca98016b41"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayApplicationSession._coalesce (cognitive 25): NormalGatewayApplicationSession._coalesce has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 7, loops 3 (4 pts), ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cfbb6bc2e658570c27596129793a0900e40f3fd4c3825da7f398ce43ef3e02"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesAppState._handleNotificationResponse (cognitive 24): HermesAppState._handleNotificationResponse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9, ternaries 3 (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":"lib/main.dart"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d02fc20370c875e76e8eee3bf60bf499e08a39b4bc7efd301a4886c50fd8b72"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenState._showDashboardAuthDialog (cognitive 24): HomeScreenState._showDashboardAuthDialog has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 5, boolean chains 2, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"4133b88e0bb955047c89816ddf0c39488c1d2182fb1b17adb6e5ac7e3a2044c6"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._handleDesktopAsyncEvent (cognitive 24): _ChatScreenState._handleDesktopAsyncEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 1 (3 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5672}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2394fe89d4f0d0c764143bacb682c6e196ef61158b1e0f1aaa8fb674e649179"}},{"ruleId":"D2","level":"warning","message":{"text":"_WorkspaceScreenState._startSharedChat (cognitive 24): _WorkspaceScreenState._startSharedChat has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 3 (4 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"3792140faf90cc79fbf6df8c74a1fd58778ff60d692d8fd6eea674a762771847"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentDraftService.prepareImage (cognitive 24): AttachmentDraftService.prepareImage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 3 (6 pts), boolean chains 3, error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_draft_service.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e0c66ca520c2f7968005437d0bf5221f0d94e546f67f4a0e0cd3210f2cb6c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigBackupService.import (cognitive 24): ConfigBackupService.import has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 3 (4 pts), error handling 2, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/config_backup_service.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"32856fc3f8d1a43e183c306581fe25ee4d45f90f77b78879c00079cabca31d27"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnCoordinator.stageAttachment (cognitive 24): GatewayTurnCoordinator.stageAttachment has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (8 pts), error handling 2 (4 pts), ternaries 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35d117139b57576cb731eb73f448caddb0d3c1bca157ed5526095477ae1303b"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnRecoveryState.applyEvent (cognitive 24): GatewayTurnRecoveryState.applyEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 6, ternaries 3 (4 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":"lib/core/services/gateway_turn_recovery.dart"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cf58fbc8c9a482ede1ff0d2a4d5d9ccb7f5ceeba71343815916c9d1419513c"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushService._events (cognitive 24): MobilePushService._events has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"f369a483a8561cff8d073cd8ef32441a7caada2a87634521b987517afbd8c2a2"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardProjectFolderDiscovery.scan (cognitive 24): DashboardProjectFolderDiscovery.scan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (6 pts), loops 3 (4 pts), boolean chains 2, error handling 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":"lib/core/services/project_folder_discovery.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"758efefefd55e407931a02d8351ec1b6e8db344ae558e565fe5555a5da1af211"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectsRepository.overview (cognitive 24): ProjectsRepository.overview has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, error handling 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":"lib/core/services/projects_repository.dart"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f538053c7b24f7f07dc42e68ec70a2713d836b8e81b548f0ea50c0dc523565f6"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._loadOlderMessages (cognitive 23): _ChatScreenState._loadOlderMessages has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (9 pts), ternaries 2, error handling 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e35328e3f63515c937001a750b8c71672f37de40741e98feefc0a51c39e30e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._drainSensitivePromptQueue (cognitive 23): _ChatScreenState._drainSensitivePromptQueue has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 6, match/switch 2 (4 pts), error handling 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22c1d03d7912b03fb032a14688544b93eeb01b15a258f4f4da9128c98d5daf7"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._drainClarifyPromptQueue (cognitive 23): _ChatScreenState._drainClarifyPromptQueue has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (9 pts), error handling 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6416}}}],"partialFingerprints":{"codehealthFindingId/v1":"219d6ab72b819d449eba7fa634bebbf7f4cbb0779ad1a688de765abb993d5863"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._stopRecoverableGatewayResponse (cognitive 23): _ChatScreenState._stopRecoverableGatewayResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6510}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93fbe7ea178ef51f7709c0aef262cca86ac0bbbe7523ea74053cec4980aa976"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._showAiModelSelector (cognitive 23): _SessionListScreenState._showAiModelSelector has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 3 (6 pts), boolean chains 3, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"babd39717b62b18435a67609c0e3db9c8c38a8a88a7ca73a1ebb1e71b6fda74e"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardClient.apiDownloadToFile (cognitive 23): DashboardClient.apiDownloadToFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":3015}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b30f7f90219814c6a84577d2c355cd1f305263846b656987dddd48668ee1ba"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnCoordinator._recoverJournal (cognitive 23): GatewayTurnCoordinator._recoverJournal has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 1 (4 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a72cee9eee3f5cdc45c70817a0ca58331a821072781f1fb4022d6c0e3a3d1cf"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnRecoveryState.applyReconcilePage (cognitive 23): GatewayTurnRecoveryState.applyReconcilePage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 2 (3 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":"lib/core/services/gateway_turn_recovery.dart"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee920f7aa65edf95e848f49ac374d089d034f260a82e749dd065b7f8c19cd36"}},{"ruleId":"D2","level":"warning","message":{"text":"_UpdateAvailableDialogState._update (cognitive 23): _UpdateAvailableDialogState._update has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, error handling 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":"lib/core/widgets/update_available_dialog.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9625fdd93202e3fd36b4c6a169ba10b3c0d2c183320dc779cb5fea0be3c71ffd"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState.initState (cognitive 22): _ChatScreenState.initState has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, boolean chains 7, error handling 1 (2 pts), ternaries 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3ba61018c9118929f08d81de06605bf88495d8d776216efcf7d363e70d294d"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._readAssistantText (cognitive 22): _ChatScreenState._readAssistantText has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 9, error handling 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc2acf647b9c8a64532769160c3839f205c4d2c354c16b0958b5cc24d19d1f5"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._pickFiles (cognitive 22): _ChatScreenState._pickFiles has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 2 (4 pts), loops 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"35902c734adf4fc1d376e09ddcc2bf0bbf8b5cf74b7bb79f16403105e9a0305a"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageBubble._renderContent (cognitive 22): MessageBubble._renderContent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 5 (7 pts), ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8588}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced133074a7ee117091c85545e199a4cf7a4ba24092fe1d675e4437a2ba1c942"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSessionsScreenState._promote (cognitive 22): WorkspaceSessionsScreenState._promote has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e11c07b304a535f707e59f3cb5b5aa7d61fc213c3273b6d9bc840fcfde5c828"}},{"ruleId":"D2","level":"warning","message":{"text":"AppUpdateService.checkForUpdate (cognitive 22): AppUpdateService.checkForUpdate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (5 pts), boolean chains 3, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/app_update_service.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0cf9b392104b630b6901125e0366c4151f6a3284633be8675daa9711c10c96"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentController._streamLarge (cognitive 22): AttachmentController._streamLarge has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_controller.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"255ccebd591ea27776733ace1be60aaec10f287e40d5cf198ed911c6f97a6336"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentController.share (cognitive 22): AttachmentController.share has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_controller.dart"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5d2ba61e21c281ddfbf93657b44bcfc643c6321f85158de04a238f74c52cd3"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentDraftService._detectImageFormat (cognitive 22): AttachmentDraftService._detectImageFormat has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 19, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_draft_service.dart"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8e5f8efb72d42b05d009d0ba858a9dc935303e5c7f768c96305c00e69d6a6c"}},{"ruleId":"D2","level":"warning","message":{"text":"ComposerDraftWriter.read (cognitive 22): ComposerDraftWriter.read has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 1 (3 pts), boolean chains 2, error handling 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":"lib/core/services/chat_presentation_state.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"442439c6c2a64e50894eca7ccacc06bce5d09e192316e276af56327ca7a3a062"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientCertificateService.importIdentityDocument (cognitive 22): ClientCertificateService.importIdentityDocument has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 5, if/else 5 (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":"lib/core/services/client_certificate_service.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0821cfd13730e0c8c4b31f502f5b742c14378cdae75a6ba2e8206e46b9baef0"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionKeepAliveService.start (cognitive 22): ConnectionKeepAliveService.start has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, error handling 2 (4 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":"lib/core/services/connection_keepalive_service.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefe14763485f868b789870245d05374b9b3a64687c5dee21eda61f3d1634f90"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnCoordinator.interrupt (cognitive 22): GatewayTurnCoordinator.interrupt has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (8 pts), error handling 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"324f0bf515d5a544c042cc82bf6268ff2550b21f0b3fc3c89aa37268ba20ae21"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnCoordinator._openFreshTransport (cognitive 22): GatewayTurnCoordinator._openFreshTransport has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (3 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff0be2c0e4a17a9d6cc0eca962d55caed1e95e7dac09e2fe8b5880c96c3691a"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnJournalEntry.GatewayTurnJournalEntry (cognitive 22): GatewayTurnJournalEntry.GatewayTurnJournalEntry has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 21, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d649354e41cc0149e81d2ebdb01641697389d47ba5b53504a4465418a211ae"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesSignInVault.sessionForRequest (cognitive 22): HermesSignInVault.sessionForRequest has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 4 (8 pts), boolean chains 4, 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":"lib/core/services/hermes_sign_in.dart"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ae8183991722337716bc85a318dfb9046e4a18ea1cc27b691f866242a82faf"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionBrowserLoader._scan (cognitive 22): SessionBrowserLoader._scan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 pts), ternaries 1 (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":"lib/core/services/session_browser_loader.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f0d8f74b6292a0107805486025cbcbd1374ca1b14ba499b074940b4f4a5671"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesAppState._drainPushRoutes (cognitive 21): HermesAppState._drainPushRoutes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 7, loops 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"512c7960308deba18d3690dc13eccfcc079f88bef2225fb7c09c1ae51f18e93b"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceRecordingController.send (cognitive 21): VoiceRecordingController.send has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, error handling 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"706d626f1f4d0e9a8f89a4c5049a864cbaae9025ccb818f03f160192df75791c"}},{"ruleId":"D2","level":"warning","message":{"text":"SlashCommandCatalog._pairs (cognitive 21): SlashCommandCatalog._pairs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/slash_command.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fd1bc4da3de86f168fceaf518087e3b3d72dd60936546275414ca113ff9721"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._gatewayAssistantMessageIndex (cognitive 21): _ChatScreenState._gatewayAssistantMessageIndex has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3575}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39479f3589c2c239a59fd8032531e10a422d69a0ce9dff58ff415f05a23a726"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._branchSession (cognitive 21): _SessionListScreenState._branchSession has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48a565bcc5252daa4fb1f96c9cf59b6bbdfb3d6bc8990304e4373cf7ecb1d6e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPresentationRegistry.bind (cognitive 21): ChatPresentationRegistry.bind has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, 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":"lib/core/services/chat_presentation_state.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"826b1e072a15ba9bc7593bf3ff05d0bb3bfa6d43551bd03a7abfd2a2e2508065"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardApiClient.getModels (cognitive 21): DashboardApiClient.getModels has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 1 (3 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/dashboard_api_client.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbefcaddca0d3bd475c2ccaf38263a0cf1a5751c8e7d04e5c3f1e236cfdca1b"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner._reconcilePersistedTurns (cognitive 21): NormalGatewayChatOwner._reconcilePersistedTurns has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, loops 4, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87aa1c9e090ab325f33552bb2a1d3499cdf728736d2cb8247e4332ec690c4a8"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner._recordActivity (cognitive 21): NormalGatewayChatOwner._recordActivity has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (5 pts), ternaries 3, match/switch 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"207f13f44cfc4978bf7a4e418f07289b6554ea7897a731f512feb43eabed9c23"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner._completionAssistantMessage (cognitive 21): NormalGatewayChatOwner._completionAssistantMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, ternaries 1 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"00317b00a95709f6e7d297cd99e71a8b0ecd00f13ff0af5503fbb8632dca73fc"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickChatStore.load (cognitive 21): QuickChatStore.load has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 2 (4 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/quick_chat_store.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e77b95c9b777e33f151ef5d41145284cab7a6e4b4eb13875ac3eb70bd1b5f5"}},{"ruleId":"D2","level":"warning","message":{"text":"AiSearchModel.configuredFromOptions (cognitive 21): AiSearchModel.configuredFromOptions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (5 pts), ternaries 3, 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":"lib/core/services/session_search_preferences.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca6d9dc042b092450c5ccb31d1684632d5e9603a0d5ba8a9acb83a75e68332a"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProjectDetailScreenState.build (cognitive 21): _ProjectDetailScreenState.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, match/switch 1 (3 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/project_detail_screen.dart"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f86449a436da254da56c8b652f7b9a59d759b1d81cc3af075b1f17c13764d7c"}},{"ruleId":"D2","level":"warning","message":{"text":"_SpaceMigrationPreviewState.build (cognitive 21): _SpaceMigrationPreviewState.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 7 (9 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":"lib/core/widgets/space_migration_preview.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7f6362368e11da68d51752e8050a449753e16d14488a0a38c0bc8a77cb053e"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.configureFlutterEngine (cognitive 21): MainActivity.configureFlutterEngine has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 3, 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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MainActivity.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"100152bd67ee172e9d535e688d942d0ee32375606ecd5cf8e82de20e89be4d52"}},{"ruleId":"D2","level":"warning","message":{"text":"Runtime.deliver_one (cognitive 21): Runtime.deliver_one has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, error handling 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/mobile_push/service.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e6fe2441e42873bf1dfe5cc8c60d264de97ec846b65c4f07009e80b2619d17"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._setSessionArchived (cognitive 20): _ChatScreenState._setSessionArchived has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, ternaries 2 (4 pts), error handling 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63f7440d9a2aca3bc2569cb9abc329745c61f237206e571b1c4a10bb9159b69"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._preparePickedImages (cognitive 20): _ChatScreenState._preparePickedImages has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 pts), error handling 2 (4 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3930}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b21ff3017430d39b7b9384a06d51bac66f571979f9d18997efcd294cd7a7063"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._completionAssistantMessage (cognitive 20): _ChatScreenState._completionAssistantMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, ternaries 1 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5605}}}],"partialFingerprints":{"codehealthFindingId/v1":"16adf391b84829a424d8b83cccd023567cd27ef680b3b0eb6bf0f4641d407b56"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._loadMoreSessions (cognitive 20): _SessionListScreenState._loadMoreSessions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 8, 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":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"555db8f0ffbfb275a497140c97be8ec2ea4982ced743f1bd12e2204dc1d7253d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSessionsScreenState._applyData (cognitive 20): WorkspaceSessionsScreenState._applyData has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), ternaries 2 (4 pts), 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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c6e0cab4105fb9bee637f63f1cff61e5cd54987608988d2c8913bcbb9b5d18"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentController._fetch (cognitive 20): AttachmentController._fetch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_controller.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f79634a2d8e1b1a80250908bc433e0b89b68f996f0a3644da5bff5125484989"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayChatClient.buildChatCompletionMessages (cognitive 20): GatewayChatClient.buildChatCompletionMessages has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (6 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d677c8e60fd7c46d523a9f5cc9e3f0b4e5a9cf6140a5962bdae584a8b5dc6dd"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardClient.apiGetBytes (cognitive 20): DashboardClient.apiGetBytes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d227e3eb7927673f160dca18278bd6eafb8fed46f034dedd9454b3dc5269e0"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardTaskHistory._isCompressionEdge (cognitive 20): DashboardTaskHistory._isCompressionEdge has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 16, if/else 2, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/delegated_task_history.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0380c191cfb00194286b34da8067b93cfc95eb60e1839020e9f2220aaf59ac87"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectsRepository.refresh (cognitive 20): ProjectsRepository.refresh has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (6 pts), ternaries 2 (4 pts), error handling 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":"lib/core/services/projects_repository.dart"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"445dd3c899b20db22d0b16aae63db543164dbaadf11775b4dc47e1bb7e7dc3db"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushPolicy.valid (cognitive 20): MobilePushPolicy.valid has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushPolicy.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff61f39fd75a7d5eb15554cac8e927a3773eae54497db2b9e20aa4096de0594e"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenState._showApiKeyDialog (cognitive 19): HomeScreenState._showApiKeyDialog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95e1f74230f0f6e26b23fdd4e8a753b6265d10b64d58c65b51d0b671b7e408e"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundReport._isPreservedTaskList (cognitive 19): BackgroundReport._isPreservedTaskList has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (4 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/background_report.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"663f1fdcd81215b824bd5f83868a0b5f6ed48d664e8104cded494fb4a5b731eb"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayApprovalRequest.fromEventData (cognitive 19): GatewayApprovalRequest.fromEventData has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 5, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_approval.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"739707bfe635b92b6ac5913f49d7b6ec49174305caed0eaa9116003ff586a059"}},{"ruleId":"D2","level":"warning","message":{"text":"_CronScreenState._buildBody (cognitive 19): _CronScreenState._buildBody has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, ternaries 5, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/cron_screen.dart"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0734125456866b0a90b198fa553317930fd112ca41f87b6a27a10f936cf0a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._renameSession (cognitive 19): _SessionListScreenState._renameSession has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1f6a102618f837ea222184ddcc1d93dd7d961c9202d973f0011c6019b2afab"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._archiveSession (cognitive 19): _SessionListScreenState._archiveSession has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8781f4e10fcb7d78462ce3943f7880eeb3f78547280d2320530074ccce9d35"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceSessionsScreenState._setPinned (cognitive 19): WorkspaceSessionsScreenState._setPinned has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, error handling 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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37ffbc6ee454a852c26d54a2d530e7e3703144a1c74671021fd1df0f8798065"}},{"ruleId":"D2","level":"warning","message":{"text":"AppUpdateService.parseRelease (cognitive 19): AppUpdateService.parseRelease has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (2 pts), error handling 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/app_update_service.dart"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bdb202b4aa5cb991462eb3877d162e121282a56ab9e92bb24639b9b68b2412"}},{"ruleId":"D2","level":"warning","message":{"text":"ComposerDraftStore.removeConnection (cognitive 19): ComposerDraftStore.removeConnection has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 2 (6 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/composer_draft_store.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"623c8c855095a0dac37f13a0c078862402572ac0231b09c5cd233ed66fc62f13"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionManager.updateConnection (cognitive 19): ConnectionManager.updateConnection has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, ternaries 6, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"1149d23c78a532171db1dceca5556c599291f472b23293e34b2f148dac5741ea"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesSignInVault.refresh (cognitive 19): HermesSignInVault.refresh has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, error handling 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":"lib/core/services/hermes_sign_in.dart"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7876802c85579300ec84e9be8740d4e429b6af866a45cc622e5a24f0908874"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedSessionScan.load (cognitive 19): SharedSessionScan.load has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 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":"lib/core/services/session_browser_loader.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2501664ce7983e8cf48f067dcf22c763eff64e5679dbbf2c87f4d08e9c810e"}},{"ruleId":"D2","level":"warning","message":{"text":"_AuxiliaryModelsState._apply (cognitive 19): _AuxiliaryModelsState._apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 7, 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":"lib/core/widgets/auxiliary_models.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98fc23392a28d6b296c5aa488341b7dd2dd266047e549ca62605e56c002fd9c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatAttentionSection.build (cognitive 19): ChatAttentionSection.build has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 2 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/chat_attention_section.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e3c333bd36521b5b866ecdf48805ba26bf01907db0e871059653f90c73a9ac"}},{"ruleId":"D2","level":"warning","message":{"text":"_UpdateAvailableDialogState.build (cognitive 19): _UpdateAvailableDialogState.build has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 7, boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/update_available_dialog.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c847f043afda9513d2528f86ff793d9bb65472e2465ec2824f9d671a503f1b0"}},{"ruleId":"D2","level":"warning","message":{"text":"_AddDialogState._importCertificate (cognitive 18): _AddDialogState._importCertificate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":2748}}}],"partialFingerprints":{"codehealthFindingId/v1":"13804a98427c4d9c376d072b718eeb19ef393c5440b298a08585a1c9d2097b8c"}},{"ruleId":"D2","level":"warning","message":{"text":"HandsFreeConversationController._submit (cognitive 18): HandsFreeConversationController._submit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, match/switch 2 (4 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4d89aff4b88c6d307a4169f73a7d3343ccd5dee6491b8deb75b50220f0bcd3"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceRecordingController.resumeRecording (cognitive 18): VoiceRecordingController.resumeRecording has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0007f94eeb6d62cac075d6f29553f9deafad842ed0aa60b4ded50eb8edeec917"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._parseModelChoices (cognitive 18): _ChatScreenState._parseModelChoices has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (6 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0337c0a75429017e4efaccea3e315bc471082ba8aaf6c17f48baaf1f09d9945"}},{"ruleId":"D2","level":"warning","message":{"text":"_SessionListScreenState._fetchSessions (cognitive 18): _SessionListScreenState._fetchSessions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, error handling 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":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a647e8bb043e344bdca09979910a46d51a13c14e775627503c737c016e30f9e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatHistoryWindow.fetchRecent (cognitive 18): ChatHistoryWindow.fetchRecent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (7 pts), boolean chains 6, error handling 1 (3 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/chat_history_window.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ea8bffe4990907e3da9daeba11b1d6c1272d9e9adbf842b8a2356bc81685ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionManager.saveSingleLoginConnection (cognitive 18): ConnectionManager.saveSingleLoginConnection has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 10, boolean chains 6, if/else 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"a717992c67bc753f237fbbcd598be73575ebac205317217967fa11d457751609"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiClient.setSessionArchived (cognitive 18): ApiClient.setSessionArchived has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 6, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45ab9ce3bdefb80171d7561958d88233155c046580bd51f8a4bbb799a25e525"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnCoordinator._handleLiveEvent (cognitive 18): GatewayTurnCoordinator._handleLiveEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 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":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"515d44e2228beedf5383fc1b968f65be5fce8e281bad87199d34b0abea8371fb"}},{"ruleId":"D2","level":"warning","message":{"text":"VoicePlatformEvent.parse (cognitive 18): VoicePlatformEvent.parse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/hands_free_voice_platform.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d007314c339ad66e0d0b6cc903bb67abecaec11a923c9ac2d7096cca20b17b7"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushService.checkAvailability (cognitive 18): MobilePushService.checkAvailability has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, ternaries 2 (4 pts), if/else 2 (3 pts), error handling 1 (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":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac4753b1d3906c79c4126ee9c723413c46d72fffaea164d14cc75295a9ae821"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayChatOwner.steer (cognitive 18): NormalGatewayChatOwner.steer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9b58ca0a24b6cab96b071947723c789d9689a32bee3c5877304d10623fb54b"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushBridge.receive (cognitive 18): MobilePushBridge.receive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushBridge.kt"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26333450b6da56d15ec08967f9c059a932e179a6c0b14d15361af08e31e29f5"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesAppState._syncOngoingChats (cognitive 17): HermesAppState._syncOngoingChats has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 3, loops 3, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e840ad960d1cf2c4626ea38666a823aef8289cc58285e4d7f9c802de2db6d60e"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceRecordingController.start (cognitive 17): VoiceRecordingController.start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 6, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afe3cd4347f80bbf4ba5b76ddeacde249d7361163b39d887ac73fdf5ed70abd"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatTimeline.reasoning (cognitive 17): ChatTimeline.reasoning has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 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":"lib/core/models/chat_timeline.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"210db6775dcb48af7d87f1a8a92ae0aaeced4eb899a002f502071544250c6d22"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatTimeline.textSnapshot (cognitive 17): ChatTimeline.textSnapshot has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 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":"lib/core/models/chat_timeline.dart"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4a61501aa89ff53bdbda7079acffdf6cc75ccaacf8cd89ee65f62a562ec891"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._queuePersistedHistoryContext (cognitive 17): _ChatScreenState._queuePersistedHistoryContext has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 13, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"818c40d7540d3ad95e233e5b28d7bc36b987b05187573e5d07c8a85904985351"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._recoverPendingTurn (cognitive 17): _ChatScreenState._recoverPendingTurn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":3404}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbeb6fa7df143a8e9d683fe109ca11419569a17303a358ad84437afebc46d2c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._cancelGatewayServerRequest (cognitive 17): _ChatScreenState._cancelGatewayServerRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4 (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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b064f7c97a611b31895650881bbf1c501f5274872d3823e6eef0407730be032a"}},{"ruleId":"D2","level":"warning","message":{"text":"_WorkspaceScreenState._startNewChat (cognitive 17): _WorkspaceScreenState._startNewChat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf57e4dcb695a521e8c2e4e211ec98abf3c9e2421e8b9c3c14e7ab95f65149f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSpaceStore._readState (cognitive 17): ChatSpaceStore._readState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, loops 1 (2 pts), error handling 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/chat_space_store.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e070d6915eb604d57a01e9306eb87971d53e76125c0e6e8acea5861478a78928"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigBackupService.export (cognitive 17): ConfigBackupService.export has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, error handling 1 (2 pts), loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/config_backup_service.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6af0c86e08e1f76c69f39eb361410e5f1678468db9cb63427c4d1bec9f8933e"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnJournal._readCurrentAfterLegacyPurge (cognitive 17): GatewayTurnJournal._readCurrentAfterLegacyPurge has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a596784860cb92ff03e414548aeb50bc401919b05476b312599634f32b71ca"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushService._current (cognitive 17): MobilePushService._current has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 4, error handling 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecae25c71883956f0279fd4bc4cdd037e4e9fc95ca8e7f099abb59bd878d4cb"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayApplicationSession._restore (cognitive 17): NormalGatewayApplicationSession._restore has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 3 (6 pts), loops 2 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"5002ba998c9e5d3d0a9d34a5647123a042896fa2ef0669215bbb14cba327638a"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalGatewayApplicationSession._drainRetirements (cognitive 17): NormalGatewayApplicationSession._drainRetirements has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 1 (3 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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"273393eeca77b2e9bc7f181b1ed665c001b21d695fb7622da48ccf69ff2b93c7"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardFolderProvisioner.provision (cognitive 17): DashboardFolderProvisioner.provision has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 1 (2 pts), match/switch 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/project_folder_provisioner.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80c9154f0c6af4dc76c044eec696370f378d6d22c30106ac8134be52ed59e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"HomePaneState._load (cognitive 17): HomePaneState._load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, ternaries 2 (4 pts), error handling 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":"lib/core/widgets/home_pane.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d50cba37b537bcb0d703ae2342e5b7611bba350c59fc1638d5e35cddb389080"}},{"ruleId":"D2","level":"warning","message":{"text":"_AddDialogState._pickCertificateFiles (cognitive 16): _AddDialogState._pickCertificateFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 2 (4 pts), loops 1 (2 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":2564}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2e2d4523dd41d00871165c5363e8f297fe0e7fa665a1e18b98f018bcc93dbd"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceComposerController._handleResult (cognitive 16): VoiceComposerController._handleResult has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 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":"lib/core/controllers/voice_composer_controller.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3502ec34cde51d97ae9bcce4526b0b826d524cc288e19b597c772441dace47e"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewaySessionBinding.fromWire (cognitive 16): GatewaySessionBinding.fromWire has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 13, if/else 2, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3bc6ffe2c29b1bf3fe50dd0cb8a375192a0fb4d47f8bbafa1577f4fa07ac0d"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyBackgroundMessage._isDelegationFailure (cognitive 16): LegacyBackgroundMessage._isDelegationFailure has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/legacy_background_message.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"715cc8ddae88aaefdd023ab41e16c6a128c58c0a4ed41dcac3a86e5e014a80da"}},{"ruleId":"D2","level":"warning","message":{"text":"_AssetsScreenState._header (cognitive 16): _AssetsScreenState._header has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/assets_screen.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f812c10b681011cef9923fe6302755ef09ff66512805ec4d49fe7c5c224c89b3"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._setSessionModel (cognitive 16): _ChatScreenState._setSessionModel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, error handling 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4307}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ead90841b2fe273bbbee3e371516d9f11bd0cbf5bc39fdcfe60ec20405bdcd"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProviderOAuthScreenState._poll (cognitive 16): _ProviderOAuthScreenState._poll has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_oauth_screen.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ca22426105ce48879255b9be7806838efb9e6bc5eaafd2216a1dcbf6b3402e"}},{"ruleId":"D2","level":"warning","message":{"text":"AiSearchQueryRewriter.rewrite (cognitive 16): AiSearchQueryRewriter.rewrite has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, error handling 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ai_search_query_rewriter.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9905c25b82dbc11df82e1d693b67aa228ea4a345a93f951ec4ca83eca81d529"}},{"ruleId":"D2","level":"warning","message":{"text":"DashboardSessionWrites.delete (cognitive 16): DashboardSessionWrites.delete has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 2, 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":"lib/core/services/dashboard_api_client.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf0270447f86ab6bf2bc1323ff8e3b8f079a2253583ffe9209f71368040b667"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnJournal._compact (cognitive 16): GatewayTurnJournal._compact has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7 (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":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"454a54620e938b4f66434a957f203211feac8f16924c84ed4d03240b3cb4737c"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnJournal._writeData (cognitive 16): GatewayTurnJournal._writeData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"d996ae5542ed73668dd718122fb58afef20cfbd67ba6e8670c43ccee58781d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurnUiProjection.fromState (cognitive 16): GatewayTurnUiProjection.fromState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (5 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_ui_projection.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f395e6e332b99e016888e8c77b22f5cfb549ea04c43542798f26f394365f34e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalVoiceRecorder._discard (cognitive 16): LocalVoiceRecorder._discard has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/local_voice_recorder.dart"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ecdc945b0419b7ca73b26d61f5cc22153f7bdd5f7ad90778bde0eda7fcd949"}},{"ruleId":"D2","level":"warning","message":{"text":"MobilePushService._message (cognitive 16): MobilePushService._message has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"811b78abef0cfff5f4d63a61f51ba99dd185edd523da634b8fe65429ae5bdd83"}},{"ruleId":"D2","level":"warning","message":{"text":"_AttachmentVideoPreviewState.build (cognitive 16): _AttachmentVideoPreviewState.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10, boolean chains 4, if/else 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/attachment_video_preview.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7551bdac741443bba45fa5572bd0d2b9c3a05a4aa37315468fba3d4d8f11575c"}},{"ruleId":"D2","level":"warning","message":{"text":"CronUpcomingPaneState.build (cognitive 16): CronUpcomingPaneState.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 2 (5 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/cron_upcoming_pane.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"1736956705bcb8da1cccfa6fe89f11e2808aa59be8b53f8ecae0b91aa5e036d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ApkUpdateInstaller.download (cognitive 16): ApkUpdateInstaller.download has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/ApkUpdateInstaller.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a033c8985720c56043c167de56e78dc54d04b5b3fb4d199ceeaa34a6ca743289"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatScreenState: ClassTooLong \u2014 5609 significant lines (blank, comment-only and punctuation-only lines excluded), 208 methods. The bar is 400 significant lines; this is 5209 over it, 14.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"6439d34f41539229d65b1e04191742d8cb59bdb8b9d783ba2f4875a3ee6b971b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/chat_screen.dart: FileTooLong \u2014 6532 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: _ChatScreenState (713-8358). The bar is 500 significant lines; this is 6032 over it, 13.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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93235ae8f0bbc241b1eb97aff9c0c6de2983cf4a81e33a3a01ebff4e9098717"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _ChatScreenState: TooManyMethods \u2014 208 methods. The bar is 30 methods; this is 178 over it, 6.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"0456a3ce475f1c55eeb9a0a2ec9592532cad4bd6d1547159ba37fc30254f75b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/main.dart: FileTooLong \u2014 2551 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2051 over it, 5.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9b7d0917cfe5c8a8896b3266ae5cb21018e2995aba6f4c2d89358cddfa6e8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/connection_manager.dart: FileTooLong \u2014 2494 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1994 over it, 4.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8027fd0a82a932407dc17fa038d7f43334de46cfadb108f873a74231127c06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/normal_gateway_application_session.dart: FileTooLong \u2014 2273 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: NormalGatewayChatOwner (730-2887). The bar is 500 significant lines; this is 1773 over it, 4.55\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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66dcee2bfb1dee15474c1beefb175c0dac5a997adedfbc7ea2fd8a5c23d3b08"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NormalGatewayChatOwner: ClassTooLong \u2014 1621 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods. The bar is 400 significant lines; this is 1221 over it, 4.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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae11fb72c25bbd28effd55843aba431f1eeead21b02ca30bfb5d267b3166c8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SessionListScreenState._buildBody: MethodTooLong \u2014 _buildBody runs 386 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 286 over it, 3.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f6c77d334438c41e37351dde2f31c417ff20a76e296c8a84eb827297680225"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _SessionListScreenState: ClassTooLong \u2014 1372 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 972 over it, 3.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f7cbed81f50ba3c3efd717d2b956494c06dccca87fa1215cd2286d0e72e0f9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _WorkspaceScreenState: ClassTooLong \u2014 1318 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 918 over it, 3.30\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":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fe0e9a880f12bc20a87fd49851c6658c70c86af3a7834498a72c23f68f776a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalGatewayChatOwner._event: MethodTooLong \u2014 _event runs 320 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 220 over it, 3.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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb9636a5904be0c4a6c3357995ef87f5ea68fa12c4948c93887913a82fa204d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._buildInputBar: MethodTooLong \u2014 _buildInputBar runs 314 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 214 over it, 3.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":7111}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c53e16019841b84593a91e1df1319a0002fb2669ae38c6b1e3177e73e5007e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/gateway_turn_coordinator.dart: FileTooLong \u2014 1473 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: GatewayTurnCoordinator (497-1931). The bar is 500 significant lines; this is 973 over it, 2.95\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":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f54c73850b6692f09cb79008e4f644e1d69516196c7e461370eb0d0160c5db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/session_list_screen.dart: FileTooLong \u2014 1425 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: _SessionListScreenState (79-2017). The bar is 500 significant lines; this is 925 over it, 2.85\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":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"630438f8fa36c4367fe45925ef7b0b2b27914c88de4db582101d91eceb1f888c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/workspace_screen.dart: FileTooLong \u2014 1416 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: _WorkspaceScreenState (270-2178). The bar is 500 significant lines; this is 916 over it, 2.83\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":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b782b3bbe4b380ed01e85f8d6c758ce47b68ab75f31771c22791fc38476f41b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AddDialogState.build: MethodTooLong \u2014 build runs 275 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 175 over it, 2.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":3007}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d9a51f224fdaa72fe7e4c7c4df115cf925dad5fd451249124e7eff70f57d39"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/workspace_sessions_screen.dart: FileTooLong \u2014 1333 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: WorkspaceSessionsScreenState (494-1861). The bar is 500 significant lines; this is 833 over it, 2.67\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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"093d99e4c57e4e3c7020c0ad70fe2178587b9ae0aefae6b01d6c364bbaea949c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GatewayTurnCoordinator: ClassTooLong \u2014 1053 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 653 over it, 2.63\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":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a55042546933e1f41585c86d1851bfc3935b4672250a8310b0159703a1cd956"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WorkspaceSessionsScreenState: ClassTooLong \u2014 980 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 580 over it, 2.45\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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91a22429c2474a4b40fa470db6df4cafbe0b5bfae9fa0bfcb2beaf0fc7ea3a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DesktopGatewayClient: ClassTooLong \u2014 953 significant lines (blank, comment-only and punctuation-only lines excluded), 69 methods. The bar is 400 significant lines; this is 553 over it, 2.38\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":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d48eaa251ea6fb076e60114deac472b775a1be1a82f055120056bb0ac51758"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WsClient: ClassTooLong \u2014 945 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 545 over it, 2.36\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":"lib/core/services/ws_client.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ab502d791468e24db7087570b5596bafdf8c17de8b6bea14522947cf938e0b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DesktopGatewayClient: TooManyMethods \u2014 69 methods. The bar is 30 methods; this is 39 over it, 2.30\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":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"184575204063068a8bf81169a8855485228619e20b156fee331c4f3af7a7ce65"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/ws_client.dart: FileTooLong \u2014 1122 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: WsClient (251-1656). The bar is 500 significant lines; this is 622 over it, 2.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ws_client.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c31ee96cd376af7e8f43e4d40f866346ebe5dc5de3d1eeeb31dc2822812be1a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NormalGatewayChatOwner: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"545930514ab29e9e8edaaedb09533ac459aecb6c731d74417ded89edf49ed0e7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DashboardClient: ClassTooLong \u2014 843 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 400 significant lines; this is 443 over it, 2.11\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":"lib/core/services/connection_manager.dart"},"region":{"startLine":2496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4332feaf2c4381c049b09f80277734f076380791718212fdc0f27a579ab6d28"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._submitMessage: MethodTooLong \u2014 _submitMessage runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4781}}}],"partialFingerprints":{"codehealthFindingId/v1":"686b11213646551d281c72734c7c5f087eb19caf75969011617384f4e3bb9faa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DashboardClient: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.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":"lib/core/services/connection_manager.dart"},"region":{"startLine":2496}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea4b9e4d0dbbfc07f744f251a5a8adbfaa9725652d758d55dfbd79a3f3ce9f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/desktop_gateway_client.dart: FileTooLong \u2014 1003 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: DesktopGatewayClient (34-1447). The bar is 500 significant lines; this is 503 over it, 2.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5eebfea7c117f93211edf11a45b096a4bf630a2ef6eaeff53b6f7c5a5aaad5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeScreenState._showDashboardAuthDialog: MethodTooLong \u2014 _showDashboardAuthDialog runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04e562d1f790e018a6808bc32d4b97ccd34dcb69b9e4d0dfed2224ef60c5e50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _WorkspaceScreenState: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"2401f8ad8cccc8b42df87e258e2d0b9ed37dc6c4330ff8bba71298030372a089"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _AddDialogState: ClassTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 349 over it, 1.87\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":"lib/main.dart"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1361e6a0a413ad1cc274ee3be9d20cd839b4ceb035405b54425fe5b1e8857b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._applyNormalSnapshot: MethodTooLong \u2014 _applyNormalSnapshot runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c528fcf2f5a884436f78c745c5410d3d5bf777fb5863fb8aa8799bc21a19c941"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _SessionListScreenState: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\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":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f9f27d39308801563299cdcabda2cc80651eb3a29ccb6adf56922f15c7b14a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GatewayTurnCoordinator: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c69fb51effe29b8212fffac281a79dea13f9d20293bb9c364e9aa518c206bf0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProjectsRepository: ClassTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 316 over it, 1.79\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":"lib/core/services/projects_repository.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cf2831708452a0a3c5f1fed9d9ed9f229b06a7f6fcf756cfd4029c4f78990e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState.build: MethodTooLong \u2014 build runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":6806}}}],"partialFingerprints":{"codehealthFindingId/v1":"2788bce614e750257f02793e8bf123a1bac807d583136e6cd4ef53c0b0e08fdb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConnectionManager: ClassTooLong \u2014 708 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 308 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec83470f5993d21772f922c0a81d27b579bf4dcd72f9a491f6fb26eda5abff2f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HomeScreenState: ClassTooLong \u2014 702 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 302 over it, 1.76\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":"lib/main.dart"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ca78650c29200d464529217b477ce17667dce0fb04f68a90f84ffc5dc17699"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HermesAppState: ClassTooLong \u2014 701 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 301 over it, 1.75\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":"lib/main.dart"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9823597338f107c2a960295843d18fe4d172127f0cf6ace2c3763cd83fa758ed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CronScreenState._buildBody: MethodTooLong \u2014 _buildBody 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":"lib/core/screens/cron_screen.dart"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baa8213e8493576c62fa4c7d29f2d2357de3db281d7e72e2eb274d0dda9a211"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/projects_repository.dart: FileTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: ProjectsRepository (224-1340). The bar is 500 significant lines; this is 328 over it, 1.66\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":"lib/core/services/projects_repository.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83464bf0ced24990cf19175738efdd7afe0fcc39b4345ffd72ce374768af411f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalGatewayChatOwner.submitPrepared: MethodTooLong \u2014 submitPrepared 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":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"52486eaae42851c5b72b487490f04595c967463632944a54c2717a1ee1174e36"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WsClient: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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":"lib/core/services/ws_client.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9433aa1cdc93af0c296716bbc04034f12c40e9e905f2cc48cbc4d70fc012007"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._sendRecoverableGatewayMessage: MethodTooLong \u2014 _sendRecoverableGatewayMessage runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a833fffda009e7ed44d1c1477051001a43b1b14538fdc0ea5118c694c566444"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkspaceSessionsScreenState._buildLoaded: MethodTooLong \u2014 _buildLoaded runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d66993901c3ab5c21e7abbb037ecdcbe8a2e9fdddf8adbeaf21102fe281014"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/attachment_document_service.dart: FileTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 308 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_document_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26851c1c0bc49c9587d375a237c559e31380826154d2654252aed0573768ad7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayChatClient.sendMessageStreaming: MethodTooLong \u2014 sendMessageStreaming runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c1784b6b3569147d9f32682f5da9447422c02f9f793967368eff309d2bd063"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MobilePushSettingsState.build: MethodTooLong \u2014 build 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":"lib/core/widgets/mobile_push_settings.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf2102f527ead7a641d27b8f8e68c8077259ef917841efd509615e91926a30a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/gateway_turn_journal.dart: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 253 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4492795556f32af968162c33811e63b26991d6361b978181d4bd601baa8499"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _CronScreenState: ClassTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 195 over it, 1.49\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":"lib/core/screens/cron_screen.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f52b0bde9759093d16b4671eba836824e05531878299455e26b9ebc5beac3ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NormalGatewayChatOwner._settle: MethodTooLong \u2014 _settle runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":2505}}}],"partialFingerprints":{"codehealthFindingId/v1":"31359d2e979b791b736821603a5a0eb2d0455d42436e328ee084efed3afa8495"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkspaceSessionsScreenState: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c794be1e37bd8dcbad03702a124b8e6b954ce8645ad262bb643ad483687d574"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MobilePushService: ClassTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 185 over it, 1.46\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb137f1dc5792f7aab4d5b68b30b8d3c40c2f3311136c48be94920ae01d7e44"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MobilePushBridge.command: MethodTooLong \u2014 command runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushBridge.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21114c1c916481461d2f2f4bd13b71a4f217380b50581a9f032840bd5069aff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState.initState: MethodTooLong \u2014 initState runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"50205ae66a12ee24612c65fde8dbc226c3de9bde87fe82aaa0322f7225a3e9bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/turn_notification_service.dart: FileTooLong \u2014 706 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: TurnNotificationService (275-943). The bar is 500 significant lines; this is 206 over it, 1.41\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/turn_notification_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef0402061fff204fc39224b06c6df18f2c08b084f72823b5ede3a896d47c662"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProjectsRepository: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/projects_repository.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"2faf3185866b9af43103b318ba10ae2fcca048005de82bb510ad909271f0b5d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/hermes_sign_in.dart: FileTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 192 over it, 1.38\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":"lib/core/services/hermes_sign_in.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5833c3d2cf4fe5d1b12dae9ad9769d515b9a13198f88c966cd7c040af7e30b13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/gateway_turn_contract.dart: FileTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 187 over it, 1.37\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":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd89890d86d518117a127d3382f656df4013764e4c8d7baac6fe5466cc254f71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/project_detail_screen.dart: FileTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: _ProjectDetailScreenState (94-871). The bar is 500 significant lines; this is 183 over it, 1.37\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":"lib/core/widgets/project_detail_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be642da2b3b657e594e0aa8cb1216ed56edd4435ead1a1e5f70924d38f9b4f4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ProjectDetailScreenState: ClassTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 136 over it, 1.34\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":"lib/core/widgets/project_detail_screen.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"95312107ff8ced2ce8aa087a23cd088fe60b69c158e92931eca7071528b6a11c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WorkspaceSessionsScreenState._buildSessionRow: MethodTooLong \u2014 _buildSessionRow runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"275e9e4444e6b957f6462d32e16596fcbd2799db714e04ff64cc937b1fb9a899"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MobilePushService: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d947b6b8b75ca233f4d3b5be1289d40b9061da19df097c2e62d27f4bd2400de"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._sendDesktopGatewayMessage: MethodTooLong \u2014 _sendDesktopGatewayMessage runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5080}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbcb3fe0b1df931f3d168a089c0e2739201c119e70ddc0473f653c0ae396cbf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MobilePushService._refresh: MethodTooLong \u2014 _refresh runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b9299e44146045402d89477c8fc39a8519da85a0ebd8df98431964dc0a9df3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/settings_screen.dart: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 139 over it, 1.28\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/settings_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc65933d475a9201178c25fe6f488bc522bbc414d67d3551e7f2e7153e1c931a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AddDialogState._validateAndSaveOwned: MethodTooLong \u2014 _validateAndSaveOwned 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":"lib/main.dart"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14cef65eb66c82190cfc8aad6453fd5fc9a1c667d297e034c034824f1a4d20e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MessageBubble: ClassTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 104 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8360}}}],"partialFingerprints":{"codehealthFindingId/v1":"24886bf8f31fcc207169f0070f8e2649747f1ef8815c917218eaeaabfb484e4f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatModelPickerSheetState.build: MethodTooLong \u2014 build 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cdb365b1d22968c33bf6c054067ffae310341b7fc318688e7681020973e33e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HermesAppState._runNotificationNavigation: MethodTooLong \u2014 _runNotificationNavigation runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"lib/main.dart"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"35febf40e5fddde0532d8d5001ce99cba9e5ea012fdb5aa3bb9553fb65aef313"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._buildBody: MethodTooLong \u2014 _buildBody 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8063}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c2521d1edd494456a706642536f08415b7ddd994db485e2fba5eba01c8464f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/cron_screen.dart: FileTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: _CronScreenState (44-886). The bar is 500 significant lines; this is 119 over it, 1.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/cron_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b40ab5d79939c742a9df79bcd94a63d1eb58c877bc0fbee4a0f6656cb1893cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HermesAppState: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2c72504db63fab04cfbe390483713b653380553c7083650aff783dfafe04d5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState._buildBody: MethodTooLong \u2014 _buildBody 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":"lib/core/screens/settings_screen.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f70f9935c255a80f9b6ebef36957392fa225fa4b40f684e01edc9f8808361e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/mobile_push_service.dart: FileTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MobilePushService (39-816). The bar is 500 significant lines; this is 109 over it, 1.22\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8116c3bc161ef9edb1a5f1350d27151a7e1e5d5a4d49c7645c3ab6a23ad20b82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._handleDesktopGatewayEvent: MethodTooLong \u2014 _handleDesktopGatewayEvent runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5451}}}],"partialFingerprints":{"codehealthFindingId/v1":"e579d7a9f7459262eb855051065b56c79458fc8761f27c32b4081f1055c1ca4a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConnectionManager: 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fd4f7bc2ea6c0c690f4d7c34da9c4aac4f3037505a0d6abf678b3b7db1440e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayTurnCoordinator.submit: MethodTooLong \u2014 submit 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":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7b374405ceba79f077a27152d513982dc10dae78b29b63d9572f78e5618f21"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TurnNotificationService: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/turn_notification_service.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff4265ecb5fb4c02c63c44c65f6641f5068b9f3db47bf7d146c3b07bb448f0a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HandsFreeConversationController: ClassTooLong \u2014 464 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 64 over it, 1.16\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":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"919b6e360327d644b7193ac03d28b1a25ed35f1025d5e6ba2d43b628edd8a510"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AttachmentVideoPreviewState.build: MethodTooLong \u2014 build runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/attachment_video_preview.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e5031bb409cb298ff56753a7d3bd132bb3925b51bfc6c5c1745e53f015db81"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayTurnRecoveryCapability._fromRecoveryPayload: MethodTooLong \u2014 _fromRecoveryPayload runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1930b58bdd76c2d6a88d0b7e15c9f131f7a2543abd68b76facc06e4cc484a8b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MessageBubble._buildBubble: MethodTooLong \u2014 _buildBubble runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8910}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ce88793bde3c03686451e43942c4636f764c414318c84d1ff7b25e9c5850d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _WorkspaceScreenState._loadWorkspaceSessionsData: MethodTooLong \u2014 _loadWorkspaceSessionsData runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"b941fe227b2e1942ed17493b1e2173c6072e287cbdde43561c1919bd21083e33"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: theme/hermes_theme.dart: FileTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 64 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":"lib/core/theme/hermes_theme.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6274622e77e8a9f4f5e1b0b4e33451e85791063c8f44a7ddba73af5005b2dd81"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/projects_pane.dart: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/projects_pane.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3bfb0405052355044198d67a48c294b5efddf6e6e288e057bf552a9e7d5945"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._buildDisplayItem: MethodTooLong \u2014 _buildDisplayItem runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":7892}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe378546a33be94ff472953585ad2f9be69cb6d8a57cc3942fe9e9a96083ffbd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _DelegatedTaskTimelineState.build: MethodTooLong \u2014 build runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/delegated_task_timeline.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"627e50906b101940b834833e6a16f18d1392aa2c91d91fdbefadadb3a16d92e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controllers/hands_free_conversation_controller.dart: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: HandsFreeConversationController (119-704). The bar is 500 significant lines; this is 51 over it, 1.10\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":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc29a15453c28f208968662262faa0e6d31d32a9db393f85c7e088d17b806622"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HandsFreeConversationController: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8ad9083d46aafdbd0f913d8b865eba258ee948012f0f1bf324225447b8c1ef"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ApiClient: ClassTooLong \u2014 438 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 38 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c292dcbd2729dedd5c4e5c420ed804f48d14716cb3bcf165b47ec195067875"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._sendMessage: MethodTooLong \u2014 _sendMessage runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c424daa81dcc7e0871ee19a8663913209eef422347a41b41ab6e053fcc553dbe"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TurnNotificationService: ClassTooLong \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 33 over it, 1.08\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":"lib/core/services/turn_notification_service.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"891c5f916c1b6261723817157449b6186bb6abbad5b68d861835512caed31a60"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LegacyBackgroundMessage: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 23 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/legacy_background_message.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35748aa61ddb9184e60d9fb83666b629e959ea3f9524837ca3d1b722de900f4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ProjectsRootSettingsCardState.build: MethodTooLong \u2014 build 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":"lib/core/widgets/projects_root_settings_card.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd93ca30e76fa324c2bfb11607643d36d2c13407668f847f273413104f5d3e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CronScreenState._showJobDialog: MethodTooLong \u2014 _showJobDialog runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/cron_screen.dart"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"3686eb49a51d7f7fe1d4d9995278116a813c07b32e1c95a1fe7cf3031d2b7c67"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ShareTextReviewSheetState.build: MethodTooLong \u2014 build runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/share_text_review_sheet.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e538f189f98fedf763de20b258983d13387ba709eea136097e37d5d91d75b2f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/gateway_turn_application_controller.dart: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_application_controller.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2a81ade651ed5c3de8b11d2aa1379bd98360f1f8a84348a7c135449f8c7253"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NormalGatewayApplicationSession: ClassTooLong \u2014 402 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 2 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c278f571f131b7a0eef3486db2b75a11e0b46845976e192bc336a4ec1f03b54c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/delegated_task_history.dart: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/delegated_task_history.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c48bc7f9339b10e6f6de92a4fc9ef213cfd02ddf087451d3bf6c7e37af5dc10"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (67 shared lines): lib/main.dart:1756-1889 | lib/main.dart:1891-2141 \u2014 These two members are variants of one another: 67 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1de7162fbd2bcdb3d7468b3507fc6ef745c8268bf8e910dc650439a8dfd809"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (51 shared lines): lib/core/widgets/config_backup_card.dart:62-143 | lib/core/widgets/config_backup_card.dart:178-270 \u2014 These two members are variants of one another: 51 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/config_backup_card.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08910c45f86c1ead89a88193f87f6f2fd7f32eda178fdcc021d17604cc7c870"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): lib/core/screens/chat_screen.dart:5605-5663 | lib/core/services/normal_gateway_application_session.dart:2289-2348 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5605}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5edccf218ceeb3f5c9c12e3e0d3955bbf8bced60ba2e6162424180d86ddc99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): lib/core/screens/workspace_sessions_screen.dart:1196-1244 | lib/core/screens/workspace_sessions_screen.dart:1264-1335 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc313c04d54adc0300f13687bbf2a65957eac1ef4af39e70b388489676c43cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): lib/core/widgets/activity_pane.dart:368-427 | lib/core/widgets/home_pane.dart:365-427 \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":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf9660ea350fb88bd99f0ebc529b54d2179d2d34f93d2124b54e12f8da21f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/core/models/connection.dart:217-249 | lib/core/services/config_backup.dart:196-220 \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":"lib/core/models/connection.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"61319508b8365122093cab1fc686a7d5bbb12e25aafec0f80036ade18d7feb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): lib/core/widgets/chat_density_settings_card.dart:91-149 | lib/core/widgets/text_size_settings_card.dart:64-109 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/chat_density_settings_card.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"827a63d901465ce77b8484f6e4a69f1cee9ec8ce24525b44d90c1fd4e1396823"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/core/services/attachment_controller.dart:215-262 | lib/core/services/attachment_controller.dart:264-294 \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":"lib/core/services/attachment_controller.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7e82a6e1778473b5a3888f3f24e391c4e9eedf9e6437debe1edd8f413e4657"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lib/core/controllers/voice_recording_controller.dart:55-90 | lib/core/controllers/voice_recording_controller.dart:114-156 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"439f8678bb00a837b57a6513173bb1304c04410c017e7f0926870ec10e6dbb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): lib/core/widgets/config_backup_card.dart:313-349 | lib/core/widgets/config_backup_card.dart:351-391 \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":"lib/core/widgets/config_backup_card.dart"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c78e276c9f131e829072c279b810c9b84fdc415d9ebc8b659119888bc49bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/core/widgets/hermes_components.dart:223-253 | lib/core/widgets/hermes_components.dart:280-317 \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":"lib/core/widgets/hermes_components.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4aeb876b8adb2b8cc187315a406eb9d400a0ce802627d28fc9f70233d3733a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): lib/core/models/hermes_project.dart:64-92 | lib/core/models/project_sessions_tree.dart:148-173 | lib/core/models/projects_tree_overview.dart:106-136 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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":"lib/core/models/hermes_project.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7105a885e3abfb70664f848554af0da217f7f73c63ae2a81c8713a92f78709ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/core/widgets/projects_pane.dart:769-794 | lib/core/widgets/projects_pane.dart:817-841 \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":"lib/core/widgets/projects_pane.dart"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f19cdb2137d5da52f2021c34df240a2d404dcad260001ed3d55af20dfbfbee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): lib/core/services/composer_draft_store.dart:99-124 | lib/core/services/normal_gateway_pending_store.dart:105-128 | lib/core/services/operational_activity_store.dart:128-152 \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":"lib/core/services/composer_draft_store.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb71cc357b7c37528eaf3ccce87b6898e99744c342fcbafe3589c21ab742068"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): lib/core/services/connection_manager.dart:2850-2875 | lib/core/services/connection_manager.dart:3279-3312 | lib/core/services/connection_manager.dart:3314-3338 | lib/core/services/connection_manager.dart:3340-3373 \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":"lib/core/services/connection_manager.dart"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c99d9385788bca4bda399373319cb63eb06a9aebea582a539086c1251a4d13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): lib/core/widgets/project_detail_screen.dart:274-295 | lib/core/widgets/project_detail_screen.dart:334-360 | lib/core/widgets/projects_pane.dart:235-261 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"lib/core/widgets/project_detail_screen.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3de9771c6cbe85685b018bd63ea34b610dfde3c5394ccc1b266d1282d379ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/core/widgets/activity_pane.dart:273-299 | lib/core/widgets/home_pane.dart:274-297 \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":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd164ae5b67e55fea6b5747c576cce9f16fa930ee754df0c020281f834848b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lib/core/services/gateway_turn_coordinator.dart:947-976 | lib/core/services/gateway_turn_coordinator.dart:1357-1386 \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":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"7272e311a7eab839e577199a2def3aea593f090aafb8d58750d83ddf75f07215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/core/services/background_work_prefs.dart:72-89 | lib/core/services/turn_notification_service.dart:380-396 \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":"lib/core/services/background_work_prefs.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72c280fe6e861f0388c53ee9a0e28a0b6809857f0b40d31ce49c5ac461c73d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): lib/core/services/chat_assets_client.dart:61-83 | lib/core/services/memory_repository.dart:15-37 | lib/core/services/remote_files_client.dart:118-146 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/chat_assets_client.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"65edcfcb7f480deefb075d1e31f9fabbe215c1161de4ff509596ff5541486cf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 24\u002B corresponding lines): lib/core/widgets/activity_pane.dart:330-358 | lib/core/widgets/adopt_project_folder_sheet.dart:376-399 | lib/core/widgets/home_pane.dart:328-356 | lib/core/widgets/project_detail_screen.dart:877-901 | lib/core/widgets/projects_pane.dart:587-615 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11d4a8dcd4a9e75c26104f30c5930763d97c74e483db67126ccccfe58940ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/core/widgets/theme_palette_picker.dart:66-81 | lib/core/widgets/theme_palette_picker.dart:201-215 \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":"lib/core/widgets/theme_palette_picker.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8af4eb8cdd55d3550c200324bd4b87b52e0eec2691603f8fee473e9e6db372f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/core/screens/cron_screen.dart:92-115 | lib/core/screens/skills_screen.dart:35-54 \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":"lib/core/screens/cron_screen.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd5b3854326d53792261e0078280a9a22e13b2e7435398670053bc602693beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/core/screens/provider_usage_screen.dart:79-95 | lib/core/screens/workspace_screen.dart:1168-1184 \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":"lib/core/screens/provider_usage_screen.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd2315865c01c2eeb56b174a5eb692069b63b33143ecef59a40a91c00157ea8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/core/services/desktop_gateway_client.dart:1210-1224 | lib/core/services/desktop_gateway_client.dart:1226-1240 \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":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a565ed802648a4b6e7a3f7a084681b15892df5488b2f168bd4ce16b34b5438"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): lib/core/screens/files_screen.dart:62-85 | lib/core/screens/files_screen.dart:87-108 | lib/core/screens/memory_screen.dart:272-292 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"lib/core/screens/files_screen.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4c6da1af2d3be9519727bf17274d545a72437e95915a034724280a9bc1ecde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/core/screens/workspace_screen.dart:499-521 | lib/core/screens/workspace_screen.dart:523-539 \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":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a4f0c22fcaee64e08b5e3b5490aed5181fecea68820f7cd036fbff58f7859d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/core/services/normal_gateway_pending_store.dart:150-165 | lib/core/services/normal_gateway_pending_store.dart:167-176 \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":"lib/core/services/normal_gateway_pending_store.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"586ff22f424edd5c90e9cdf9b9206f4c8248db7f5e575d4faf39e0359d391c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/core/widgets/project_detail_screen.dart:317-332 | lib/core/widgets/projects_pane.dart:271-284 \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":"lib/core/widgets/project_detail_screen.dart"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f2aeb46265a231723f0228e17e0e03eecf6b0d505445c25afcfcda9fe71721"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/core/screens/provider_usage_screen.dart:129-145 | lib/core/screens/provider_usage_screen.dart:147-165 \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":"lib/core/screens/provider_usage_screen.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b591af495cc7c1f3380fd862dad2f21c51c504ca8af23e68e2083b5f009702b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): android/app/src/main/kotlin/com/hermesagent/hermes_android/HandsFreeVoiceEngine.kt:122-132 | android/app/src/main/kotlin/com/hermesagent/hermes_android/HandsFreeVoiceEngine.kt:134-144 \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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/HandsFreeVoiceEngine.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfe5524123d8fa0f0a0f0baec2b055fe13d2cf679c1af73960d186eb66df03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/core/controllers/voice_recording_controller.dart:92-112 | lib/core/controllers/voice_recording_controller.dart:178-196 \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":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab90cdb6cebf79e181d739ee609e15d8f5d7a03985063a83276abe7ec8b72d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/main.dart:554-570 | lib/main.dart:1399-1417 \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":"lib/main.dart"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f199d8e81a9ddb161f24dce66a720fcc44a87d19c4f05a959c15757ea8325c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/core/models/gateway_insight.dart:16-32 | lib/core/models/gateway_insight.dart:106-124 \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":"lib/core/models/gateway_insight.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"44696092ea7a3840da71ebb79e5a02c9487160b3e93c338a5081979e54dfb21a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): lib/core/screens/chat_screen.dart:5986-6008 | lib/core/screens/chat_screen.dart:6010-6027 | lib/core/screens/chat_screen.dart:6029-6046 \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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5986}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a6435ad8c2cd962f832aa671cca4336f131e3ab86c9d1bb0a415733e4dc4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/core/screens/chat_screen.dart:2946-2957 | lib/core/screens/chat_screen.dart:2959-2977 \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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2946}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a42bbe94ec8f627f48f733521f1964b15838b8d310c466361d6720f51fc2837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/core/models/hermes_project.dart:22-33 | lib/core/models/project_sessions_tree.dart:52-65 \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":"lib/core/models/hermes_project.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5caa4da1a5ba3dc5f1beb61c014b88be95bc97c1d6b7ecbbcddc1bb934fccf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/core/widgets/projects_pane.dart:176-189 | lib/core/widgets/projects_pane.dart:222-233 \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":"lib/core/widgets/projects_pane.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"297cb4eb5dd55d44c4219976531c0e7deab0cb6b5d022d0f88dabce3889525f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/core/services/gateway_turn_application_controller.dart:593-613 | lib/core/services/gateway_turn_coordinator.dart:364-382 \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":"lib/core/services/gateway_turn_application_controller.dart"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e33ff151dc122d304381eaecf357e2aefcc07103be18280dade5246c416cd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/core/widgets/auxiliary_models.dart:37-48 | lib/core/widgets/fallback_models.dart:47-61 \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":"lib/core/widgets/auxiliary_models.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0ac1d9d8ea54ad5781ecbad89cb968ef644d8a3310cd3789f7fc5a0e79bc5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/core/services/client_certificate_service.dart:652-660 | lib/core/services/client_certificate_service.dart:662-670 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/client_certificate_service.dart"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"566150de673ca0d7da04b4e3fa719afdb1f89e592222f3488b3151a743eb2c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/core/widgets/gateway_activity_card.dart:89-105 | lib/core/widgets/gateway_insight_card.dart:40-57 \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":"lib/core/widgets/gateway_activity_card.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"288f3359569b37a09076ced56dd25d60590c6b6ba9eca8d6143f0f14ac05bc79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): lib/core/models/gateway_activity.dart:324-331 | lib/core/models/gateway_activity.dart:398-405 | lib/core/models/gateway_insight.dart:42-49 | lib/core/models/gateway_insight.dart:126-133 \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":"lib/core/models/gateway_activity.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"75843b46a74f6a690f54da30d874bda5d2cbdf60346ff982234e3f7b0628557c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/core/services/turn_notification_service.dart:136-157 | lib/core/services/turn_notification_service.dart:159-179 \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":"lib/core/services/turn_notification_service.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7996874c14aca637da077bf3629484e6e139a9816249f58d84d60b63cd4af1c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/core/screens/chat_screen.dart:7658-7672 | lib/core/widgets/attachment_draft_tile.dart:128-145 \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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":7658}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4db7fc59911b4343de8874273dc8677bb17cbf27cccd73efc1d29c857eaec5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/core/widgets/media_artifact_card.dart:122-134 | lib/core/widgets/media_artifact_card.dart:205-220 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/media_artifact_card.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9fc67db98cb18ac4d041b9d5e5692373aaae9bd4188cdb098abdd197297b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/core/services/dashboard_api_client.dart:331-346 | lib/core/services/dashboard_api_client.dart:348-359 \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":"lib/core/services/dashboard_api_client.dart"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"82222317cc2470905b44a258f0136354979a6489b044781817a392b466451165"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/core/models/legacy_background_message.dart:95-103 | lib/core/models/legacy_background_message.dart:205-210 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/legacy_background_message.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8053c753cdfcee8caa43b3dc16a1b3de2c9adbdabc5718710f353da8c6be8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/core/services/gateway_turn_application_controller.dart:536-553 | lib/core/services/gateway_turn_application_controller.dart:555-569 \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":"lib/core/services/gateway_turn_application_controller.dart"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a3c0a0cf5706ea0622bcd386d043d4258e6681e9b8cf5f0c6de97bb24d46fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/core/screens/model_management_screen.dart:267-284 | lib/core/screens/skills_screen.dart: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":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e233a03ee3dcdf25c40b453d09438f20ea2bdb0a249f7374f5eab03b833bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): lib/core/services/connection_manager.dart:1705-1711 | lib/core/services/connection_manager.dart:1713-1719 | lib/core/services/connection_manager.dart:1833-1840 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"lib/core/services/connection_manager.dart"},"region":{"startLine":1705}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fee46de8368d79dca1b555aadba8fb202301ffff1555945f08d2c6e2e8d64f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/core/services/projects_repository.dart:916-923 | lib/core/services/theme_preference.dart:77-81 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/projects_repository.dart"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fadb81c96fea16e6a5fac2be89560f40fb23106fa138b0e90a3202f9faae60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/core/models/client_certificate.dart:64-77 | lib/core/services/config_backup.dart:48-56 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/client_certificate.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d15cb001d79ea9c8e879e9bfee7c17814f2a95ae79fb25ef54a2fe7f82c605"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/core/screens/memory_screen.dart:42-54 | lib/core/screens/nous_portal_screen.dart:39-49 \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":"lib/core/screens/memory_screen.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea18c56b9107dabedacb90a3136df7f3121f6883b812c72b1dbbcfe3c9153373"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/core/services/android_launch_intent_service.dart:16-27 | lib/core/services/android_share_intent_service.dart:81-93 \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":"lib/core/services/android_launch_intent_service.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a934b74476c9b7d97d9db025b97cfea7eb9e98ea28957fe91798d4c5f381ade4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/core/services/chat_model_override_store.dart:89-94 | lib/core/services/composer_draft_store.dart:74-79 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/chat_model_override_store.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"206680af51fb924ed0ca17ed801036d0c39b7c6ce0f80f04b47f2e37b9d8e41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/core/models/hermes_project.dart:140-147 | lib/core/models/projects_tree_overview.dart:221-228 \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":"lib/core/models/hermes_project.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bd2dbd99acd2eaccbc5c7112e3e7850dd1e5cc29cb2a260fbe6d6327795aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/core/services/projects_gateway_client.dart:305-311 | lib/core/services/quick_chat_store.dart:209-215 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/projects_gateway_client.dart"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe748cc81b5a039a06860b4fbb693fc160a8bc3d0aa6a5317d63d75443a53bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): server/mobile-push/mobile_push/inbox.py:27-30 | server/mobile-push/mobile_push/store.py:102-106 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/mobile_push/inbox.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c4dc37f01b1b7ef0d086bc6a60f336568fd4683d4106a390813a463c390efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/main.dart:86-93 | lib/nextgen/ui/capabilities_page.dart:37-41 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f81ecb5e9b51e284e4de45025471920a9ef904f371e361b0646a972258b2eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): lib/main.dart:1769-1805 | lib/main.dart:1928-1964 \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 \u0060lib/main.dart:1769\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc60cd057e90b0741bc6a11a28a35c1a5aeac01d0b87e3fcce686391982c644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): lib/core/widgets/activity_pane.dart:330-349 | lib/core/widgets/home_pane.dart:328-347 | lib/core/widgets/projects_pane.dart:587-606 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/widgets/activity_pane.dart:330\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":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"3679025417f92c6214e8e55b692a37bd717616ca70bd9554b390af12e1f37be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/core/screens/chat_screen.dart:5633-5652 | lib/core/services/normal_gateway_application_session.dart:2319-2338 \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 \u0060lib/core/screens/chat_screen.dart:5633\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5633}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea763e88e8cd918ff68ab1e017ce415dec79ca4a7c46bcbcf0c0b1563eefc806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/core/widgets/config_backup_card.dart:116-134 | lib/core/widgets/config_backup_card.dart:242-261 \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 \u0060lib/core/widgets/config_backup_card.dart:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/config_backup_card.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca27d847a6afaf68c6676d1bf381a027488d8518714bd969e1ce18651d1b014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/main.dart:1869-1887 | lib/main.dart:2115-2133 \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 \u0060lib/main.dart:1869\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"c459027d4ce9a067525dd7271b5c4ce42f86223c88a2b4e33eb8dc2e254305cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/core/widgets/config_backup_card.dart:87-104 | lib/core/widgets/config_backup_card.dart:194-211 \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 \u0060lib/core/widgets/config_backup_card.dart:87\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 after the matched lines, \u0060lib/core/widgets/config_backup_card.dart:212\u0060 calls \u0060_submit\u0060 and \u0060lib/core/widgets/config_backup_card.dart:105\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":"lib/core/widgets/config_backup_card.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4aa1414b0772a7aea78fabd61a0800016e5053d1f90b63d724b69e45f61a4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lib/core/screens/chat_screen.dart:2322-2338 | lib/core/screens/chat_screen.dart:2359-2374 \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 \u0060lib/core/screens/chat_screen.dart:2322\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"37eba91395284cf336377ac76f220ef58baa9ca528fc6e553d1b5ef982b6e4fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/core/screens/chat_screen.dart:5614-5630 | lib/core/services/normal_gateway_application_session.dart:2298-2314 \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 \u0060lib/core/screens/chat_screen.dart:5614\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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5614}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4eba89079413ee465e8f83bbad69d5f8ef85a0d375ba45e378a632d75fdfd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/core/widgets/activity_pane.dart:308-324 | lib/core/widgets/home_pane.dart:306-322 \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":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e30bdbe996cda91356f54583840c3c5789558148cf281d775bd12e8dcf7b68f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lib/core/screens/workspace_screen.dart:1039-1053 | lib/core/screens/workspace_screen.dart:1855-1867 \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":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"6162e05866382e3607e3b35cc4714dc615325b1521becbe37b363b66e27c687c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/core/services/attachment_controller.dart:218-232 | lib/core/services/attachment_controller.dart:265-278 \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 \u0060lib/core/services/attachment_controller.dart:218\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_controller.dart"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bceadebd6c4d52680a63af7317c3289e5a56e938637d37a9e6273d7fe136a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): lib/core/services/composer_draft_store.dart:112-124 | lib/core/services/normal_gateway_pending_store.dart:116-128 | lib/core/services/operational_activity_store.dart:139-152 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/services/composer_draft_store.dart:112\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":"lib/core/services/composer_draft_store.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b34bd712a8936bb604295b7705b2b79c1f5dbe0aa92ad3f717e4c8186b49b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): lib/core/models/connection.dart:218-231 | lib/core/services/config_backup.dart:197-208 \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 \u0060lib/core/models/connection.dart:218\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":"lib/core/models/connection.dart"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"087540475269761574ce7009039efedee03785454f44d3b960c1da73f6b9cc2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/core/services/gateway_turn_coordinator.dart:870-883 | lib/core/services/gateway_turn_coordinator.dart:1845-1858 \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 \u0060lib/core/services/gateway_turn_coordinator.dart:870\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abaf2fdc1b168838f47da4fb60a90e366ca2e6dc079d997029522a778091ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/core/widgets/config_backup_card.dart:62-75 | lib/core/widgets/config_backup_card.dart: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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/widgets/config_backup_card.dart:62\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":"lib/core/widgets/config_backup_card.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f15d652468f83fe2f731e2930244a7e18587b888f508c94401075534fb370d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/core/services/chat_assets_client.dart:69-81 | lib/core/services/remote_files_client.dart:129-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/chat_assets_client.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f72c68d2e1fb4cbf219df175514ce09accda63342d5a349073a1abe5b0d31d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/core/widgets/gateway_clarify_dialog.dart:195-207 | lib/core/widgets/gateway_sensitive_prompt_dialog.dart:91-103 \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 \u0060lib/core/widgets/gateway_clarify_dialog.dart:195\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/gateway_clarify_dialog.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"96677dc0400a8ed261e5cbd6fde33413c240493a23e367e8198989ae4258e033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/core/widgets/project_detail_screen.dart:281-293 | lib/core/widgets/projects_pane.dart:242-254 \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 \u0060lib/core/widgets/project_detail_screen.dart:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/project_detail_screen.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"346b08aee838651115ec40aa489483f552c07bc4b3e61e67e54bb1fb536bb505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/core/screens/provider_oauth_screen.dart:73-84 | lib/core/screens/provider_usage_screen.dart:84-94 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_oauth_screen.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa964cbae616073707827043d6a2a1ef2d6abd252652ac05a95cb0019f24a34d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/core/services/connection_manager.dart:3280-3291 | lib/core/services/connection_manager.dart:3341-3352 \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 \u0060lib/core/services/connection_manager.dart:3280\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":3280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6c228878fb4205bca44c15ee403c4273d52f20e219e22db1aa7514407de58d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/core/services/desktop_gateway_client.dart:1211-1222 | lib/core/services/desktop_gateway_client.dart:1227-1238 \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 \u0060lib/core/services/desktop_gateway_client.dart:1211\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f9200aa5365340dda6071f4cc7a689c38da89174eff2b699f7f8e990e88fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/core/widgets/theme_palette_picker.dart:70-81 | lib/core/widgets/theme_palette_picker.dart:205-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/widgets/theme_palette_picker.dart:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/theme_palette_picker.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e677e84cfcd70075df586387fa4a67a079cbd35cccba14ef0da4d5dc1fcd2be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/core/screens/session_list_screen.dart:820-830 | lib/core/screens/workspace_sessions_screen.dart:1310-1322 \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 \u0060lib/core/screens/session_list_screen.dart:820\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":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f3038044de4963a59e124944f27a516a991410bf5a8fe4720d187d23fcd715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/core/services/normal_gateway_pending_store.dart:57-67 | lib/core/services/operational_activity_store.dart:72-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_pending_store.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecffee9edb4c118e90d53a2270348c2f17994a8ba261ea44e89b7f63d1632a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/core/widgets/config_backup_card.dart:335-345 | lib/core/widgets/config_backup_card.dart:377-387 \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 \u0060lib/core/widgets/config_backup_card.dart:335\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":"lib/core/widgets/config_backup_card.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acd726b9c5d83c9f22e0495b02d3fa8ff838b619fc2e521e099c2155fd96222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/core/widgets/gateway_approval_dialog.dart:145-155 | lib/core/widgets/gateway_sensitive_prompt_dialog.dart:94-104 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/gateway_approval_dialog.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"810f7b8b2615d9a8cfbe31f1bfd0958742361d49a0db64b84177b7d32185d6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/main.dart:1813-1823 | lib/main.dart:2023-2033 \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 \u0060lib/main.dart:1813\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead0aef26d73f186f6d4d1f9b08d8f97e17f8688b976c6a1b2cfb9855fdd877a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/core/models/project_sessions_tree.dart:162-171 | lib/core/models/projects_tree_overview.dart:124-133 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/core/models/projects_tree_overview.dart:134\u0060 calls \u0060_scopedIds\u0060 and \u0060lib/core/models/project_sessions_tree.dart:172\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":"lib/core/models/project_sessions_tree.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b1a61f54dc0f22accab546017a9bdd9ebef867b00cd7416b465b7134c6106f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/core/screens/chat_screen.dart:8086-8095 | lib/core/screens/cron_screen.dart:658-667 \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 \u0060lib/core/screens/chat_screen.dart:8086\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":8086}}}],"partialFingerprints":{"codehealthFindingId/v1":"845f41c8bc46f0f53db530c72e8fe9f488743a13e36c88871c18a1909c7bf639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/core/screens/cron_screen.dart:647-656 | lib/core/screens/skills_screen.dart:75-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 \u0060lib/core/screens/cron_screen.dart:647\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":"lib/core/screens/cron_screen.dart"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03d65bd35caa885cc9c8cc0553d8dc2ec85d5c30ff35465843aae77442d74c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/core/services/connection_manager.dart:3090-3099 | lib/core/services/connection_manager.dart:3315-3324 \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 \u0060lib/core/services/connection_manager.dart:3090\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":3090}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c24c0223f8766a460ebe4597e5be1bde658bca76508480147158e4836aa2a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/core/services/attachment_draft_service.dart:559-567 | lib/core/services/attachment_draft_service.dart:570-578 \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 \u0060lib/core/services/attachment_draft_service.dart:559\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_draft_service.dart"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dc32844a212c9856a54aa8febfdee1c462828031cfb1e22397aa6ada348b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/core/widgets/project_detail_screen.dart:318-326 | lib/core/widgets/projects_pane.dart:272-280 \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 \u0060lib/core/widgets/project_detail_screen.dart:318\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/project_detail_screen.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a87d548b544dc35f9981ac96cf28ca16f126968b8da6ed27c69a911e9437039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/core/controllers/voice_recording_controller.dart:77-84 | lib/core/controllers/voice_recording_controller.dart:143-150 \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 \u0060lib/core/controllers/voice_recording_controller.dart:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d266d113857f473a517310fd13ff520140c273a5ae25e9684c99f1ab7c203f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/core/services/connection_manager.dart:749-756 | lib/core/services/connection_manager.dart:768-775 \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 \u0060lib/core/services/connection_manager.dart:749\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"4945c93b87e473632199ff9875a3350f711bfdf7d3f9be5230a5bca4e7db5c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/core/screens/provider_oauth_screen.dart:74-81 | lib/core/screens/provider_usage_screen.dart:84-91 | lib/core/screens/workspace_screen.dart:1171-1177 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/core/screens/provider_oauth_screen.dart:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_oauth_screen.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73cb97942d5defb3062a98e235ddf9b8435f059f88c9e25f87ca1f87633541f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/core/models/gateway_activity.dart:325-331 | lib/core/models/gateway_activity.dart:399-405 \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. 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":"lib/core/models/gateway_activity.dart"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac621fcff43a1cb96229c0f451d7a2017ce4180d24771ab9198958ebf0b2318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/core/models/connection.dart:234-239 | lib/core/services/config_backup.dart:211-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/connection.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"314b5d8c18482ab5bc0bf5db7237bfc16e74924c5485f9c8b7040654c4b22ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/core/screens/model_management_screen.dart:74-79 | lib/core/screens/provider_usage_screen.dart:72-77 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ba3362709a620ac98002fda4bb83c8d4e2041e7d77181a980df35079fe9abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/core/services/capability_registry.dart:169-174 | lib/core/services/projects_gateway_client.dart:298-303 \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":"lib/core/services/capability_registry.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"689c892617e08c7bc1bf5bd0fe90b48f9a0dbb9c743e9fdf3b203cd43bf2d154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/core/services/gateway_turn_coordinator.dart:475-479 | lib/core/services/gateway_turn_coordinator.dart:1926-1930 \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":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1789260631249da3ab3b2d610a5c23beba40d0c1b927f566dad042ed184d078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/app/src/main/kotlin/com/hermesagent/hermes_android/HandsFreeVoiceEngine.kt:123-130 | android/app/src/main/kotlin/com/hermesagent/hermes_android/HandsFreeVoiceEngine.kt:135-142 \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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/HandsFreeVoiceEngine.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcedaea58ed651ff0e33bb0158d402ab8ac6e87b80f22ac778985feb52f2a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): scripts/verify_play_bundle.py:124-133 | scripts/verify_release_apks.py:343-351 \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":"scripts/verify_play_bundle.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"1726daf93458298b562608c4297d770b817da8300e175bc30533e0a2d19426b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): scripts/attach_path_probe.py:31-45 | scripts/legacy_attach_probe.py:22-31 \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":"scripts/attach_path_probe.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e24eaeabc4614679752004ebaa56aa16baaf74ad0b08096f2ad1166bba3280"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): tools/capture_cron_prompt_fixture.py:29-36 | tools/capture_internal_message_fixture.py:36-43 | tools/capture_lcm_summary_fixture.py:30-37 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/capture_cron_prompt_fixture.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcef5d20c9ba692f6042550608f1b71aefa003559f252f31afa7613c5cba3bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): scripts/attach_path_probe.py:33-42 | scripts/legacy_attach_probe.py:23-29 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/attach_path_probe.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa46754269618db430e8cf8a5fd698817018cc2ac02c42e76b832f73be87641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): tools/capture_cron_prompt_fixture.py:29-34 | tools/capture_internal_message_fixture.py:36-41 | tools/capture_lcm_summary_fixture.py:30-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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/capture_cron_prompt_fixture.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfc597cd0056e176e35114575c31a72d3750067d159c91e587b42094b97a641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/prepare_voice_inputs.py:31-35 | scripts/verify_play_bundle.py:25-29 \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":"scripts/prepare_voice_inputs.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23b9c5a68a790113c108e7b2c81cd45f25b9045dfe96a1e2078b8fdd8051206"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ChatScreenState (LCOM4 9): _ChatScreenState\u0027s methods fall into 9 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 9 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":"lib/core/screens/chat_screen.dart"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a369ba65904ab19d878b3fb98d6ea5da4f0f31b3dc6bac3f48817dcea062411"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConfigBackupIo (LCOM4 5): ConfigBackupIo\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/config_backup_io.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1843ef8dc590480f756666087364a6e43ce7a840d1b572d44d2caff4d2e4da1e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HermesAppState (LCOM4 4): HermesAppState\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":"lib/main.dart"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2047425ae160404968ac1f0528ca1a8073705d15f70f70887f34133c1cc1fe9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HomeScreenState (LCOM4 4): HomeScreenState\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":"lib/main.dart"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"160eb85fd0991d6d20f792b1db0c31f9d36749ab832a1d04ab0a774a84c0754c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _SessionListScreenState (LCOM4 4): _SessionListScreenState\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":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed70d6dbe0a1ff7fc095a83a1806ff0ec9decbeccc512ca660c5a8088f60507c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _WorkspaceScreenState (LCOM4 4): _WorkspaceScreenState\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":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"45760e3ed523b2122cde1cb2d27158c1d196b7a59456b83792754687e06a7e50"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _DelegatedTaskTimelineState (LCOM4 4): _DelegatedTaskTimelineState\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":"lib/core/widgets/delegated_task_timeline.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f896eea13757d25f9e26f950e07e50d45e90a2a65b031fd302088f5c75274f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/screens/chat_screen.dart: lib/core/screens/chat_screen.dart changed 144 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 83 in _ChatScreenState._buildInputBar at line 7111. 99 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/chat_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":7111}}}],"partialFingerprints":{"codehealthFindingId/v1":"15034a8faf049cbd77676bfeeb6cd8ee12155bae935665924fcae618dc1ad106"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/normal_gateway_application_session.dart: lib/core/services/normal_gateway_application_session.dart changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 119 in NormalGatewayChatOwner._event at line 1851. 34 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/normal_gateway_application_session.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_application_session.dart"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"66556ca7b926dee0dcd6056075d51c0c04b68b424538265b201bd706db3ea957"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/main.dart: lib/main.dart changed 67 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in HermesAppState._runNotificationNavigation at line 1020. 45 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/main.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6293725e4ecc30616eb405dbc97736c533fbfa1a16bc7c869a700716259256"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/connection_manager.dart: lib/core/services/connection_manager.dart changed 72 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in GatewayChatClient.sendMessageStreaming at line 2136. 46 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/connection_manager.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5bdad63534e58dcf966479f1a38eb07fa5434a69da29bb9a7861d954436440"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/screens/session_list_screen.dart: lib/core/screens/session_list_screen.dart changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in _SessionListScreenState._buildBody at line 1515. 18 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/session_list_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/session_list_screen.dart"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f248bcd818ac5ddae94750b0e79416fd7abb5cacb37067157c97b70dc797b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/screens/workspace_screen.dart: lib/core/screens/workspace_screen.dart changed 83 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in _WorkspaceScreenState._loadWorkspaceSessionsData at line 1559. 31 of those changes were fix/bug commits, and the other 52 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/workspace_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8e5109049db77e902f7f5e9730ad00fba921340b2b633946de9e4170ea4a3e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/screens/workspace_sessions_screen.dart: lib/core/screens/workspace_sessions_screen.dart changed 34 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in WorkspaceSessionsScreenState._buildLoaded at line 1403. 19 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/workspace_sessions_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b2fca2dd9de01db60f7e3cbfa3e89c457955df7a2d95110637250a9506d01d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/desktop_gateway_client.dart: lib/core/services/desktop_gateway_client.dart changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in DesktopGatewayClient._handleServerRequest at line 936. 32 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/desktop_gateway_client.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/desktop_gateway_client.dart"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d22dc6608741582a0ace2a7dd0358f7bbf5d65639dba369c242571bd59fa3ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/mobile_push_service.dart: lib/core/services/mobile_push_service.dart changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in MobilePushService._refresh at line 469. 10 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/mobile_push_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bec590384d91406ce8aa09f112408831b0fce3483089d6df2f15aa942648c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/ws_client.dart: lib/core/services/ws_client.dart changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in WsClient._handleMessage at line 586. 19 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/ws_client.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ws_client.dart"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95aea1457191441a9cb067c642c877bf10bb6aa4c186fd4f3da81e4b6238c41"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/gateway_turn_coordinator.dart: lib/core/services/gateway_turn_coordinator.dart changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in GatewayTurnCoordinator.submit at line 609. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/gateway_turn_coordinator.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"960903b5c6069c3f7288bd6a7b8b7bfafbea7214615e5f2a954625bbbfd0929d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/delegated_task_history.dart: lib/core/services/delegated_task_history.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in DashboardTaskHistory.fetch at line 106. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/delegated_task_history.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/delegated_task_history.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8782e9b845141110171f7de5771f9fa05b47d2336a71611da756f5464c75d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/projects_repository.dart: lib/core/services/projects_repository.dart changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ProjectsRepository._create at line 444. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/projects_repository.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/projects_repository.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9709e41906961ca7fbd25d6daff29227de64c1ed3cbc1a00007b9deb45af29aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/screens/cron_screen.dart: lib/core/screens/cron_screen.dart changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in _CronScreenState._showEditJobDialog at line 412. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/cron_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/cron_screen.dart"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"62285b951d694bc8be73e1ddfe13bc4bae4773acef86b98c9f6a0eabbfb15e71"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushBridge.kt: android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushBridge.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in MobilePushBridge.command at line 151. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushBridge.kt\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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MobilePushBridge.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71b1b923cfafd369e76872b161194f3aff50a4d36294ba6ce3cfde53191ee3a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/widgets/mobile_push_settings.dart: lib/core/widgets/mobile_push_settings.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in _MobilePushSettingsState.build at line 140. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/widgets/mobile_push_settings.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/mobile_push_settings.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09cc0fa9d031cbec31620b6517cf3a406c7e3c50c917af210ded2e1813d50d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/nextgen/ui/chat_view.dart: lib/nextgen/ui/chat_view.dart changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in _NgChatViewState._composer at line 768. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/nextgen/ui/chat_view.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/nextgen/ui/chat_view.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6b527698cc7fb8b3af1326117dd04dcb13eb6a353e1d975e51579d61bfe4ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/models/background_report.dart: lib/core/models/background_report.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in BackgroundReport.fromMessage at line 32. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/models/background_report.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/background_report.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b1631a1d936c70462cbb8cee1250b191c7cd04a3b9bf7d929822f4b7b2b7ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/widgets/delegated_task_timeline.dart: lib/core/widgets/delegated_task_timeline.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in _DelegatedTaskTimelineState.build at line 97. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/widgets/delegated_task_timeline.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/delegated_task_timeline.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f269a8398df3b4d9f626514768135ee3dc63495b406204b002f18b20ca0f6d37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/config_backup_service.dart: lib/core/services/config_backup_service.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ConfigBackupService.import at line 147. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/config_backup_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/config_backup_service.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ed602c9a1797bcbe7b0245d33dc0017f273750ec6060f281d4f083347bf304"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/widgets/gateway_insight_card.dart: lib/core/widgets/gateway_insight_card.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GatewaySubagentCard.build at line 149. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/widgets/gateway_insight_card.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/gateway_insight_card.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f19c8ca89512f5ae7105f8c7e1198b063d5eeee43a21eeaf0009fc5ef5b9732"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/client_certificate_service.dart: lib/core/services/client_certificate_service.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ClientCertificateService.importIdentityDocument at line 223. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/client_certificate_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/client_certificate_service.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6109b5cfe276ea9384028fd0df1ba94fdb00e9d07ce6772836b896d1efb7aa8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/nextgen/ui/model_sheet.dart: lib/nextgen/ui/model_sheet.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in _ModelSheetState.build at line 193. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/nextgen/ui/model_sheet.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/nextgen/ui/model_sheet.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f4c2b46d4c293176124569fd984f3bf24d520583076be9c851385dc2cffac0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/nextgen/ui/settings_page.dart: lib/nextgen/ui/settings_page.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in _NgSettingsPageState.build at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/nextgen/ui/settings_page.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/nextgen/ui/settings_page.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"881b01d4ea19246378307c0c2bda42caf2c1834564f8958bf660b53e7979a26a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/nextgen/ui/sessions_sidebar.dart: lib/nextgen/ui/sessions_sidebar.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in _NgSessionsSidebarState.build at line 442. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/nextgen/ui/sessions_sidebar.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/nextgen/ui/sessions_sidebar.dart"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"df080b31e54d45c2e7a574d3b9d2992e0a606ed769216ddbd02ad3465aab8c50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/widgets/auxiliary_models.dart: lib/core/widgets/auxiliary_models.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in _AuxiliaryModelsState._load at line 56. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/widgets/auxiliary_models.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/auxiliary_models.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad1181b198eade56914bc6f744917f02d6e793a0011bf467f2a5d0779e24f56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/controllers/delegated_task_controller.dart: lib/core/controllers/delegated_task_controller.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in DelegatedTaskController._performRead at line 128. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/controllers/delegated_task_controller.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/delegated_task_controller.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2788bbab73ec070915e6a7a8ea61211a9e1fc457bd0b7b37e2a4a6be2070413"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/widgets/activity_pane.dart: lib/core/widgets/activity_pane.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ActivityPaneState.build at line 199. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/widgets/activity_pane.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87d399cd337eda83dfe834f90a2a1bd99ee9ccf849e760dcc03d59761aaca67"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/screens/model_management_screen.dart: lib/core/screens/model_management_screen.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in _ModelManagementScreenState._buildBody 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/model_management_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"755ad5a5f35ce0a1cf5ad7d428af5633f7159b796210c0396bb31244dbef074d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/models/legacy_background_message.dart: lib/core/models/legacy_background_message.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in LegacyBackgroundMessage._isDelegationResult at line 212. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/models/legacy_background_message.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/legacy_background_message.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0022dac8f6c6c01e53492cbe087ec121c1aa582b1088c149331fb0e6113ce4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/services/connection_keepalive_service.dart: lib/core/services/connection_keepalive_service.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ConnectionKeepAliveService.start at line 27. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/connection_keepalive_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_keepalive_service.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae53188b80d84783ba5bdc47f2f24f751f5b22cb1944d8d51d0f61063ca3b4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/widgets/update_available_dialog.dart: lib/core/widgets/update_available_dialog.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in _UpdateAvailableDialogState.build at line 110. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/widgets/update_available_dialog.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/update_available_dialog.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"767d72e326067e1635099b667a04b6494c8ebf81e999ea17369e1c66f3895864"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/screens/provider_usage_screen.dart: lib/core/screens/provider_usage_screen.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in _ProviderUsageScreenState.build at line 171. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/provider_usage_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_usage_screen.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2483644c7ac694c0c16cb6621efa8b8416a8cc59e7d1be5bbc7aabe9d6631f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/screens/provider_oauth_screen.dart: lib/core/screens/provider_oauth_screen.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in _ProviderOAuthScreenState.build at line 411. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/provider_oauth_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_oauth_screen.dart"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4674d434d9ad9ed96d6ce0c495b3fa9e8326aca35b9ca3fe69f2da55906991c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/core/models/gateway_approval.dart: lib/core/models/gateway_approval.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in GatewayApprovalRequest.fromEventData at line 49. 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-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/models/gateway_approval.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_approval.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2e80022c96c703f6d1f5811b9ab0ae94f0044fc15a2eb0647c71bdcf9effb4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/services/gateway_turn_application_controller.dart: lib/core/services/gateway_turn_application_controller.dart changed 17 times in last 90 days and 14 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is GatewayTurnApplicationController.close at line 397), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(chat): keep Stop and Send available during active responses\u201D; \u201Cfix: close remaining mTLS RC credential and transport gaps\u201D; \u201Cfix: allow retained recovery owners to detach after close\u201D; \u201Cfix: fence notification approvals and retain received outcomes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/gateway_turn_application_controller.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_application_controller.dart"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"67080b52e13fbd026d579072d375df27a6fe18d4e12beed9950afc050e18d5b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/utils/chat_display_items.dart: lib/core/utils/chat_display_items.dart changed 21 times in last 90 days and 13 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is ChatDisplaySection.withReceivedOutcomes at line 31), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(chat): align slash commands with the gateway wire contract\u201D; \u201Cfix: secure and ground Nous Portal in gateway contracts\u201D; \u201Cfix(chat): retain timestamps on completed earlier previews\u201D; \u201Cfix(chat): show provenance-aware message timestamps (#198)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/utils/chat_display_items.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/chat_display_items.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0a576cbe9e6f83bb2ff794b057e7840f2a7559e349ce91c45b43f87bbddf33"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/services/turn_notification_service.dart: lib/core/services/turn_notification_service.dart changed 17 times in last 90 days and 12 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is TurnNotificationService._cleanOrphanedOngoingChats at line 409), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(android): replace exclamation notification icon with Ares hoplite silhouette\u201D; \u201CNextGen: Kyllene-style notifications and catch-up; fix Insights timeout\u201D; \u201Cfix: fence notification approvals and retain received outcomes\u201D; \u201Cfix(android): bind background policy and permission to confirmed observations\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/turn_notification_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/turn_notification_service.dart"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc863586be91c389cc729019a9c9a568fae3e263f4632d350780cddc3ba7b68e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/services/composer_draft_store.dart: lib/core/services/composer_draft_store.dart changed 9 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is ComposerDraftStore.bind at line 142), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(chat): preserve paste recovery across submission handoff\u201D; \u201Cfix: preserve draft authority through hydration outages\u201D; \u201Cfix: refresh durable draft authority after preferences reloads\u201D; \u201CFix late draft alias chronology and gateway owner handoffs\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/composer_draft_store.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/composer_draft_store.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c74a9d546f7fd7bfbc90b1620d4a632ab8969687200c63b8a1713c1d770f54"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/models/chat_timeline.dart: lib/core/models/chat_timeline.dart changed 7 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is ChatTimeline.textSnapshot at line 344), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(chat): preserve live canonical suffix and reasoning pin identity\u201D; \u201Cfix: preserve settled alias output and history read authority\u201D; \u201Cfix: reconcile late identity alias handoffs on Android v2.1.31\u201D; \u201Cfix: retain canonical chat view state across routes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/models/chat_timeline.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/chat_timeline.dart"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"69657b31184ec6056a1a49bef24a51ceea4a230746f247eda8c3bd26ea8ea583"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/models/connection.dart: lib/core/models/connection.dart changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is SavedConnection.toMap at line 176), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: use normalized dashboard origin for all feature clients (#233)\u201D; \u201Cfix: bound LAN discovery and preserve verified endpoint identity\u201D; \u201Cfix: honour the Port field when it holds 8642 on an HTTPS host\u201D; \u201Cfix: send the Hermes profile in every JSON-RPC payload, not the socket URL\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/models/connection.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/connection.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cbf59dfaa9ff151041c91dcd9dd5c14429816e7986b914e1a3a0d96c2f0884"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/services/project_folder_provisioner.dart: lib/core/services/project_folder_provisioner.dart changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is DashboardFolderProvisioner.provision at line 99), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(projects): apply root edits immediately per saved connection (#232)\u201D; \u201Cfix(review): close final recovery and cache races\u201D; \u201Cfix(review): address PR #106 third change-request set (3 blockers)\u201D; \u201Cfix(review): address PR #106 second change-request set (4 blockers)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/project_folder_provisioner.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/project_folder_provisioner.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce40d9910f8f7f31fadf8e913d1aa86230cd4138643cdef0ac6b047dc68681a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/services/mobile_push_api.dart: lib/core/services/mobile_push_api.dart changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is MobilePushApi.capabilities at line 56), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(push): carry reviewed registration and account-mutation fences\u201D; \u201Cfix: isolate mobile push requests by selected vetted profile\u201D; \u201Cfix(android): fence precommit push registrations and preserve scope blanks\u201D; \u201Cfix(android): recover durable push registration handshakes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/mobile_push_api.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_api.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca175d3c0045e5fb2edbd3e2be902a523385af8c232d82eaba0c1d81e9833e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: tools/capture_internal_message_fixture.py: tools/capture_internal_message_fixture.py changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is capture_internal_message_fixture.guard at line 35), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: deliver scoped third-party source and build notices\u201D; \u201Cfix(chat): preserve merged human rows before legacy matching\u201D; \u201Cfix(chat): validate legacy fields and scan literal result delimiters\u201D; \u201Cfix(chat): preserve merged human turns and isolate report storage\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- tools/capture_internal_message_fixture.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/capture_internal_message_fixture.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f615b4499d94b4c77812609fc16c7ca53eb61dda883398e083d30163772dbacd"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: server/mobile-push/mobile_push/api.py: server/mobile-push/mobile_push/api.py changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is api.principal at line 62), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(push): carry reviewed registration and account-mutation fences\u201D; \u201Cfix: isolate mobile push requests by selected vetted profile\u201D; \u201Cfix(android): fence precommit push registrations and preserve scope blanks\u201D; \u201Cfix: bind mobile push to request profiles and recover handshake acknowledgements\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- server/mobile-push/mobile_push/api.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/mobile_push/api.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a096ba612fea1773b6ac82a12945da62d0c1bfcaa30ffcfc7ce340223b5786cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/models/gateway_insight.dart: lib/core/models/gateway_insight.dart changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is GatewaySubagentActivity.fromGatewayEvent at line 274), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: preserve settled alias output and history read authority\u201D; \u201Cfix: bridge application-owned task inspection and validated root push routing\u201D; \u201Cfix: verify delegated compression references and expose partial history\u201D; \u201Cfix: harden delegated task history protocol and localise overlay\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/models/gateway_insight.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_insight.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5fe542aa8000b8b566e6c6b1732aec8b34824fe298b3165ea8ea4093914371"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: scripts/publish_github_release.py: scripts/publish_github_release.py changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is publish_github_release.remote_tag_commit at line 60), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: gate release publication on all APK identities and assets\u201D; \u201Cfix: publish exact source and relink materials with RC APKs\u201D; \u201Cfix: bind release publication to exact remote tag commit\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- scripts/publish_github_release.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/publish_github_release.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ea2954769018491ac1cd7dcbbedad856c868cdf10b4c2eb7e3ecd478e19473"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/services/config_backup.dart: lib/core/services/config_backup.dart changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is ConfigBackupCodec.decrypt at line 341), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: close remaining mTLS RC credential and transport gaps\u201D; \u201Cfix(mtls): secure key handling, search transport, and backup round-trip\u201D; \u201Cfix: send the Hermes profile on the Desktop Gateway socket\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/config_backup.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/config_backup.dart"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6c536adcaa09107fc95edecd23a1f43d487836f6385d367454f127dd832b59"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/widgets/gateway_approval_dialog.dart: lib/core/widgets/gateway_approval_dialog.dart changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is _GatewayApprovalDialogState._respond at line 28), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: block approval Back dismissal during submission\u201D; \u201Cfix(approvals): keep dismissal on the route that opened the dialog\u201D; \u201Cfix(i18n): localize remaining reviewer-flagged strings\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/widgets/gateway_approval_dialog.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/gateway_approval_dialog.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fde32de66dd2525d04e824790c4bd653ebb1eab4c192739a8dfe9654996454"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/screens/nous_portal_screen.dart: lib/core/screens/nous_portal_screen.dart changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is _NousPortalScreenState.build at line 158), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: use normalized dashboard origin for all feature clients (#233)\u201D; \u201Cfix: recover Portal from synchronous TLS client failures\u201D; \u201Cfix: secure and ground Nous Portal in gateway contracts\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/screens/nous_portal_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/nous_portal_screen.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca5ebc6fece51d13694fee0117a1c604cdd44aad3b51f41fdc8ebe4000be966"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/services/chat_history_window.dart: lib/core/services/chat_history_window.dart changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is ChatHistoryWindow.fetchRecent at line 36), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(chat): preserve paging while cold history is pending\u201D; \u201Cfix(chat): reconcile live replies using committed message receipts\u201D; \u201Cfix(chat): cover longer tool-heavy turns on first load\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/chat_history_window.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/chat_history_window.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28b00fb711e96e6695667d0b1cf4a0d6848ac73ff2659793f67796a4cb23b6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/models/provider_oauth.dart: lib/core/models/provider_oauth.dart changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is OAuthDeviceSession.fromJson at line 81), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: stop treating historical OAuth approval as current account identity\u201D; \u201Cfix(oauth): require scoped account readback and reject approval redirects\u201D; \u201Cfix: localise provider OAuth across shipped languages\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/models/provider_oauth.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/provider_oauth.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7132c5f943967b1ad25f7bd7ea6fe14e9fccaa689ca71fc2ee712bde30c12f61"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: scripts/verify_release_apks.py: scripts/verify_release_apks.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is verify_release_apks.verify_signer at line 222), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: deliver scoped third-party source and build notices\u201D; \u201Cfix: accept observed apksigner V2 records fail closed\u201D; \u201Cfix: reject non-RFC JSON constants in APK preflight\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- scripts/verify_release_apks.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_release_apks.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcc810ad32b148f104836b3c0e09c4ecafb7337e84cc45b5e212b848b343d5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/core/services/chat_presentation_state.dart: lib/core/services/chat_presentation_state.dart changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is ChatPresentationRegistry.bind at line 30), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: preserve draft authority through hydration outages\u201D; \u201CFix late draft alias chronology and gateway owner handoffs\u201D; \u201Cfix: reconcile late identity alias handoffs on Android v2.1.31\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- lib/core/services/chat_presentation_state.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/chat_presentation_state.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"354c5a2a6f29bcacc40e7c5dd88e25729702b4d0d2a3bb3bb55584a9813fe294"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: server/mobile-push/dashboard/plugin_api.py: server/mobile-push/dashboard/plugin_api.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is plugin_api.request_profile at line 26), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(push): carry reviewed registration and account-mutation fences\u201D; \u201Cfix: isolate mobile push requests by selected vetted profile\u201D; \u201Cfix: bind mobile push to request profiles and recover handshake acknowledgements\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-20..2026-11-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-20 02:26:53 \u002B11:00\u0027 --until=\u00272026-11-18 02:26:53 \u002B11:00\u0027 --full-history --no-merges -- server/mobile-push/dashboard/plugin_api.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/dashboard/plugin_api.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5237312d839e2977c4e1c22f2216ae5944e682ff6a68ac5b0435c9fbc3559498"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 5 significant file(s) lose their only recent owner: lib/core/services/quick_chat_store.dart, lib/core/utils/home_turn_signals.dart, lib/core/services/capability_registry.dart, lib/core/services/session_search_preferences.dart, lib/core/models/hermes_project.dart. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f3a41557cd240cabb89518952997584075e9740ed068e4ad60fe958a1c7a5540"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: scripts/paging_contract_fuzz.py, scripts/attach_path_probe.py, scripts/legacy_attach_probe.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"071bf33f43335b4f0b6b74d229b684a28f71be7b87191410f5016c97d60cc9c2"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (10 single-owned of 235 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 235 of the 295 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: lib/core/models/gateway_approval.dart, lib/core/l10n/l10n.dart."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (79286 LoC, 627 module-visible types across 17 directories) overshoots its size bounds. 1 of 5 build unit(s) (Gradle, Python, Xcode, pub) overshoot their size bounds, lowering Project Cohesion to 6.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":"pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9fee3010c053c10733ebad6b156234032ce361c46f8c03bb63f2bdc3c8adbd"}},{"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":"0610f965e4f1058510009a56f581058a6e29716898203bd12c44e3451328559c"},"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":"e9206baa56d3a23130786aa133b28bf1f9de54841ad6d684f14f2fd29d4a1d29"},"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":"870fd7156f69262fb52edf4342e2d28efe0f1672710b97f72d516a0c866fd463"},"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":"b5c56b2b95a74a218cdd75b6e7104f36cc49323fb9ec9f51e6af5403582fea9e"},"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":"164a5fb12ae1412023cf0f2822eb0e790433d9c58c029e4f2f83c40ada6d25b0"},"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":"72e91babcc3ab7922374eeeeaf4e60f09f7babd43dd32d66d4a7237124d072a8"},"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":"14eaf888febc5bd97c534f3fe9095cae37fa02bd5905b85142b65653c0d43fcc"},"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":"6b9d4f3d2e7b6b1d3e8970de75520d224ca18e20edce9eb286a413c80e2b4aed"},"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":"74ab69aa01cc99889feb51012bf73064763048660a5dc98453608a88fd6b01c2"},"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":"ab14e7daf57bcdc95ec0df4b1130ddf67483633b479fed923817d43b6af73ab8"},"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":"a82b7beaa9db74b1458736e6c5fc103c74506fab4d72f510d8727a67bd116c1d"},"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":"3f0ca843d1ddd6f4503e5da491b2d806ca2d183c4cb8f1a8be6e6751346b01ce"},"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":"693249723480b7d3690fbc9002e4acaa2fd5c4f5277d52948268b51530c89d1e"},"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":"0a25692745ad0ed3ca68036746171ef1bfebcc093c4887320630d8afff98acf8"},"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":"89d8772fe25ffd2a780911a54e0087c1c273b90b1e5e3da597ff81d83ad1c68e"},"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":"3560cd7f949b4f538a22ed9a986c6e55f4f69e174223eb36106d95f643d6e20c"},"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":"6819b36024d45f5f0e1d43e74427f1e72c7d8dae5d09101e0f966a51bf6829ab"},"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":"ae59d5e9dd2c30e110a21be3f2f3e4339df91ffb4154cfcf5f17bedb858ec684"},"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":"64478662fa5e1544368a8d37a73d78bfc90ea789fe52460bc2794d70b8e273b3"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 235 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 235 of the 295 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: lib/core/widgets/gateway_sensitive_prompt_dialog.dart. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/gateway_sensitive_prompt_dialog.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d1c35c6b30ce1cc13194ff15d51a31a680d0dead4bfe74209e98c5564e02d5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chat_screen.dart \u2194 composer_draft_store.dart: \u0060lib/core/screens/chat_screen.dart\u0060 and \u0060lib/core/services/composer_draft_store.dart\u0060 change together 70% of the time (7 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 7 shared commits counted here, the most recent 3 are \u0060bc80e2f6\u0060 fix(chat): preserve paste recovery across submission handoff; \u0060ab04b132\u0060 fix: reconcile late identity alias handoffs on Android v2.1.31; \u0060f36a4073\u0060 fix: retain canonical chat view state across routes \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cc39c7253e2f5222d27d4b4945b1bf9581e902be660657b435216abe8a925c"}},{"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":"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":"D37","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":"2e96dfd6d93fe913fb2e9028610c982dbd322c76ecf26cfdd7734b74da991d0f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"graphify-out/graph.html"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2a9ab50c364167159fa6e8c03a7c0c0c13f62be62ca8725073097e4101d41e"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"graphify-out/graph.html"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e587d1b847cf4bd5774d87bc9e3801285aefbc74b7642448d7d8dc2d7a2b3783"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"graphify-out/graph.html"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e531bed17b590a15e1fad85856edc05a7be775ef6059978cc9a293d8421f8e6"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GatewayTurnApplicationSession (20 abstract methods): \u0060GatewayTurnApplicationSession\u0060 declares 20 abstract methods: \u0060setAsyncEventListener\u0060, \u0060removeAsyncEventListener\u0060, \u0060setTurnSettledListener\u0060, \u0060removeTurnSettledListener\u0060, \u0060ownsApprovalRequest\u0060, \u0060tryRespondToApproval\u0060, \u0060tryRespondToClarify\u0060, \u0060tryRespondToSudo\u0060, \u0060tryRespondToSecret\u0060, \u0060stageAttachment\u0060, \u0060detachAttachments\u0060, \u0060submit\u0060, \u0060recoverPending\u0060, \u0060interrupt\u0060, \u0060close\u0060, \u0060setSessionBoundListener\u0060, \u0060removeSessionBoundListener\u0060, \u0060hasActiveTurn\u0060, \u0060addTurnActivityListener\u0060, \u0060removeTurnActivityListener\u0060. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_application_controller.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b71adccddeec574847efd8145a1257636c0cb4a1fee5ebf76d04f12ae320722"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AppLocalizations (1609 abstract methods): \u0060AppLocalizations\u0060 declares 1609 abstract methods: \u0060fallback_title\u0060, \u0060fallback_notice\u0060, \u0060fallback_unavailable\u0060, \u0060fallback_discovery_unavailable\u0060, \u0060fallback_empty\u0060, \u0060fallback_incomplete\u0060, \u0060fallback_add\u0060, \u0060fallback_save\u0060, \u0060fallback_save_failed\u0060, \u0060fallback_saved\u0060, \u0060fallback_legacy_title\u0060, \u0060fallback_legacy_notice\u0060, \u0060fallback_priority\u0060, \u0060fallback_move_up\u0060, \u0060fallback_move_down\u0060, \u0060fallback_routing_read_only\u0060, \u0060cron_model_default\u0060, \u0060cron_model_notice\u0060, \u0060model_management_unavailable\u0060, \u0060model_management_subtitle\u0060, \u0060usage\u0060, \u0060nous_portal\u0060, \u0060portal_menu_subtitle\u0060, \u0060portal_read_only\u0060, \u0060portal_status\u0060, \u0060portal_free_tier\u0060, \u0060portal_signed_in\u0060, \u0060portal_signed_out\u0060, \u0060portal_account_tier\u0060, \u0060portal_recorded_usage\u0060, \u0060portal_all_providers\u0060, \u0060portal_period\u0060, \u0060portal_sessions\u0060, \u0060portal_input\u0060, \u0060portal_output\u0060, \u0060portal_estimated\u0060, \u0060portal_actual\u0060, \u0060portal_recorded_models\u0060, \u0060portal_no_models\u0060, \u0060portal_unavailable\u0060, and 1569 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/l10n/app_localizations.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fe7ecfd7d0347f61e13639799b7efef931a53b69580a81c3951e891578014f"}},{"ruleId":"P12","level":"warning","message":{"text":"Test failure does not fail the CI gate: \u0060continue-on-error: true\u0060 lets the step or job that runs \u0060flutter test --no-pub --reporter=expanded 2\u003E\u00261 | tee test_output.txt\u0060 fail without failing the pipeline \u2014 the suite can go red and the change still merges. Remove it from the test step, or quarantine the specific failing tests instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/pr-quality.yml"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"efba2752651aea0a0ca86f3a20cdd1d5398d47f57b41910b9559bf71495841a9"}},{"ruleId":"P12","level":"warning","message":{"text":"Test failure does not fail the CI gate: \u0060continue-on-error: true\u0060 lets the step or job that runs \u0060flutter test --no-pub --dart-define=ARES_PLAY_BUILD=true test_play/play_distribution_test.dart 2\u003E\u00261 | tee play_test_output.txt\u0060 fail without failing the pipeline \u2014 the suite can go red and the change still merges. Remove it from the test step, or quarantine the specific failing tests instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/pr-quality.yml"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b6ae35611ae0bdedb6acc6dcd2c548ce8c1bc37e0a5246eab1f82168340d9f"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060ios\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 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/native-server.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060android/app/build.gradle.kts\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":"android/app/build.gradle.kts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc97f07cd7964b9bf62027a14dacef9476a9fd3261d3eb8f9817a5ace18ba64"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060capture\u0060 is async and calls subprocess.check_output \u2014 a blocking call inside async code stalls the event loop \u2014 every other task on it waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/capture_task_history_fixture.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a6b29cbe333f59dbb8283eebc1abc3279b2bb349d6bf7dfa26fa5f86c26a64"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060deliverExport\u0060 is async and calls listSync, deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/config_backup_io.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c37becf40ee1a0a92d5d5c973ee1083c06e5e10608efb3a9416d5815618d56c"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Dart server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: lib/core/services/hermes_sign_in.dart:863 \u2014 \u0060HttpServer.bind(\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"S1","level":"note","message":{"text":"No inbound request validation detected: No handler of this repository\u0027s Dart server answers 400, 413 or 422 (\u0060Response.badRequest\u0060, \u0060HttpStatus.badRequest\u0060, \u0060statusCode = 400\u0060) and no validation package (luthor, acanthis, ez_validator, json_schema, \u2026) is imported \u2014 nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (\u22122.0 on this card.) The server: lib/core/services/hermes_sign_in.dart:863 \u2014 \u0060HttpServer.bind(\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0ffa303f3c9cef4b4c2cf028a78ce2f3c83f6078f80716eea7362fad047265eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_boundedIdentity(connectionId) || !_lowerHexDigest(endpointDigest) || !_boundedIdentity(localSessionId)\u0060 appears character-identically in 2 files \u2014 lib/core/services/gateway_turn_coordinator.dart, lib/core/services/gateway_turn_journal.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b60ca418a51abf251b1b40ca1581a560f728f79fc3b45f3c2e6a5c8048e9a67"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!identical(oldWidget.client, widget.client) || oldWidget.authorityToken != widget.authorityToken\u0060 appears character-identically in 2 files \u2014 lib/core/widgets/auxiliary_models.dart, lib/core/widgets/fallback_models.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/auxiliary_models.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0070f8fa1f89e649450245cc33234bf3361a19ee0869a20d0898f2e7c0372a5b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!kIsWeb \u0026\u0026 defaultTargetPlatform == TargetPlatform.android\u0060 appears character-identically in 3 files \u2014 lib/core/services/android_voice_composer_adapter.dart, lib/core/services/apk_update_installer.dart, lib/core/services/mobile_push_service.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/android_voice_composer_adapter.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3e88afa96556477dd8ee22699513009c25b295b0416efc12e3a078b0841fec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060GatewayRecoveryTurnStatus.completed || GatewayRecoveryTurnStatus.failed || GatewayRecoveryTurnStatus.interrupted\u0060 appears character-identically in 2 files \u2014 lib/core/services/gateway_turn_journal.dart, lib/core/services/gateway_turn_recovery.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"1075282af2e91ae070b10da7f94ab69b9c8db172efe229564f1ae7c932512b28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060WidgetsBinding.instance.lifecycleState == null || WidgetsBinding.instance.lifecycleState == AppLifecycleState.resumed\u0060 appears character-identically in 2 files \u2014 lib/core/screens/chat_screen.dart, lib/core/widgets/delegated_task_timeline.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"4715e6fe4fbcd07617f879092bee9389f0d1a634c31719b04addff60e64b7002"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060assistant[\u0027_gateway_reasoning_replaces\u0027] == true || reasoning.mode == GatewayReasoningEventMode.replace\u0060 appears character-identically in 2 files \u2014 lib/core/screens/chat_screen.dart, lib/core/services/normal_gateway_application_session.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24b3521e31f2b05b31d1e4fcf5a3f90e2f9ae9ef3d5815f4389818aabab446b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bytes.isEmpty || bytes.length \u003E maxAttachmentDownloadBytes\u0060 appears character-identically in 2 files \u2014 lib/core/services/attachment_pdf_service.dart, lib/core/services/attachment_video_service.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/attachment_pdf_service.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"01af406d323dccafbbfb4c596f817101cd607048231d64b83fea982ae47347c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bytes.length \u003E 2 \u0026\u0026 bytes[0] == 0x30 \u0026\u0026 bytes[1] == 0x82\u0060 appears character-identically in 2 files \u2014 lib/core/services/client_certificate_service.dart, lib/main.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/client_certificate_service.dart"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb891231c6914501c19af348fab071e7199d469a03d00b683e3c65f1314bb5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060candidate[\u0027role\u0027] != \u0027assistant\u0027 || candidate[\u0027_gateway_interim\u0027] != true || candidate[\u0027content\u0027] != rawCompleteText\u0060 appears character-identically in 2 files \u2014 lib/core/screens/chat_screen.dart, lib/core/services/normal_gateway_application_session.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5633}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04eaf936b42c1dedbcfc11da6f649e1b41b3705505769c222441a95bc169ae1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060connectionId != null \u0026\u0026 binding.connectionId != connectionId\u0060 appears character-identically in 2 files \u2014 lib/core/utils/activity_feed.dart, lib/core/utils/home_turn_signals.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/activity_feed.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c70339063d8caed95c1abb81c326296f70f36ded08c8c4219571259ccd3142"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060constraints.maxWidth \u003C 420 || MediaQuery.textScalerOf(context).scale(1) \u003E 1.4\u0060 appears character-identically in 2 files \u2014 lib/core/widgets/voice_composer_controls.dart, lib/core/widgets/voice_recording_controls.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/voice_composer_controls.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa8271f6b1cd919dfbc1c2a5a93d9e00d4886edd2fb8e6785a58683516fab61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current == null || !identical(current.token, registration)\u0060 appears character-identically in 2 files \u2014 lib/core/services/gateway_turn_application_controller.dart, lib/core/services/gateway_turn_coordinator.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_application_controller.dart"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"e180a193dbae567a90bb80bbdb7f336492674a2562896eadc60b636856f41465"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data[\u0027response_previewed\u0027] != true \u0026\u0026 data[\u0027response_transformed\u0027] != true \u0026\u0026 data[\u0027response_reused\u0027] != true\u0060 appears character-identically in 2 files \u2014 lib/core/screens/chat_screen.dart, lib/core/services/normal_gateway_application_session.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":5621}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4a5421b92302dbe5e55c632e5133c8a383c872383ca64d8c966ffc0b749c6c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060endpointDigest != null \u0026\u0026 binding.endpointDigest != endpointDigest\u0060 appears character-identically in 2 files \u2014 lib/core/utils/activity_feed.dart, lib/core/utils/home_turn_signals.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/activity_feed.dart"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2540cfeab6fb108d0b787b279638ec427bc89e8a35e87befa57e38da8e34b9e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.statusCode == 401 || error.statusCode == 403\u0060 appears character-identically in 2 files \u2014 lib/core/services/delegated_task_history.dart, lib/core/services/mobile_push_service.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/delegated_task_history.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2eec93e03b4dfd5bc039556ff7afcd0c3da5516d9fca50cd2bf61ee9118287b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060group.kind == ActivityGroupKind.needsYou || group.kind == ActivityGroupKind.failed\u0060 appears character-identically in 2 files \u2014 lib/core/screens/workspace_screen.dart, lib/core/widgets/activity_pane.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"0678b7ac7794d2112e4eaebf75a45f9bb194eb97081fed84c3f52f429b7f07f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060interval != null \u0026\u0026 interval \u003E Duration.zero\u0060 appears character-identically in 2 files \u2014 lib/core/widgets/activity_pane.dart, lib/core/widgets/cron_upcoming_pane.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/widgets/activity_pane.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acf830d34111360f3eb7ba066e70896decee8a8cd77361e0e1b52a7b03923d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kIsWeb || defaultTargetPlatform != TargetPlatform.android\u0060 appears character-identically in 2 files \u2014 lib/core/services/hands_free_speech.dart, lib/core/services/recording_screen_awake.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/hands_free_speech.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b761b735d61dd94c1fdbc204e50e466c22675030a9491a842a5ac3f6809e89"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lifecycle == null || lifecycle == AppLifecycleState.resumed\u0060 appears character-identically in 3 files \u2014 lib/core/screens/workspace_sessions_screen.dart, lib/core/widgets/activity_pane.dart, lib/core/widgets/cron_upcoming_pane.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_sessions_screen.dart"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"39aae557d44eccb45e2907bacf390d4fb1e429f80b9dbf011a5a41034342383e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.contains(\u0027unknown method\u0027) || message.contains(\u0027method not found\u0027)\u0060 appears character-identically in 2 files \u2014 lib/core/services/capability_registry.dart, lib/core/services/projects_gateway_client.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/capability_registry.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a16aac1815423510aa3675e6c42dd9bb8acf623e4c480d738606c6aaa4397a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060oldWidget.connection != widget.connection || oldWidget.testHttpClient != widget.testHttpClient\u0060 appears character-identically in 2 files \u2014 lib/core/screens/memory_screen.dart, lib/core/screens/nous_portal_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/memory_screen.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ada627c3ec25750f1efb5ce0188c56e78dd263ee13976ea3616d85a0d3e752"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params == null || params[\u0027type\u0027] != \u0027gateway.ready\u0027\u0060 appears character-identically in 2 files \u2014 lib/core/models/gateway_turn_contract.dart, lib/core/services/capability_registry.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_turn_contract.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d422bfb0e049e23e36fbb207aeb1fb229e88bd655a2296ebf4c5b91932264519"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider == null || provider.trim().isEmpty || model == null || model.trim().isEmpty\u0060 appears character-identically in 2 files \u2014 lib/core/services/chat_model_override_store.dart, lib/core/services/session_search_preferences.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/chat_model_override_store.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0501250825a582ec9310c5290e2cd3547d56429d6ca5a57e7da6c12b0ed397f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.statusCode \u003C 200 || res.statusCode \u003E= 300\u0060 appears character-identically in 4 files \u2014 lib/core/services/dashboard_api_client.dart, lib/core/services/hermes_sign_in.dart, lib/nextgen/ui/capabilities_page.dart, lib/nextgen/ui/more_page.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/dashboard_api_client.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"288f944062f02c3ebd229ccfcc0bf6aad2290bf50906741d49170aa01aa857f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode == 401 || response.statusCode == 403\u0060 appears character-identically in 2 files \u2014 lib/core/services/ai_search_query_rewriter.dart, lib/core/services/session_search_client.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ai_search_query_rewriter.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4c20fda89937a5c7936f38c10331e2f2374d5717b6458dbbe85d0ad6a46bea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sessionId != null \u0026\u0026 sessionId.isNotEmpty\u0060 appears character-identically in 3 files \u2014 lib/core/services/turn_notification_service.dart, lib/core/services/ws_client.dart, lib/main.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/turn_notification_service.dart"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bab6ff3252427579f36457cb6bc185e090491919a4c2b322e740b135ac566d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value != \u002700000000-0000-0000-0000-000000000000\u0027 \u0026\u0026 RegExp( r\u0027^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$\u0027, ).h\u2026\u0060 appears character-identically in 2 files \u2014 lib/core/services/gateway_turn_coordinator.dart, lib/core/services/gateway_turn_journal.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_coordinator.dart"},"region":{"startLine":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bea0c3801eeeeb2a859ed09ca0d5a3bfc5b16c10aa838fc226abba42ea95008"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value is String \u0026\u0026 value.isNotEmpty \u0026\u0026 value.length \u003C= 512\u0060 appears character-identically in 2 files \u2014 lib/core/services/normal_gateway_pending_store.dart, lib/core/services/operational_activity_store.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/normal_gateway_pending_store.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08faa752b429b1fc2e3a5ccdc067c53b1bcc88940a2cd9a9b0fd5ac8d84236a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value is String \u0026\u0026 value.trim().isNotEmpty\u0060 appears character-identically in 3 files \u2014 lib/core/models/gateway_activity.dart, lib/core/models/provider_account_usage.dart, lib/core/utils/cron_schedule.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/models/gateway_activity.dart"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d11e891ed2c78db8f349f5dbab1ae81e6330b3fed225b71cce0169c64cb7666"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060directory.isDirectory || directory.mkdirs()\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/hermesagent/hermes_android/ApkUpdateInstaller.kt, android/app/src/main/kotlin/com/hermesagent/hermes_android/attachment_pdf_preview.kt. 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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/ApkUpdateInstaller.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bc47bcc521b73cdcfa76a07c1e60c8fe7550124e40c7cdcb5b19b6b11650d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060target != \u0022:memory:\u0022 and not Path(target).resolve().is_relative_to(Path(sandbox.name).resolve())\u0060 appears character-identically in 2 files \u2014 tools/capture_cron_prompt_fixture.py, tools/capture_internal_message_fixture.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/capture_cron_prompt_fixture.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b1e9df4b1c9be953dacb366ddf443228393d186feda1a6c6bde36974697e03"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/mobile-push/mobile_push/service.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"529795b948fde0e080c4705e34e205dcce8f0729403de21630fdbfd8cc1c724a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9c723c3d45b1fa171f347b21d67f3cfd361656aeee2df98bd0ddaf59587840"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":2725}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcab092340e1fe9e11a8ae09b1736a50ec1530f4c01b4f5e26cf25530b8ec1c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":2737}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a36d764d0f652c71a932775992f6214730572cd6ca2721300032eab5dbfe197"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/nextgen/ui/sessions_sidebar.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5769d93a3534608372c34358d073eb9bf923306c4f34dc72099eb2eb04678578"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/nextgen/data/chat_controller.dart"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83f9fa876637078f285bd6d3f2491e3d514e663133251fd644ff3c47c0884cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/nextgen/data/chat_controller.dart"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"3810c8887e439b874bcb358080e6a723fe6614dd40fc2f2986346456ef1f8a80"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/home_turn_signals.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"12eb695704c4830d40c6f7c039e4653063e517220cbb04dbd271eff0d64e5f6e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/ai_search_query_rewriter.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"588af17965345369cece63063b6c156a8f0d3ae9be5afe03ec2bf00314f3d487"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/app_update_service.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0118fc7859954ff2c5aeeb047a3c5adf112beb79b88eed575f4057b60a4da3eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/app_update_service.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ec50acccc8dd58b5cac103c5a228eaac9ef80eadb06ee21c2bee2c6ce8a4f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/composer_draft_store.dart"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0260be526c42db997504501fd7913b2c2bcb7ea3cfe5e6450e4d5576ece72b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/config_backup_io.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbb7b624244ec6b9a3402c4a25280c2197d49962f3b4e74b25760458029a695"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"b921f23e55f0db81e4a65ed4954de2e505cd2f576813737a83151dc2b3951af4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15074430de71e00cb6a0eb158993bd90f2f4352b7a6b3f8fc5b78ad66d99ff6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"2949d295b3c3bb0086fd7d145443e54e0aea19e6c12e99c8a021e8fb630f460f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93b9e503155246599b8a3fcef7fd7846e8f3d0a6a7a545ef4e8a29db50d9eeb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d23f4ffcd65881f58a63b36f06285b25e3c3bf6798226817282cb6d27d9c1f2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/connection_manager.dart"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce9810ebd797e79ee1bc9a246f520de8f6ae37bc8e450e31728881a467596b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/dashboard_api_client.dart"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54270b162efaee707cf7e84b44f3599992e1b5dfa568e47a39379166d20f9e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/gateway_turn_journal.dart"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3749e6e8bacc6c2440d43dace750d7a8bc453eba6668c463215861999213cd4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/hands_free_speech.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7f17767f09545b4cae5f272112b901364ec13b9ea7f00fd216cfc9539f3de6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/hands_free_speech.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cde5d0450d85cd30dcca3d73304e0363a73c903751e14cfe9b21ae1d8d762e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/mobile_push_service.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c8df7493b7c8695ada5c69426ce3d8f2e1c2618c7395fcbd58c750c3d16ecf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/project_folder_provisioner.dart"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2038f526bb9fea2443ccbf1367ba99ff797e755d87481626717ff20eb0e75e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/projects_repository.dart"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a480bf183eace44c25c0f4e0073144dfc8b3317e79bea8d8a543384667546f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/quick_chat_store.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"30eb87775eee9c1b7b24405bb1d76fd1060018ebaf8d0ac7e2cb7ddf5e8b5b33"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/shared_attachment_preparer.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"41efba33430102962df72fac2437b669d9c47ceb24b3b899a9546e237b2e753b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/services/turn_notification_service.dart"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40970315b3857e72d8c6da994b06c90f7daa66ee82e719fb4728e6add93cb3f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2252}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b8f4e57461629921d3ad4ab16eb32a455e21603e56da56bf452e2c6cce7df4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2608}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc99d019ea13bd3d743663283caeb11256c2e0f7255d10ec555fdc57631eca83"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":2667}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefb98ad235366d12967a6587ae81ce41dcbcdcc7d14700f261adbb77a0d0eed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4018}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34e20222a36b366bed9f44c4915c227d8227d84a4e84126455d5cb9ac81b6af"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/chat_screen.dart"},"region":{"startLine":4380}}}],"partialFingerprints":{"codehealthFindingId/v1":"173b0f7c4819f93567b5a6ecbaea253316d4c3fe1ff3f2485c85088a3491be9c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83d27469f32e5f49ac23e5745eea45c39c0df50a668987e263013c1ffa2a4a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/provider_oauth_screen.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae2dd5fba4db88587876f2f34055448ec242ee6e69ad8a477d155a672458036"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/settings_screen.dart"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c989c9160ef7f4c35c72386768962c463287f752f84be8282d1bdf5c54b759a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/settings_screen.dart"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"931ac9e7bdde5340724836af972610a9e7d88bddd08597be9bbcb3818b965254"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b07811d217571a69a4ac54e042a98172a8bb270263807477bee2240848b96e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30746ffb952134a1c857e1408e8abf4191d8892380e383f6c94616a045c3708"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"20508bf580bd08129ee6df722918ad4bd36aa9cec89ad700140cdde8dc4c8c78"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad0259c7bc7d953263992e581d7ef083893bf976998d2933ca365ac032dda0b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52fcde35cd53e976f9a14a315515d35283a4968d249a6261566752124f22f92"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/workspace_screen.dart"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd69798cd56ac8dfa1b5e28a2b04ac7f67daec488841565fdc3c59ac1339b84"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa9746111d1f2dfa42079679025950a8b66467936773492aa2c276c08cc836a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/hands_free_conversation_controller.dart"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f437a6b6d6e5b81c8373ae614675127f58a001a468ac4e467c8dec12f377693"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2af025c0b679ea0d674181560a7643d218161b777fcd9ef376fd47890a403a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bcc1c3b56117eba990c3d741578c9a1ec4232ce928c37635214290dac376eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"76089bd901a65ac5f589c29e3efad33a991d23f427ee08290a3c113f1ad25ed6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5746072a8de04070cdf4d5ef84059f6e07d3798db83b3fc2f00a7b19fb8e2471"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"636cd7f34c1012edc0ca1b02341513ac3bee74035148d84f58c3942a22c8d959"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (failure)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53b453303a17b37e2b6c6d23f1a580dc5941d7bb151706c28bb38b3f1737c70"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/controllers/voice_recording_controller.dart"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"667ad2dd42a74c409b4623aaebf155bb5d3bb6544d73d72bf42d5a42d3445132"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MainActivity.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e49b501a4c6d1e14fd6f3daef9ed70d230ad1b9c35b7be2399aa909ea0a507"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MainActivity.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"97895e54d094c7df6fda69e3e3d78d5fedf9d25590870b029f27734abde17cfe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/hermesagent/hermes_android/MainActivity.kt"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"956a3f795fb1f4fa8565ca36d12017989ca0d30a30ba39aeb6afaf95cc330722"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/hermesagent/hermes_android/SherpaWakeDetector.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"126f1a590876dcafe0997107fae10aa0c866556ad611e08e472f22823c7cd07c"}},{"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":"android/app/src/main/kotlin/com/hermesagent/hermes_android/VoiceDraftMedia.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"62199add5ac0cf517caed549ff6633614fff11f31aeb80afa66b761d1dcd9721"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Dart code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/utils/message_content.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ddb746861cadba43a33e17d52daf8465cf4495425c48792a01820b706ac081"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_readRoute\u0060 turns every thrown error into \u0060{}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow 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 at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/screens/model_management_screen.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"570fd65bfe43c1afbe0d12c85b52785da36cf34d3ad115f05922c82a2af442da"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-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-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-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":24,"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."]}]}