{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"],"owasp":"A01: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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"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":"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":"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":"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":"GhostAgent.processUserMessage (cyclomatic 149): GhostAgent.processUserMessage has cyclomatic complexity 149 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b41a9fdaa2b61a2d5934bb4b14a869ac6ee9a30e486091b53f58bbd9694248d"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsDialogKt.SettingsDialog (cyclomatic 146): SettingsDialogKt.SettingsDialog has cyclomatic complexity 146 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"01617576bef4f6e952fd9d2d2a4154000fddeac5be66a2d9736ff8eae991535b"}},{"ruleId":"D1","level":"warning","message":{"text":"GemmaService.initialize (cyclomatic 80): GemmaService.initialize has cyclomatic complexity 80 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c66d48c42ab80b8dc7b51ef9d8e74aa70021e4a52f8710e81f7b7d5a41aa670"}},{"ruleId":"D1","level":"warning","message":{"text":"GhostAgent.tryExecuteFallbackTool (cyclomatic 65): GhostAgent.tryExecuteFallbackTool has cyclomatic complexity 65 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6684d81b6e7243d0af805e4bbc19ada0e31eb1c138f709fdd05ce464607f065"}},{"ruleId":"D1","level":"warning","message":{"text":"QrCodeGenerator.encodeMatrix (cyclomatic 63): QrCodeGenerator.encodeMatrix has cyclomatic complexity 63 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/skills/QrCodeGenerator.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2afad6e949685c1e11af960684d7e0f56c169ced8801df0d65e5304dc3f72a2"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPServer.executeTool (cyclomatic 62): MCPServer.executeTool has cyclomatic complexity 62 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/mcp/MCPServer.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcfc2daba4d323df507cd0d414d93a82789268d238b526e79ebb2579d42c597"}},{"ruleId":"D1","level":"warning","message":{"text":"GhostMcpTool.parseParams (cyclomatic 52): GhostMcpTool.parseParams has cyclomatic complexity 52 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"0997834f8f86738fd0699be7428ee3bdfcde91317559521a43cffcc9f0265587"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatScreenKt.ChatMessageRow (cyclomatic 51): ChatScreenKt.ChatMessageRow has cyclomatic complexity 51 (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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b1063aebc93193fb7816206e3c1d5e90b3fabcf24e0bb15aa7220ed2c182c4"}},{"ruleId":"D1","level":"warning","message":{"text":"GhostDiaryAndCronManager.runDiaryCycleSuspend (cyclomatic 49): GhostDiaryAndCronManager.runDiaryCycleSuspend has cyclomatic complexity 49 (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":"app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da4983ed650258984174034b2cf18988ae2747b6ec580f8c6b239b32534af1f"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemVisualizer.init (cyclomatic 48): SystemVisualizer.init has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5669c17af53fe26cce3069de3e955c65bd6cbb8198f4582aaa75f4a1ee404c2"}},{"ruleId":"D1","level":"warning","message":{"text":"GemmaEngine.streamResponse (cyclomatic 47): GemmaEngine.streamResponse has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b84a42604d509861001ebbc2ab252ec50c7bb12a498ae5dacdde1eae5de952"}},{"ruleId":"D1","level":"warning","message":{"text":"SensorFusionManager.registerEnvironmentSensors (cyclomatic 47): SensorFusionManager.registerEnvironmentSensors has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b888a71d2c2dd51e8a4b22a8663b0c1778808d9402aafd107abe22f74e68dd"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDownloader.startDownload (cyclomatic 43): ModelDownloader.startDownload has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6568de327c10ec1338b2b095b0a5cb55980ccd61cfd7bc830dd29cebd2faeb81"}},{"ruleId":"D1","level":"warning","message":{"text":"IntentHandler.handleAction (cyclomatic 41): IntentHandler.handleAction has cyclomatic complexity 41 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/IntentHandler.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"867cabc3c50c7c9551b435f9ad8ed765670ada902275d80d56059e666a894f4a"}},{"ruleId":"D1","level":"warning","message":{"text":"OverlayActionRegistry.defaultActionForSlot (cyclomatic 41): OverlayActionRegistry.defaultActionForSlot has cyclomatic complexity 41 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/OverlayActionRegistry.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6212e634e04e4c00d60dc3a4da312c117351f1c6a72a50db41c117b03f14eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatScreenKt.InputBar (cyclomatic 40): ChatScreenKt.InputBar 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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c443ce669a413b9261538edee3d46ea4c1aa89b2b07985d207cb033943368a6"}},{"ruleId":"D1","level":"warning","message":{"text":"TimePreprocessor.parseTime (cyclomatic 38): TimePreprocessor.parseTime has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/TimePreprocessor.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7e6838eed56b3d1d4f18d1c9b68545d4ac3bd081a7f7977f29e8df621b80ac"}},{"ruleId":"D1","level":"warning","message":{"text":"IntentBagger.bagIntents (cyclomatic 36): IntentBagger.bagIntents has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b8ec0504a7a56412020956ccaa0006eec116ab8bc38d480eab023d511d78b2"}},{"ruleId":"D1","level":"warning","message":{"text":"OverlayActionRegistry.executeAction (cyclomatic 36): OverlayActionRegistry.executeAction 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":"app/src/main/kotlin/com/ghost/api/ui/OverlayActionRegistry.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"463f4150c6732c479d02e3213b3d7ea6c2f358471e2dfc7794e8adc3c4701a41"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemToolSet.app (cyclomatic 35): SystemToolSet.app has cyclomatic complexity 35 (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":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"f116be2459435ef252a654bb4573800811ac589a35dcfd3bbf266ebe5c440c38"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemVisualizer.setActivePeer (cyclomatic 33): SystemVisualizer.setActivePeer 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. This is NOT this file\u0027s highest cyclomatic complexity: SystemVisualizer.pushEmotionColor (cyclomatic 40) 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"989c7bd0cda2faef89b0bc4697217750e90e634cf58fb19a9fa9004fd4df0b4b"}},{"ruleId":"D1","level":"warning","message":{"text":"FastPathRouter.route (cyclomatic 33): FastPathRouter.route 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":"app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"728bb15bd44336245fbdd35d90e7472348ea43780655a82138f8a5d2c16430f4"}},{"ruleId":"D1","level":"warning","message":{"text":"GemmaService.onStartCommand (cyclomatic 32): GemmaService.onStartCommand 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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a98c47eddf9835b580fdc3c2865f30756b9e6f8bb0815eb5ab1ee283711aac2"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemToolSet.parseAlarmParams (cyclomatic 32): SystemToolSet.parseAlarmParams 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":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c38f625288e94ff7a117264267c2af95758e686993188d13d740e06f8d73ed"}},{"ruleId":"D1","level":"warning","message":{"text":"AvatarEngine.drawFrame (cyclomatic 29): AvatarEngine.drawFrame has cyclomatic complexity 29 (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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0ab177dc124af3c2aca9ffdfbbce1223a37b537187fabb0ab1e6e6014f1c1f"}},{"ruleId":"D1","level":"warning","message":{"text":"AvatarEngine.drawOptionDCubeLattice (cyclomatic 28): AvatarEngine.drawOptionDCubeLattice has cyclomatic complexity 28 (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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"468b9f59493ca8319c75bf7ab3da07a5d467c6474d42538b3160e42f8b6abc05"}},{"ruleId":"D1","level":"warning","message":{"text":"SensorFusionManager.buildContextString (cyclomatic 26): SensorFusionManager.buildContextString has cyclomatic complexity 26 (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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0d13e837539dc4c838b97a1e753cdcabe8a227ec877e53cb80403294b64a44"}},{"ruleId":"D1","level":"warning","message":{"text":"IntentBagger.matchVolume (cyclomatic 26): IntentBagger.matchVolume has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c059c9abe64d57eede5cb1c494e2da8bed99540f050c00dbe604e6da389e6c"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelDownloader.findAnyLocalModel (cyclomatic 25): ModelDownloader.findAnyLocalModel 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":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86b90200bceb58e1e185f28228cb5261347b5052cf6934e494707d71f009306"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiCommandEngine.volume (cyclomatic 25): TuiCommandEngine.volume has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8474779f6403fd1592f3cb1adfaaae004e26f9063abb595452d3a3ca5fc153"}},{"ruleId":"D1","level":"warning","message":{"text":"AvatarEngine.drawOptionBHexLattice (cyclomatic 25): AvatarEngine.drawOptionBHexLattice 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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01bac930512546de1c07297fc6404fc8d2f1274194b90c36cb1cc1ae072f4c8"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseEdgeView.drawWireframe (cyclomatic 24): BaseEdgeView.drawWireframe 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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfa3160d5cfc2ca6bfe00045d1e895e5ec631d2dbfdc0442964bbfaeb6103e9"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemVisualizer.applyAiBrandColor (cyclomatic 23): SystemVisualizer.applyAiBrandColor has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: SystemVisualizer.pushEmotionColor (cyclomatic 40) 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbad60d54cec7ce60014cd54c26e204d37faacdf44d29e34a7c6b76da49de184"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatScreenKt.VoiceMessageBubble (cyclomatic 23): ChatScreenKt.VoiceMessageBubble 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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9df264a76eebf3961fb5ff1f9ab9c9c1da7fd0056e44b0514ffd46a1dae6fd"}},{"ruleId":"D1","level":"warning","message":{"text":"GhostMcpTool.run_js (cyclomatic 22): GhostMcpTool.run_js 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":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f1391b7df67f56b167c588ca6b770036cb6d41cbc8c4aa871556d74a4dff0d"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiDirectClient.generateContent (cyclomatic 22): GeminiDirectClient.generateContent 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":"app/src/main/kotlin/com/ghost/api/logic/GeminiDirectClient.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6d2c13ee3e5e9adb01065b4333ef432b6912f7069102c6ad230e6eca380cf3"}},{"ruleId":"D1","level":"warning","message":{"text":"IntentBagger.formatPromptEnvelope (cyclomatic 22): IntentBagger.formatPromptEnvelope has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35e0bdb45fdf7ea6dd5b9524062fd7c80275b57af1ea202ff452377e5819477"}},{"ruleId":"D1","level":"warning","message":{"text":"AvatarEngine.drawOptionAOrbitalStar (cyclomatic 22): AvatarEngine.drawOptionAOrbitalStar 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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6f99f55a9fe1b2c06c92604d6da1d15ec9beafe04269dca40e4a1075fb665a"}},{"ruleId":"D1","level":"warning","message":{"text":"GemmaEngine.initializeInternal (cyclomatic 21): GemmaEngine.initializeInternal 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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba32fe7041524ffd818f1d72c87c69c8d8461e40e9cb0911364a6369265f672"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemVisualizer.resolveAudioPlayingApp (cyclomatic 21): SystemVisualizer.resolveAudioPlayingApp 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. This is NOT this file\u0027s highest cyclomatic complexity: SystemVisualizer.pushEmotionColor (cyclomatic 40) 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"beea99e85683a58f6c3c72610734a656f9d2ce59ec439d4fe3e4a2bb672bec59"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiCommandEngine.dispatchMediaAction (cyclomatic 21): TuiCommandEngine.dispatchMediaAction has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb8c181d60af976a2a5dd0af4333c21364a3c39a1ac5dbf22e5197153f0b27c"}},{"ruleId":"D1","level":"warning","message":{"text":"IntentBagger.matchAppLaunch (cyclomatic 21): IntentBagger.matchAppLaunch 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":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5e714f57efb0de5205f30cc853bb32d63ced485ae82216109945a881fa2d6b"}},{"ruleId":"D1","level":"warning","message":{"text":"FlavorTexts.pick (cyclomatic 21): FlavorTexts.pick has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/GhostWorkIndicatorOverlay.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca14149f9c9a2184c0e2197f73e3d8090f9ae2ebf5c2e1e94e6ce5c5d359dab4"}},{"ruleId":"D1","level":"warning","message":{"text":"GemmaAccessibilityService.getSemanticScreenDump (cyclomatic 20): GemmaAccessibilityService.getSemanticScreenDump 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":"app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a942e3c03ecc31b9ebabe9d5d1643c942c201e2f22d4782426cde04c36eda42d"}},{"ruleId":"D1","level":"warning","message":{"text":"GhostMcpTool.executeMcpAction (cyclomatic 20): GhostMcpTool.executeMcpAction has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"299c972cebcfe440f16fcebe116505ca18fdef429d74e6a497b6a2899de57b76"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemVisualizer.extractPaletteFromBitmap (cyclomatic 20): SystemVisualizer.extractPaletteFromBitmap 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. This is NOT this file\u0027s highest cyclomatic complexity: SystemVisualizer.pushEmotionColor (cyclomatic 40) 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ae69a8a8ed0c6ebca9b03af30f08dde50dfc3ebb337cc0ef94cb5a1f442bc7"}},{"ruleId":"D1","level":"warning","message":{"text":"SensorFusionManager.getConnectivityState (cyclomatic 20): SensorFusionManager.getConnectivityState has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4c7002a867178d05a61b5013808d7d462ff72d1e543058a9e125cd08cf040b"}},{"ruleId":"D1","level":"warning","message":{"text":"AvatarEngine.drawOptionCDeltaTunnel (cyclomatic 20): AvatarEngine.drawOptionCDeltaTunnel 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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3205e9932982a476ce3d65b5470a8d0cafa9665a825f39d296502bf1fbeb3137"}},{"ruleId":"D1","level":"warning","message":{"text":"FileToolSet.search_files (cyclomatic 19): FileToolSet.search_files has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: FileToolSet.open_file (cyclomatic 22) 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":"app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"864848146ed830a82e430da2d44a4228a68ae9d1acc89d9a24e46e185835837a"}},{"ruleId":"D1","level":"warning","message":{"text":"GemmaEngine.generateOneShot (cyclomatic 18): GemmaEngine.generateOneShot 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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd808f3ea79154655846c785dd972a105a77352b1ae0fd6f341eec2336f78829"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemToolSet.parseDurationSeconds (cyclomatic 18): SystemToolSet.parseDurationSeconds 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":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a1e7001c56e74618fa44841a0b5c966ed36188e2794d9a05f86e32147db809"}},{"ruleId":"D1","level":"warning","message":{"text":"index.html.fetchWikiFuzzyAndInfobox (cyclomatic 18): index.html.fetchWikiFuzzyAndInfobox has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/skills/query-wikipedia/scripts/index.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b2120107b5a93b3db8578727d333269794f259b532dcd204ca9d7cea4b48bd"}},{"ruleId":"D1","level":"warning","message":{"text":"GemmaService.processQuery (cyclomatic 17): GemmaService.processQuery 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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ee429dc2d3ab0c4994e61b933b8a5d03558f7faff3d4080caeb876acf71ca2"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemVisualizer.onForegroundAppChanged (cyclomatic 17): SystemVisualizer.onForegroundAppChanged has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SystemVisualizer.pushEmotionColor (cyclomatic 40) 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"3562bb8709367023e0be8d8e5a5a51502412b921dffde332a2d9cc9aeeb2fbbe"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiCommandEngine.status (cyclomatic 17): TuiCommandEngine.status 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":"app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3664eec3027fef630b804215ac13b8f8f953b45402790ceb111a0dc9aaba8e"}},{"ruleId":"D1","level":"warning","message":{"text":"GhostDiaryAndCronManager.scheduleNextDiaryAlarm (cyclomatic 17): GhostDiaryAndCronManager.scheduleNextDiaryAlarm 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":"app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeec9a5bb9510505e1f7696cbf96178554504ef862e8710aa10e43dc452b0e50"}},{"ruleId":"D1","level":"warning","message":{"text":"Constants.readMaxSocThermalCelsius (cyclomatic 16): Constants.readMaxSocThermalCelsius 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":"app/src/main/kotlin/com/ghost/api/Constants.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"65abef062625ff39a3fde417302f55add999ca25fd37d7e5fb4d28d7431a9549"}},{"ruleId":"D1","level":"warning","message":{"text":"GemmaService.onCreate (cyclomatic 16): GemmaService.onCreate 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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baa4c5e04394ddfbeccf3dbbee615a97bb727ef8278695747dd0c3efa2ea323"}},{"ruleId":"D1","level":"warning","message":{"text":"SensorFusionManager.getNetworkState (cyclomatic 16): SensorFusionManager.getNetworkState 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc4c2e0aa43ee6395e6058ea02e2f02579207cae5a5099032ab22838d4e780a"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseEdgeView.drawBoom (cyclomatic 16): BaseEdgeView.drawBoom 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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee76e37e29b3be4eefd322a8a1fba0e4d22cd28bea650959b0ebc88ffc836dc"}},{"ruleId":"D1","level":"warning","message":{"text":"EdgeNubOverlay.onTouchEvent (cyclomatic 16): EdgeNubOverlay.onTouchEvent 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":"app/src/main/kotlin/com/ghost/api/ui/EdgeNubOverlay.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"196d7f912f2b818737e55986a0a7800ace0596502e0a1a3cb25417830514259d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatScreenKt.CompactToolCard (cyclomatic 16): ChatScreenKt.CompactToolCard 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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddcb3c0e47058f54d4aa6ce9c3f53d56b0778eaf9d1e0443edf1d621e6360ed"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsDialogKt.SettingsDialog (cognitive 399): SettingsDialogKt.SettingsDialog has cognitive complexity 399 (threshold 15). Drivers by points: if/else 188 (341 pts), loops 13 (26 pts), match/switch 7 (23 pts), boolean chains 8, error handling 1 (nesting depth added 182). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1494143a599e222fe980a4a34e8055937eae63813c115e6416b21b477245bcf6"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostAgent.processUserMessage (cognitive 298): GhostAgent.processUserMessage has cognitive complexity 298 (threshold 15). Drivers by points: if/else 118 (236 pts), boolean chains 45, error handling 6 (12 pts), loops 1 (5 pts) (nesting depth added 128). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36e3e981ec0d4b9126f8b1fd8fdad7bf734ed920512f376f59f6560905bf891"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaService.initialize (cognitive 146): GemmaService.initialize has cognitive complexity 146 (threshold 15). Drivers by points: if/else 64 (104 pts), boolean chains 21, error handling 4 (8 pts), loops 4 (7 pts), match/switch 3 (6 pts) (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"855c6ac549d100d416d599fd92a071de2d26e83fe3faf58e9b5c67eb9a3651b3"}},{"ruleId":"D2","level":"warning","message":{"text":"QrCodeGenerator.encodeMatrix (cognitive 112): QrCodeGenerator.encodeMatrix has cognitive complexity 112 (threshold 15). Drivers by points: if/else 26 (55 pts), loops 33 (49 pts), boolean chains 8 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/skills/QrCodeGenerator.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca85d810c24812bf048debb66bc6d651f43c75208028c86841d7a879b058bb92"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaEngine.streamResponse (cognitive 96): GemmaEngine.streamResponse has cognitive complexity 96 (threshold 15). Drivers by points: if/else 38 (69 pts), error handling 8 (20 pts), boolean chains 6, loops 1 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7e6dea746df4897cc11102a5ef70a7dc6e10bc4671b112690a9f0428cf54d1"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemVisualizer.init (cognitive 89): SystemVisualizer.init has cognitive complexity 89 (threshold 15). Drivers by points: if/else 45 (74 pts), boolean chains 9, error handling 3 (5 pts), loops 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff017520bf1bb59012f83ea475e133335c383c3137ebf19db959d8c33ce6194"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostDiaryAndCronManager.runDiaryCycleSuspend (cognitive 84): GhostDiaryAndCronManager.runDiaryCycleSuspend has cognitive complexity 84 (threshold 15). Drivers by points: if/else 51 (67 pts), boolean chains 9, error handling 6 (7 pts), match/switch 1 (nesting depth added 17). 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":"app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5680950e76f4c7254fb312c05ef0a840d1a7affbbce9359ccc3db05c2ac8a29"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDirectClient.generateContent (cognitive 83): GeminiDirectClient.generateContent has cognitive complexity 83 (threshold 15). Drivers by points: if/else 19 (68 pts), loops 3 (9 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 57). 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":"app/src/main/kotlin/com/ghost/api/logic/GeminiDirectClient.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1ebb3bdab3e65b646c4c09afa949f5fc72b20a9c520a1ae93d6aff3abacb17"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatScreenKt.ChatMessageRow (cognitive 82): ChatScreenKt.ChatMessageRow has cognitive complexity 82 (threshold 15). Drivers by points: if/else 56 (68 pts), boolean chains 7, match/switch 3 (4 pts), error handling 1 (3 pts) (nesting depth added 15). 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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bdb8e42737d1c5582478e3e8802ea17028a7cca71136ffcd754597a14fe17d4"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorFusionManager.registerEnvironmentSensors (cognitive 80): SensorFusionManager.registerEnvironmentSensors has cognitive complexity 80 (threshold 15). Drivers by points: if/else 28 (63 pts), boolean chains 16, match/switch 1 (nesting depth added 35). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1f1d06238302cc53b86ef30e8fe449bb7e7ec1e49173739f369d23a343f219"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloader.startDownload (cognitive 63): ModelDownloader.startDownload has cognitive complexity 63 (threshold 15). Drivers by points: if/else 29 (44 pts), boolean chains 11, error handling 5, loops 3 (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":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c455486913ff816222ca9597ccca2706090dbf4f67673168087a3eaeb5c89b"}},{"ruleId":"D2","level":"warning","message":{"text":"FastPathRouter.route (cognitive 63): FastPathRouter.route has cognitive complexity 63 (threshold 15). Drivers by points: if/else 25 (46 pts), error handling 3 (11 pts), boolean chains 5, match/switch 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab74ebd5cbcbb83cd5cb8ebdb71e8698ef009e1cb851723cba829bad4ca5a67"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaService.onStartCommand (cognitive 59): GemmaService.onStartCommand has cognitive complexity 59 (threshold 15). Drivers by points: if/else 23 (45 pts), error handling 3 (10 pts), boolean chains 3, match/switch 1 (nesting depth added 29). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"89630462cd4265962bbb4fb5445a6d8e70d0d9bf787c186e0fbe79d8114cbef7"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatScreenKt.InputBar (cognitive 59): ChatScreenKt.InputBar has cognitive complexity 59 (threshold 15). Drivers by points: if/else 30 (41 pts), match/switch 5 (10 pts), boolean chains 8 (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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff511693b350b2b821b75defdf9d7261baaee90e274fa8ee40d88a5239bb329b"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostAgent.tryExecuteFallbackTool (cognitive 51): GhostAgent.tryExecuteFallbackTool has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (40 pts), boolean chains 5, match/switch 3 (4 pts), error handling 1 (2 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"59efd2829be139b5192b7ca705d6cf1d394c3e4f12ffaf1817e9125642cb86a6"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentBagger.bagIntents (cognitive 49): IntentBagger.bagIntents has cognitive complexity 49 (threshold 15). Drivers by points: if/else 32 (40 pts), boolean chains 9 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0353c9d12fdeafdcec49a8e17f70493e4ff311bd6735438ac149b2ecd09dafd2"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseEdgeView.drawWireframe (cognitive 48): BaseEdgeView.drawWireframe has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 6, loops 2 (3 pts), match/switch 1 (2 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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"1025912d8e649b9cdb5afb32fd546bb6794cfc207cf330686e3bd0157324b8e1"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemVisualizer.resolveAudioPlayingApp (cognitive 47): SystemVisualizer.resolveAudioPlayingApp has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (24 pts), error handling 5 (14 pts), loops 2 (5 pts), boolean chains 4 (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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de82e83ad5851bf6ce7b201608a4e7c5051ff8ead460c2f1746edb5e9b71a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemVisualizer.setActivePeer (cognitive 44): SystemVisualizer.setActivePeer has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (34 pts), boolean chains 9, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"6083c9f15987cc5561eb5c8b538759981da55c601db82018cd78e8a27f40017f"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePreprocessor.parseTime (cognitive 44): TimePreprocessor.parseTime has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 19, match/switch 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":"app/src/main/kotlin/com/ghost/api/logic/TimePreprocessor.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e6b481321d31c90d6ec67fea9d8a5eb37174ba5007d5b187d5638386c74544"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarEngine.drawOptionBHexLattice (cognitive 44): AvatarEngine.drawOptionBHexLattice has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (31 pts), loops 5 (7 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e08a52b2bbac33de2e7694f362e97f2204b068e47a5413b90164b89b8b0dd25"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarEngine.drawFrame (cognitive 42): AvatarEngine.drawFrame has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (20 pts), match/switch 5 (11 pts), boolean chains 9, error handling 1 (2 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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c6ea7d64f88eae4a2264107c275d44e6cc9081df52cf78ee333d5653c4379a"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaEngine.initializeInternal (cognitive 40): GemmaEngine.initializeInternal has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (22 pts), error handling 6 (13 pts), boolean chains 3, loops 1, match/switch 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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f01fc0a6f1d2fdf0170e5dfa972b06fa8818d520ed4b9801c8b896ae95a91bd"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemToolSet.parseAlarmParams (cognitive 40): SystemToolSet.parseAlarmParams has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 13 (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":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80b4fb195042a5c6e5efe6bd6cb428fb16fb0bcf4aed19e21f6675958bb500b"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorFusionManager.buildContextString (cognitive 39): SensorFusionManager.buildContextString has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28 (35 pts), boolean chains 4 (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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"90494e2580a960220b07fe4f3bab3d5a31416149d7096f2cbedfa04a00453e05"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseEdgeView.drawHex (cognitive 39): BaseEdgeView.drawHex has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 2, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bbe687eaa44a9521415fd43ebc388cecefc4f4af1e0edef9b05ef15eb33770"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarEngine.drawOptionDCubeLattice (cognitive 38): AvatarEngine.drawOptionDCubeLattice has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (26 pts), match/switch 3 (6 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d019742c46a5e2d6c311d9c1a99c9d04fb3bd0b0c39a0346b4d7580b4322ba"}},{"ruleId":"D2","level":"warning","message":{"text":"OverlayActionRegistry.executeAction (cognitive 38): OverlayActionRegistry.executeAction has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (30 pts), error handling 3 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/OverlayActionRegistry.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d199490df442ab355e7244fbde21c60068b694100d8661eb054456b4eea589"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelDownloader.findAnyLocalModel (cognitive 37): ModelDownloader.findAnyLocalModel has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 9, loops 2 (3 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1c4f22faa6d3b793b56b306d00077eb6476d03de3c97f615e194791d6b86ed"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaNotificationListener.getActiveNotificationsContext (cognitive 35): GemmaNotificationListener.getActiveNotificationsContext has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 1 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaNotificationListener.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f361db55ce414759f1403edfc4373b4a7390ef153a67683d63c05f05882258c"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentHandler.handleAction (cognitive 35): IntentHandler.handleAction has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 3 (7 pts), loops 2 (5 pts), boolean chains 3, 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":"app/src/main/kotlin/com/ghost/api/logic/IntentHandler.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"573ff11f76946802f4d84d66e9a6318bd0f41a00161182fadbfc7e6185d8e8d1"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarEngine.drawOptionCDeltaTunnel (cognitive 35): AvatarEngine.drawOptionCDeltaTunnel has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22 (28 pts), loops 3, boolean chains 2, match/switch 1 (2 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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"81703f3c2a13ace1e5547ce57364622e49c41187c4be479842ce261408a3154d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileToolSet.search_files (cognitive 34): FileToolSet.search_files has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 2, error handling 2, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e45231d23eb53545b062a00eac6f300dc33de2b61613a4fc98e20f0bd290dc"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarEngine.drawOptionAOrbitalStar (cognitive 34): AvatarEngine.drawOptionAOrbitalStar has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (20 pts), match/switch 3 (9 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e552ccab85962fa63208f7d0926ffc91c015fef003ac994445bb78e95c590d9"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemToolSet.app (cognitive 33): SystemToolSet.app has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (6 pts), error handling 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"49431c402e77e615568232a9d8c533132a2d1e7d51f38d622fa495fb3169ca7e"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseEdgeView.drawBoom (cognitive 33): BaseEdgeView.drawBoom has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (30 pts), loops 3 (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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a81b91e9abdb8e32d09f7393b4d9eb45ceac9b41a3efaecfbcca6874aac705"}},{"ruleId":"D2","level":"warning","message":{"text":"InputOverlay.setupRadialPuck (cognitive 32): InputOverlay.setupRadialPuck has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (31 pts), match/switch 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":"app/src/main/kotlin/com/ghost/api/ui/InputOverlay.kt"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"9521e6d7e5ffb6b0ad5be86a0b4f8260e45b947f64fd22fc86d562a7ffe9a805"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaAccessibilityService.getSemanticScreenDump (cognitive 31): GemmaAccessibilityService.getSemanticScreenDump has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 6, loops 3 (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":"app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3c1d1fa2cd61163486297eb2a32491e7287544f55d0edb891af704b160f2ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatScreenKt.VoiceMessageBubble (cognitive 30): ChatScreenKt.VoiceMessageBubble has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (16 pts), error handling 5 (6 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"327c5cad41c26ff893506149c7818106b3e3cec95d4198dfd7f4735247a46360"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostMcpTool.run_js (cognitive 29): GhostMcpTool.run_js has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 6, error handling 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"92579741188f4c421b7d541fd940d7e8cb037e5ca632f601240afbf0e5b93fb5"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemVisualizer.extractPaletteFromBitmap (cognitive 29): SystemVisualizer.extractPaletteFromBitmap has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 5, match/switch 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecc7a500d1456f448d4d246a3d05e56be0a70d8c57422e174fd2a2c5954ecb6"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentBagger.matchAppLaunch (cognitive 29): IntentBagger.matchAppLaunch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1731222b616315a3ba6ce2f0aa995857094b23195ca07168de432c0afbe314f"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemVisualizer.onForegroundAppChanged (cognitive 28): SystemVisualizer.onForegroundAppChanged has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"864eb149d540397593850d5f909dfe92fa36295b1ae39cb4fdc7a0a4c7b875b7"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiCommandEngine.status (cognitive 28): TuiCommandEngine.status has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (23 pts), boolean chains 3, error handling 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1790052a400afda08f763522291c0080a656c46aa33999df9a4388419ff2acad"}},{"ruleId":"D2","level":"warning","message":{"text":"Constants.readMaxSocThermalCelsius (cognitive 27): Constants.readMaxSocThermalCelsius has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 3 (6 pts), boolean chains 5, 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":"app/src/main/kotlin/com/ghost/api/Constants.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ee949f0f486ad5c869e7cb5c14ac773bc3b4d2a24eafc42cce6e2e44538cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaEngine.generateOneShot (cognitive 27): GemmaEngine.generateOneShot has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (13 pts), error handling 7 (12 pts), boolean chains 1, loops 1 (nesting depth added 6). 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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cecc8936c2f7a9bf2b2ea68abdb74fcbf21d25096497316b3508dda9fb9900"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaService.processQuery (cognitive 27): GemmaService.processQuery has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (24 pts), match/switch 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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"578db8994f5dfc2a990a507ab680ec14db9623385f9b5cc245047dba1a29102c"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostMcpTool.parseParams (cognitive 26): GhostMcpTool.parseParams has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ed8e7e93277549782f633cb2864e0fde0c0c4f6096d6bf9c525d8868c295e4"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostAgent.buildSystemPrompt (cognitive 25): GhostAgent.buildSystemPrompt has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba970295fb911fde51b832b9c2794d4324ad1d7a75485aed97916dcf02c208a"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentBagger.matchVolume (cognitive 24): IntentBagger.matchVolume has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 11, match/switch 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":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"48095b2978af209dcb585b631333bb78ebffa57d9719b556c3211d96a24078c9"}},{"ruleId":"D2","level":"warning","message":{"text":"EdgeNubOverlay.onTouchEvent (cognitive 24): EdgeNubOverlay.onTouchEvent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 1 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/EdgeNubOverlay.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d0dc62a9801a622f9b5f3184642e06d391f6f992279682f8c3a34306479be0"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostDiaryAndCronManager.scheduleNextDiaryAlarm (cognitive 22): GhostDiaryAndCronManager.scheduleNextDiaryAlarm has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 2 (3 pts), boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9661998b84187c5de75c3826421f94c18a4677d75917f51582f2f56a2c61c76d"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSManager.doSmartSpeak (cognitive 21): TTSManager.doSmartSpeak has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/services/TTSManager.kt"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71af560d1f2baa244900592ddfd2809f17f33162b6a461873e332650ab6506c"}},{"ruleId":"D2","level":"warning","message":{"text":"EdgeLightsManager.isLandscape (cognitive 21): EdgeLightsManager.isLandscape has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 3 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e998eee501143c9ae8e58762271d447c5d10b4a128fb95c572e87fd2569e32e6"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaNotificationListener.onNotificationPosted (cognitive 20): GemmaNotificationListener.onNotificationPosted has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, 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":"app/src/main/kotlin/com/ghost/api/GemmaNotificationListener.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"41102a9583fb0855a2044c247f03dce97ff9f28443a15b258622bf377a054062"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemVisualizer.extractColorsFromMetadata (cognitive 20): SystemVisualizer.extractColorsFromMetadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31303e2a07ab2bdb2c74cedaaefaa976aea5b8f5136dd6930c6599cbaba9d37"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorFusionManager.getNetworkState (cognitive 20): SensorFusionManager.getNetworkState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, error handling 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"8688892bdb8d03f5924f24afbf24a172b84ba0cc2e1155d7b34ca946ba4f0e65"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorFusionManager.getConnectivityState (cognitive 20): SensorFusionManager.getConnectivityState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 6 (9 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c77a76210684cb51e482d4ac21a9384d9e238fca7b583d84499c57cf42479c"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPServer.executeTool (cognitive 20): MCPServer.executeTool has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 1, error handling 1, match/switch 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":"app/src/main/kotlin/com/ghost/api/mcp/MCPServer.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cb910b93efe3bc89b1f3f52509a7e645756531d2aa8b887bb8106a8a3b2029"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillManager.loadSkillsFromDir (cognitive 20): SkillManager.loadSkillsFromDir has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 5, 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":"app/src/main/kotlin/com/ghost/api/skills/SkillManager.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af8380f403303d10e0a4ccb9165dcb8c78b20568409cc7efb74f76e6b6f57ab"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarEngine.onAudioData (cognitive 20): AvatarEngine.onAudioData has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3428428b02c6ed5f228154245ddf45ac0e33da3fd591bd84ed8ec26d4fbcf3"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseEdgeView.drawBars (cognitive 20): BaseEdgeView.drawBars has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c52154adb389196081983cb39414a5e063010cd95f2fd8a24cb3106d8f5d56"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseEdgeView.drawHexCell (cognitive 20): BaseEdgeView.drawHexCell has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (18 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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe975bd8160efb2e1655c800976cd256c3b4e614bbcd87e6e59b4137915d560"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.checkAndRequestPermissions (cognitive 19): MainActivity.checkAndRequestPermissions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (19 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":"app/src/main/kotlin/com/ghost/api/MainActivity.kt"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9393caa33aa591eb2c66b5031d45a3128b290dbc08e916f45fb4ff664d3b7c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionMemoryCompactor.compactOldMessages (cognitive 19): SessionMemoryCompactor.compactOldMessages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/SessionMemoryCompactor.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"011fc5e080b1e2cc6c709c1d905eacdc116f606a9150ff9acda3f2cedd7f0a40"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorFusionManager.readThermalZoneByType (cognitive 19): SensorFusionManager.readThermalZoneByType has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (5 pts), boolean chains 4, 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0823f51c3f070f9256148dcada416214f5a9105a411b23ecaefb61edda75a79"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemToolSet.parseDurationSeconds (cognitive 19): SystemToolSet.parseDurationSeconds has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, match/switch 2 (4 pts), boolean chains 3, loops 2 (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":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68e1b3d136e5d389ba43d93676f5a2336444b5dd6dac73a2abc5929b13ee11c"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaAccessibilityService.performClick (cognitive 18): GemmaAccessibilityService.performClick has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 2, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87deb18f05b421cbeb61d755891b23c3d5fbce247276e1dd8d4eddca7b948f0"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaEngine.truncateRepetition (cognitive 18): GemmaEngine.truncateRepetition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"447f16d61f0724e83e986c15ddc2ca88c55bcf5d5397ff4d55a4f0cd973f31d5"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaService.onCreate (cognitive 18): GemmaService.onCreate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 4 (5 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"446e19a0c5c190f414b440287596884fc46007ee047dfa23086e5e29bc212a64"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostAgent.getSanitizedRecentMessages (cognitive 18): GhostAgent.getSanitizedRecentMessages has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c669c9e16ad1d2f7530f1da2eb242cdd06ca78a200c37364a869d4f40f0df37"}},{"ruleId":"D2","level":"warning","message":{"text":"HardwarePropertiesManager.pollSysfsThermal (cognitive 18): HardwarePropertiesManager.pollSysfsThermal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), match/switch 2 (5 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/HardwarePropertiesManager.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa68f857f93f88036dfdfb7bf9fb84165c70863ab10a94eb41d7bd7a1eba8c6"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiCommandEngine.volume (cognitive 18): TuiCommandEngine.volume has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 4, match/switch 3 (4 pts), error handling 1 (2 pts) (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cba2e2369c66ed1b4392ab4eb94e9a007c9e8c4d6104ab3d8d479353badcb0f"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiCommandEngine.dispatchMediaAction (cognitive 18): TuiCommandEngine.dispatchMediaAction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 pts), match/switch 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":"app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea99b8a67250a814e0caa7a5e08c8d9588a1d8b3696f74387e9f38112039a69e"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioRecorder.record (cognitive 17): AudioRecorder.record has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 3 (4 pts), loops 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/AudioRecorder.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ef70df29b98a69f71bbbaac4e18a11b8b106ba2dfad9b6c0443fe746af8f28"}},{"ruleId":"D2","level":"warning","message":{"text":"FileToolSet.scoreCandidate (cognitive 17): FileToolSet.scoreCandidate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45fce6598990aeb122f58b7a6112a76bba6a565ebdd781afa9dedbb09a4dbc8"}},{"ruleId":"D2","level":"warning","message":{"text":"AiPhonebook.queryPeer (cognitive 17): AiPhonebook.queryPeer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/AiPhonebook.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d429ebb70ed530fd94a458fdbb14594b41d3ba2d7ef6bae3b69a65ca8281ddc"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextManager.buildSystemPrompt (cognitive 17): ContextManager.buildSystemPrompt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (17 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cab873e5d7774141e38f78215e703176dd676278be5ed357357b1bb501b104"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarEngine.drawOscilloscopeFlower (cognitive 17): AvatarEngine.drawOscilloscopeFlower has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec62444d3910546de5ee4fbc82af541b1bf5f392800954e24d8873972d7a2b62"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatScreenKt.buildMarkdownAnnotatedString (cognitive 17): ChatScreenKt.buildMarkdownAnnotatedString has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":1559}}}],"partialFingerprints":{"codehealthFindingId/v1":"770b8294e6b9ce2f01bc83471e776f104ec6abe322f4f3dde7d378726d8251db"}},{"ruleId":"D2","level":"warning","message":{"text":"index.html.fetchWikiFuzzyAndInfobox (cognitive 17): index.html.fetchWikiFuzzyAndInfobox has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 1, match/switch 1 (nesting depth added 3). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/assets/skills/query-wikipedia/scripts/index.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cccf3e703a7e7b916114fd4dc1688eaa295ed8e1d78c0016a11daba82ab772"}},{"ruleId":"D2","level":"warning","message":{"text":"GemmaService.openUrl (cognitive 16): GemmaService.openUrl has cognitive complexity 16 (threshold 15). Drivers by points: error handling 5 (7 pts), if/else 7, boolean chains 2 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9b40d3d8c1f8a8253c0e1306201b8c8d6b33ee7b6c13ffa9203d52b7551db0"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.handlePickedImages (cognitive 16): MainActivity.handlePickedImages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 2 (3 pts), boolean chains 2, 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":"app/src/main/kotlin/com/ghost/api/MainActivity.kt"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd9854678ec7f7f1b25dae02ab26b93b1140d1cf27cbd62f90cab8589858825"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostMcpTool.executeMcpAction (cognitive 16): GhostMcpTool.executeMcpAction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 4 (6 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":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d49eeb96715714e39c97d56c49fd8d27eacc96ecbcb4b8bda72429668ba460"}},{"ruleId":"D2","level":"warning","message":{"text":"GhostForegroundNotificationController.buildNotification (cognitive 16): GhostForegroundNotificationController.buildNotification has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, error handling 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/service/GhostForegroundNotificationController.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b4a3cd441aa174180b44cd88525fe409e03b33c265404159a7ba88e7e7ad9e"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSManager.smartSpeak (cognitive 16): TTSManager.smartSpeak has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/services/TTSManager.kt"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bb7016f263892b644183bde7d276b05473edf3c5dd1394b4e73033a0ffe2e1"}},{"ruleId":"D2","level":"warning","message":{"text":"OverlayActionRegistry.defaultActionForSlot (cognitive 16): OverlayActionRegistry.defaultActionForSlot has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8 (15 pts), if/else 1 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/OverlayActionRegistry.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b42ee979e40e0cabba36a865e7ae4eb9b3facd8a6ec66037f1c69618baa723e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatScreenKt.CompactToolCard (cognitive 16): ChatScreenKt.CompactToolCard has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9fcae15b94368db401b61628323da52a1a45cbeb2fedfaac55929fd36e2ca2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/SettingsDialog.kt: FileTooLong \u2014 1776 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1276 over it, 3.55\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af37900f2bce1c5325a0c8e87fa89ac0c320316f5dc1889bf0bbf45047a23566"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GemmaService: ClassTooLong \u2014 1364 significant lines (blank, comment-only and punctuation-only lines excluded), 78 methods. The bar is 400 significant lines; this is 964 over it, 3.41\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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab60c099f9c8949443ec0f8b0ff0811c4063a8de4244124f3d0eed27199661b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GhostAgent: ClassTooLong \u2014 1251 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 851 over it, 3.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"18859042ea00c09272296e341cb6c94fc789f815034940552270e155eabb6636"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GemmaService.initialize: MethodTooLong \u2014 initialize runs 298 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"f761ee92826879e301cf44a139d94557817d1a83af010e98328249f246d42417"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AvatarWallpaperService: ClassTooLong \u2014 1178 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 778 over it, 2.95\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab428618b9226d1effac83e0daa6d864344260225da883c1a75070cf6a46f7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/GemmaService.kt: FileTooLong \u2014 1413 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: GemmaService (61-2179). The bar is 500 significant lines; this is 913 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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41d8d87ba2204844c3b81748cf8bb021a429d130eef1c088c887383d7791a7b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/ChatScreen.kt: FileTooLong \u2014 1370 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 870 over it, 2.74\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"998abf5727e9c806117d6abbfc1dcea6dd6b0aeadd7f0c0a6319ae5560dbc818"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GemmaService: TooManyMethods \u2014 78 methods. The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75d1e2b9e4bddcbde428380d4c43ca13d5495fa1b73c80781644c3b7d2dbfa8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/GhostAgent.kt: FileTooLong \u2014 1275 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: GhostAgent (34-1755). The bar is 500 significant lines; this is 775 over it, 2.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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f65fe0b432b80b9e1d50dbfe370ca921733aa8f9a3db5efcb1f78608098004"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SensorFusionManager: ClassTooLong \u2014 998 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 598 over it, 2.50\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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b55cfd2218a926f528d08284fed8341232f76c2e319b00a5e24946b6968562"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/AvatarWallpaperService.kt: FileTooLong \u2014 1197 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: AvatarWallpaperService (22-1861). The bar is 500 significant lines; this is 697 over it, 2.39\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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d4137b766acfc10fd7d64bf2de04c3c661089df85acc1799f65c7c3d95fe61"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hardware/SensorFusionManager.kt: FileTooLong \u2014 1116 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: SensorFusionManager (150-1592). The bar is 500 significant lines; this is 616 over it, 2.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6651e993a53cd331224da548ea2ad98ed0d1893d8aa1ce6f504cdf202b7a3134"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GemmaEngine.streamResponse: MethodTooLong \u2014 streamResponse runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5528fab72ad159e6dd524aaf28c6eb4f6342526adb13db6c5a75dcc82002fd9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MCPServer.executeTool: MethodTooLong \u2014 executeTool runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/mcp/MCPServer.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e485c81acd9c313e9328ff53d867960abde664e6af3d36a2a781235243408071"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GhostDiaryAndCronManager.runDiaryCycleSuspend: MethodTooLong \u2014 runDiaryCycleSuspend runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58a05a32c67ef2587568886ea29ec7dd25fd4038105ff164be354be5bc81fd5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvatarEngine.drawOptionBHexLattice: MethodTooLong \u2014 drawOptionBHexLattice runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c28196835cc0d3e160589496898cd3ae534ba5d4b980a6021b461d1530c13b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatScreenKt.VoiceMessageBubble: MethodTooLong \u2014 VoiceMessageBubble 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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"6235c8ffcb612d9e5134177ab8dd225cc1f2301651ec1aa068996d30905fb579"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: audio/SystemVisualizer.kt: FileTooLong \u2014 787 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 287 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77239cb58e48ab8c7a1f98323e465d6f678937fb7caa6e44cddc0863a73b8043"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SensorFusionManager.registerEnvironmentSensors: MethodTooLong \u2014 registerEnvironmentSensors runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f49a877892e2613850cf9ec6b9b1d75bba722a2d1fb6fd9d3df289eda812d37"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvatarEngine.drawOptionDCubeLattice: MethodTooLong \u2014 drawOptionDCubeLattice 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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9774946f0d02bdc2eca500f5bce58b734fa1ff56913132b21e3ef937abc473"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GhostAgent.tryExecuteFallbackTool: MethodTooLong \u2014 tryExecuteFallbackTool 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8108bcf3c42f843fa5ef847dd388b5e5b8caa9f7345fd4592c19c06fe5d159"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ActionFlavorTexts: 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":"app/src/main/kotlin/com/ghost/api/logic/GenuinePeoplePersonality.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cc69060f252fa51ddfba3ac7e86fe978a52a5e6b037204c8a7e31899a0d6b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: IntentHandler.handleAction: MethodTooLong \u2014 handleAction runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/IntentHandler.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d75bee1e599a48277e9c088ce8bd2a32e329ff004b7e1d30b316b739b521c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelDownloader.startDownload: MethodTooLong \u2014 startDownload runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c9274ebf0c3113f64aa257839bb62f88020f543d5b6c309cd5933ec7df476e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvatarEngine.drawOptionAOrbitalStar: MethodTooLong \u2014 drawOptionAOrbitalStar runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4d89e0f2b6ce3810820a270382a4df071e7e89110bb5bcbf8801b7f3f2e6be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvatarEngine.drawOptionCDeltaTunnel: MethodTooLong \u2014 drawOptionCDeltaTunnel runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"415238708a8e5d573ad25408873677faa51b5cdb3816a2d642dcedb92c05c45e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QrCodeGenerator.encodeMatrix: MethodTooLong \u2014 encodeMatrix runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/skills/QrCodeGenerator.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cc1cebc2438fd22ac73a25c335882d130eab3460186fc0b8d87670f1433e08"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GemmaEngine: ClassTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 135 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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0602b45f1214d8ba8746bbf0f38af3846c616b7176fcf3b58ac4df275144ee88"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GemmaService.onCreate: MethodTooLong \u2014 onCreate runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e067829ba17f6cbbd8a3bb4a4c1a845c373bbecd1f21ce34ce5d43b5a630c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OverlayActionRegistry.executeAction: MethodTooLong \u2014 executeAction runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/OverlayActionRegistry.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"43eb802bbf9f7ec3b75b40c28f033a4ef98538fbba4a8dd73992afcb5f3b9f23"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemVisualizer.init: MethodTooLong \u2014 init 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca009beddcee4b4249cf31939c5412160a14bb64473a7bac6de19ad9779ee28"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemToolSet: ClassTooLong \u2014 496 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 96 over it, 1.24\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":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec98b435a1c2c134b0bd118aff99ae3b21f9db3de61cc3d3ab834a3d8c53b4c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatScreenKt.ReportResponseDialog: MethodTooLong \u2014 ReportResponseDialog 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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba4a50b3574f1235b54a41fbe1a9cd73f42c5abc300a0c7acb7b54ab6a7ef62"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GhostAgent: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac3d2c964a39e430e2097fbba336091e7b5967ae5c2bc45b650de75c46178ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiServer.start: MethodTooLong \u2014 start 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":"app/src/main/kotlin/com/ghost/api/ApiServer.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"815f034beff4ff1f37ed8353fe9f907e97a2d72beb758401b1ce429d4b458935"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GhostMcpTool.run_js: MethodTooLong \u2014 run_js runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"022de529243b89acaab38fdb05d74f142bff791d7d13a0ee4f4486f404ff4b5e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TTSManager: ClassTooLong \u2014 458 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 58 over it, 1.15\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":"app/src/main/kotlin/com/ghost/api/services/TTSManager.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31b39600a9a71c12d194ac621a285f1919493d6374ea739e2450616b9df6eb2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InputOverlay: ClassTooLong \u2014 453 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 53 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/InputOverlay.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"659badc110c4f3e0b80fb7bae58b07958763daac2ce645ff80eecdc7fb3fad0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/GemmaEngine.kt: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: GemmaEngine (37-803). The bar is 500 significant lines; this is 66 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c392b4741999794d8b46fbc82fdda9049be46d0a0bd7da179449939ca2884534"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/EdgeLightsManager.kt: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 54 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad08605e7b3b33526e38b1a14d52d7b60d411b1f04bdf24d77c61d4768a0e20e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GemmaService.onStartCommand: MethodTooLong \u2014 onStartCommand runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f0e4a46bd26d8e64c89282dd7b57989e2b6ec235ac3f1e4f3b64fcf58cfbc0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hardware/SystemToolSet.kt: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SystemToolSet (20-722). The bar is 500 significant lines; this is 13 over it, 1.03\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":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df966469f273e902450adb65e230b0aa3708c5a771f78fd45f231fac4ec1db56"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:808-1004 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1024-1307 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1327-1536 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1547-1769 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7f3a675e26cbf81ae3ea3f50ce1d9423e3b34caba12228a63113bb4b3472f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:178-205 | app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:211-237 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaae4db9cd96cd2b8fbb3c48c0ee5f3b1289856118578b88312d26092ed554f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:203-233 | app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:239-259 \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":"app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c67ac3377922ad44ab33780c82aa0c027ee9810607bf3acd834a51fc6f67707"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/kotlin/com/ghost/api/GemmaService.kt:1356-1376 | app/src/main/kotlin/com/ghost/api/MainActivity.kt:301-315 \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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec79cb160c7d900b904c5c20d8f9a4c653944f84aad4fe311af86c64490ad49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt:58-77 | app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt:155-174 \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":"app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc112e28903de684463f7ed77f745cd4a15c68984d51506e2816cffcde2fc224"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1787-1797 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1802-1812 | app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:764-774 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8171a66267ebeb9fafef1b79eec18c686278c79f544e7779a8fae63f356fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/kotlin/com/ghost/api/ui/InputOverlay.kt:577-589 | app/src/main/kotlin/com/ghost/api/ui/VoiceInputController.kt:240-249 \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":"app/src/main/kotlin/com/ghost/api/ui/InputOverlay.kt"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"479888e4307f92fd24cd094135b180508690cdc77e948701ea28b6060552ee44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): app/src/main/kotlin/com/ghost/api/ui/OverlayManager.kt:316-324 | app/src/main/kotlin/com/ghost/api/ui/OverlayManager.kt:326-334 \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":"app/src/main/kotlin/com/ghost/api/ui/OverlayManager.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bf3504634fd6304986e9ed9e7bab774a780f7add52b414c902a3690a93d38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt:1022-1029 | app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt:1031-1038 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:624-634 \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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"6355caa046f75e34ac95faae08b56aa4f6ab49112aa1f662f0212b8af14825f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:729-754 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:763-788 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ba2d1f1bb6ff1915135ccd20908aeea0fbdf12df2b6239765ce9c13e9ce8f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2115-2140 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2206-2231 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2115\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cdd7ef6c10a289063f44003dcd3a2271ac2c7fa99a3f9029bf14d33819e719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2067-2089 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2159-2181 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2067\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":2067}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3420fc955ca4f70ffd55ee93660564684b1c1f0d8075f24cd82728148f1b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1028-1047 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1140-1159 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1028\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bedff0556cbc89787b85172f511a3f32b7de23591c64e3392c3845b49306fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/GemmaService.kt:1357-1372 | app/src/main/kotlin/com/ghost/api/MainActivity.kt:302-311 \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 \u0060app/src/main/kotlin/com/ghost/api/GemmaService.kt:1357\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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f367c01b94012ce04929a7daf7d8d9707b6c5c3c978a3c0bb06861d070afdd7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:177-192 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:227-242 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:177\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b014e0bb7cf427c1c1c992666065edce4a8e92203b86ef3896cc9804fd874a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:708-721 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1221-1236 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:708\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad35204239d48679822d80b606c4a5e21bd7663ffc88099ffadbfcd23bf875a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1923-1937 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2075-2089 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2167-2181 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1923\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"17607c4b87f2a7445c514e5bccf35ba96c2c7e2e59cbf59ba0d746f547b4f671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:937-951 | app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:1033-1047 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:937\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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"452974d48cdf26309320218016024072f38aa5fe5e42c81391c0ad33a2ed85ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:1092-1106 | app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:1228-1242 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:1092\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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"33887e6904af4af21dd0214cf118f704079a206f69862faec7d1bf4a452163c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1689-1703 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1786-1800 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1689\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6131a5972cdc5a008564d53bc8106ce4395f13351be1e324268a8163eb22c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:737-749 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1786-1799 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:737\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d933b747b184c26deae41f9ae0eeff30575d524e9b4ba15e285dc5c5fa7c1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1143-1154 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1452-1462 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1610-1620 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bec107b65960c9cf051b7a0147aee29ad23368bf4291783e13471c17bd7b12f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:708-719 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:737-748 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:708\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d265ffbc453931e4c6623a497336dfd0dcbc456efdc4bf266407e93d8db3847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1221-1232 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1786-1797 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1221\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"773a44e22d62f0c16760288d223178cf7b95df4a9c925a2ee20d3a05a8908f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt:201-211 | app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt:234-243 | app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt:286-295 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt:201\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d365ed2db28dfa843a96d641ad8fdcb981e73340522cf635bfcd83b9558a0ba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/GemmaService.kt:1078-1088 | app/src/main/kotlin/com/ghost/api/ModelDownloader.kt:375-385 \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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"317b4000b3a0cf06852966e5b9b43630f32217941d43ebe4d3336217d12c0a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/GemmaService.kt:1424-1446 | app/src/main/kotlin/com/ghost/api/GemmaService.kt:1504-1525 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/GemmaService.kt:1424\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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ee19bd596f4782028826fc5a68fe340bf7b88c6b23b7a1474b5b3ab50e9dd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1278-1288 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1369-1379 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1278\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1367\u0060 calls \u0060Spacer\u0060, \u0060height\u0060 and \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1275\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc94542e4a27f00e8369170a58855a232a4aecea8964902bef777fd374966f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:919-927 | app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:958-967 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:919\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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8d5d180db84b00f33b227220914ae4eedf4b49a2da2d67075a8f1a43a16d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt:215-223 | app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt:270-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 \u0060app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt:215\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":"app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd415718eac13d3e3fe534c4a7b9dd7fa9ffb10e9d9f65927c156068622f5205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/GemmaEngine.kt:269-277 | app/src/main/kotlin/com/ghost/api/GemmaEngine.kt:481-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/GemmaEngine.kt:269\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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30283e62cb6a46a9cb6cad8cc3b5ea36241418fc1b4e17eefc85860dbdd8b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:726-734 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1201-1209 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:726\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:725\u0060 calls \u0060listOf\u0060 and \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1200\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e91a4228877d8ede487383c0e88b991cf0e620f4acc34232d7db6836af85d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2312-2320 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2365-2373 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2312\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":2312}}}],"partialFingerprints":{"codehealthFindingId/v1":"79492adcf79c1a5196f2c0a25676d16e6e9dbe6391774612b40b0876c2862cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:949-956 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1143-1150 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1452-1459 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1610-1617 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddad1064294d6593fbbf54e2386908e238a0bbfce642afb492db732bbb63701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ApiServer.kt:54-60 | app/src/main/kotlin/com/ghost/api/ApiServer.kt:160-166 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ApiServer.kt:54\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":"app/src/main/kotlin/com/ghost/api/ApiServer.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66bf777b8192491b389617ea7d694f3f8f79210a32574b48bdc806419ac2cb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1397-1403 | app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt:1424-1430 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"6089dc773716b75bedc5d4cec2065ee551c1ffd378a5ff0c2bd1efffd87099f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:463-469 | app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:485-491 | app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:504-506 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:463\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:462\u0060 calls \u0060coerceIn\u0060, \u0060toFloat\u0060 and \u0060app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:504\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e332435711d0f5171a6541e38ef9ca5d6d15d1a0224695a51b09f448c85304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:204-209 | app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:240-245 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:204\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:211\u0060 calls \u0060isProtectedModelFile\u0060, \u0060mapOf\u0060 and \u0060app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:247\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":"app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedc87b61e3868bde15a7753bc30a4a889820aad1b0105f735091b4681d7b42a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:453-458 | app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:475-480 | app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:498-501 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt:453\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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf22310d64150dd7340ecd6a9c407148e5eb74ba71d78632ed16415a5462c32d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:674-678 | app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:689-693 | app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:713-717 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:674\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5bcc1513edbdd8528f412f5c75a24bd30e0736a0639c5937f73df360f33ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:645-649 | app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:672-677 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:645\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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72020350b1af5ee07f2226c3bc0c2cdde04e31ea671c2990afea54cbb9f68ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:1337-1341 | app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:1583-1587 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2957d88af4141b69119acaf3247ae0bdc82ed0d91c45b997184de70dc75db260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:166-181 | app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:192-207 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt:166\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a598b21a11bd0fabaec0213d14a27caaccc8f72964a851bbfdc366e6bdfa05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:520-534 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:783-797 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:520\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d333bfcd18b791314ab246c42a03a8330547c700a01dff7ebd46682734f3fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2094-2107 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2186-2199 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:2094\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":2094}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd1c67219aa6f41e98e1026e0086b2f259617df38ec12eebd2ef62d71cc82d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:477-487 | app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:501-511 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"508b88f0d76cd3712b63cddab96becfdefef41df41a8cf5e9db22e00dd6c1033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1247-1257 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1334-1344 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1247\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f875c5c11a0a1a3054a4347773bcf42da032e9001ddc51412d42c7558d78250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1013-1022 | app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1125-1134 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt:1013\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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab63d0eb7adfd2f4db97f391ce10db39b3a6f47cf209b895ebe5cc928253bade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/GemmaService.kt:1465-1473 | app/src/main/kotlin/com/ghost/api/MainActivity.kt:456-463 \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 \u0060app/src/main/kotlin/com/ghost/api/GemmaService.kt:1465\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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bcdb2e155769baff77b14638a9b082af0ed729474908b7eb7f9d114ba32280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/GemmaService.kt:327-334 | app/src/main/kotlin/com/ghost/api/GemmaService.kt:1465-1472 | app/src/main/kotlin/com/ghost/api/MainActivity.kt:456-463 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/GemmaService.kt:327\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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3b8485ef0e4f4095b8c86aca212d400d4d8d113895bac6c79e56ae35a2c6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/ApiServer.kt:77-83 | app/src/main/kotlin/com/ghost/api/ApiServer.kt:172-178 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/com/ghost/api/ApiServer.kt: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":"app/src/main/kotlin/com/ghost/api/ApiServer.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e993adb24c00a10d82bd9b247f7a4d5b61138a5c7ff3ceda3c6f4fe4facbb0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt:102-108 | app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt:119-125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt:102\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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c29551657c6872f42713b5d6dfd5af5775503752d21807dac5de5c54f0a08a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:196-202 | app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:228-234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:196\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:194\u0060 calls \u0060putExtra\u0060 and \u0060app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt:226\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9523bbe97d138715e899225bc334e5bdb201b17c50103a3a86be1295317d5071"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/GemmaEngine.kt:515-521 | app/src/main/kotlin/com/ghost/api/GemmaEngine.kt:550-556 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb8bf47fb95143168940484a2e4a757d00151ecd1972b1da0b08e442336b7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt:356-362 | app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt:367-373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt:354\u0060 calls \u0060toString\u0060 and \u0060app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt:365\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":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e7112bf852c96625dd9bd9952a293ea529cf27e0cf18ded2d1769dba31470b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:204-209 | app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:240-245 | app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:369-374 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:204\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:211\u0060 calls \u0060isProtectedModelFile\u0060, \u0060mapOf\u0060 and \u0060app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt:247\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":"app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bc424d0a1ea46afa270645ae2b054099fcf955ca7cd0c4d466ecf3e2a4c70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/kotlin/com/ghost/api/GemmaNotificationListener.kt:45-50 | app/src/main/kotlin/com/ghost/api/GemmaNotificationListener.kt:78-83 | app/src/main/kotlin/com/ghost/api/GemmaNotificationListener.kt:240-245 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaNotificationListener.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa017778d20915f39dee2b4db7b76cc57426ce1d1ec482a1d40e3bb421c5d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/com/ghost/api/GemmaService.kt:1053-1057 | app/src/main/kotlin/com/ghost/api/ModelDownloader.kt:356-360 \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 \u0060app/src/main/kotlin/com/ghost/api/GemmaService.kt:1053\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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb80a66cee0389fec1814c69dd355f9da4c4e01c32e231f73bfe72511a159b7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UiMacroToolSet (LCOM4 5): UiMacroToolSet\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":"app/src/main/kotlin/com/ghost/api/hardware/UiMacroToolSet.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1ee459bb31e6716053394c39f38924735f03675fdcaf8261e384240c27b784"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FileToolSet (LCOM4 4): FileToolSet\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":"app/src/main/kotlin/com/ghost/api/hardware/FileToolSet.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3271e6785374e3d35b6ee749d1b4f00b768dedbe21afa4fdb9d270062743eac4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt: app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt changed 49 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 146 in SettingsDialogKt.SettingsDialog at line 48. 12 of those changes were fix/bug commits, and the other 37 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bae1e20e6d8d11f67d95e9e735c0dd059d9affd0ae25141fbb663125f1c84a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/GemmaService.kt: app/src/main/kotlin/com/ghost/api/GemmaService.kt changed 77 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in GemmaService.initialize at line 933. 38 of those changes were fix/bug commits, and the other 39 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/GemmaService.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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebec25beeae6c6639302c3c8c895b9c478c18026684b6bbdd68b71791f72000"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt: app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 149 in GhostAgent.processUserMessage at line 392. 17 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/agent/GhostAgent.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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4485212a5d99bba12f6fb4512ccc8d4b913a47cbb43af530cba83771c4011ba4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt: app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt changed 74 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in AvatarEngine.drawFrame at line 496. 23 of those changes were fix/bug commits, and the other 51 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea893140a7302ceb210f76babc471b0683f0e5b10f99cc3919a406fd7669545"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt: app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in ChatScreenKt.ChatMessageRow at line 394. 13 of those changes were fix/bug commits, and the other 24 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0bb1fba7a25026bb2af21591dd4bd363861127c4c0402fb520a4e797423cdc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt: app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in SystemVisualizer.init at line 434. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47ce69be637f7ce6113e4970acba8373a54279cda553dedce0510c8d743ce7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/GemmaEngine.kt: app/src/main/kotlin/com/ghost/api/GemmaEngine.kt changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in GemmaEngine.streamResponse at line 243. 13 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/GemmaEngine.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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee746ef72d21aefeee03c8ebfaafa871a7c7ae5542dd43e9136c9c7d2a966eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/mcp/MCPServer.kt: app/src/main/kotlin/com/ghost/api/mcp/MCPServer.kt changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in MCPServer.executeTool at line 151. 5 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/mcp/MCPServer.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":"app/src/main/kotlin/com/ghost/api/mcp/MCPServer.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88c5f18c5b1d98fcadfa05afab96e7a2054b0cebcdce5a4bdc4672235abb350"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt: app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in GhostMcpTool.parseParams at line 405. 12 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.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":"app/src/main/kotlin/com/ghost/api/agent/GhostMcpTool.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82f4e52d58512c0cce7b3872b036e938898f05f932a07679b3abd6045ee7455"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt: app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in SensorFusionManager.registerEnvironmentSensors at line 617. 8 of those changes were fix/bug commits, and the other 13 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1f0e1900fe428dafbd5dab925bc1773beb0cd87200329a77cf02b1d17cd6a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt: app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in SystemToolSet.app at line 66. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.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":"app/src/main/kotlin/com/ghost/api/hardware/SystemToolSet.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e976d5a9779ad6f90449cc7c2982677e40e3949dbe82977dcb013825a8395e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/ModelDownloader.kt: app/src/main/kotlin/com/ghost/api/ModelDownloader.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in ModelDownloader.startDownload at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/ModelDownloader.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":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2005474a6351d47651142f140e2fce7ed62f2ab0dd8e43d7d038ce073bdeb72"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt: app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in BaseEdgeView.drawWireframe at line 531. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"99def6e8902f5f7dc20d2bb19f810d8c7d7b5d1c7a3e2a6917ff51cda8ae065c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt: app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in IntentBagger.bagIntents at line 88. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/logic/IntentBagger.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":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1756ec15163bc7ceff11825412c62b0bfb2382a9f9db4a6715150ca9b7e1ed4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/logic/IntentHandler.kt: app/src/main/kotlin/com/ghost/api/logic/IntentHandler.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in IntentHandler.handleAction at line 16. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/logic/IntentHandler.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":"app/src/main/kotlin/com/ghost/api/logic/IntentHandler.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e93ab695d95194bc9804496dded2e1c152b44da991a141d38cfe68dfefdd24"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/ui/GhostWorkIndicatorOverlay.kt: app/src/main/kotlin/com/ghost/api/ui/GhostWorkIndicatorOverlay.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in FlavorTexts.pick at line 161. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/ui/GhostWorkIndicatorOverlay.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":"app/src/main/kotlin/com/ghost/api/ui/GhostWorkIndicatorOverlay.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"579950711ebcee1c0f12d94df127b557d1991347562de0ee4d16d2a2f6487fb0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt: app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GemmaAccessibilityService.getSemanticScreenDump at line 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.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":"app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e91b55998032c148dcaff0434f3d33c0abf3c58f2bf516cc5c3e0be5da07de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.kt: app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in FastPathRouter.route at line 88. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.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":"app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"54bb952ff2bc145dc7961c4b3a8a292be49591bdb32340e5c7f26c2783487ff8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/com/ghost/api/logic/GeminiDirectClient.kt: app/src/main/kotlin/com/ghost/api/logic/GeminiDirectClient.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in GeminiDirectClient.generateContent at line 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/logic/GeminiDirectClient.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":"app/src/main/kotlin/com/ghost/api/logic/GeminiDirectClient.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"953bce834ae2fb5718b79283ed7195e75f32bbf6b76bdbcc7ac600da639c976c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/kotlin/com/ghost/api/services/TTSManager.kt: app/src/main/kotlin/com/ghost/api/services/TTSManager.kt 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 15 (its worst body is TTSManager.doSmartSpeak at line 554), 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(peers): swap Copilot glyph from \uD83E\uDE9F to universal Unicode \u229E (U\u002B229E)\u201D; \u201Cfix(peers): swap Copilot glyph from \uD83D\uDD36 to \uD83E\uDE9F across SystemVisualizer, AiPhonebook, and GLOSSARY\u201D; \u201Cfix(visualizer): swap Grok glyph to \u2205 and restore \uD83D\uDFE3 Qwen \u0026 all peer glyphs in setActivePeer\u201D; \u201Cfix(sensory): replace stamina with energy, debounce notification announcements, and append visual cards to chat\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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/services/TTSManager.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":"app/src/main/kotlin/com/ghost/api/services/TTSManager.kt"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fd72d4d6a6dd1860114baf14d187fb58db34a680cd742f645a9d70118d1a2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: app/src/main/kotlin/com/ghost/api/agent/SessionMemoryCompactor.kt: app/src/main/kotlin/com/ghost/api/agent/SessionMemoryCompactor.kt changed 8 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 SessionMemoryCompactor.compactOldMessages at line 15), 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: \u201Cv4.40.1: fix consult_peer knowledge synthesis \u0026 eliminate mid-word prompt truncation loop\u201D; \u201Cfix(sensory): eliminate context tag leakage, sanitize preambles in UI/TTS/history, and harden zero-leak sensory rules\u201D; \u201Cfix(prompt): isolate subconscious telemetry, fix emoji choke false-flush, upgrade Gemini to 2.5 flash, and add TTS readback for peer consultations\u201D; \u201Cfix(stability): resolve startup ANR crash and eliminate stuck thinking deadlock\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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 23:08:49 \u002B00:00\u0027 --until=\u00272026-11-12 23:08:49 \u002B00:00\u0027 --full-history --no-merges -- app/src/main/kotlin/com/ghost/api/agent/SessionMemoryCompactor.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":"app/src/main/kotlin/com/ghost/api/agent/SessionMemoryCompactor.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f2167e28ff4e3b0e798a42149f696025e374be90e951fed47cc8c60cd63cb2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Read location asynchronously and cache it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bfa743785e9cf7ce50d9762b48009dc4647d07ec1ece4edcd4d07dc2727233"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060app/build.gradle.kts\u0060 makes this repository a deployable product (line 6)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/build.gradle.kts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0b7e6affaa93ee6bb19a08419940b0b329e278f472a33ac0b60c64caa16c5f"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060cleanForTTS\u0060 spells \u0060TTS\u0060 where 43 names in the project spell it \u0060Tts\u0060: 43 of 44 names in project app spell the token \u0060Tts\u0060 (43 of 44; unit: names in project app containing \u0060Tts\u0060). Peers: GhostAgent.toolSpokeFlavorTts (app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:121); GhostAgent.recordFastPathTurn(spokenTts) (app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt:1722); HandledFastPath.spokenTts (app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.kt:27); ActionFlavorTexts.appLaunchTts (app/src/main/kotlin/com/ghost/api/logic/GenuinePeoplePersonality.kt:65); ActionFlavorTexts.browserLaunchTts (app/src/main/kotlin/com/ghost/api/logic/GenuinePeoplePersonality.kt:87). Rename to \u0060cleanForTts\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0351f4e1bf98758a5d0bbdc3c19a9b8821dfc456982837a46c9a8be3a703fc0"}},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b0367e7ea9bdd389991714fe83002077989c3eac9db9d8bdc3becd4dd073aee"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D32","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":"e63ed7912656f193b8eab2fe7ef4988f71c93bb9cb83777ec19deec29864025e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AvatarWallpaperService.kt \u2194 EdgeLightsManager.kt: \u0060app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt\u0060 and \u0060app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060aaa39e7d\u0060 perf(overlay): pause wallpaper render loop during overlay summon \u0026 ha\u2026; \u00605b75cb09\u0060 feat: complete punch list of 8 dogfooding and visual audit items; \u006010a66d23\u0060 Refine edge lights chevrons (90-deg angle, 5-tier staircase) and Seve\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d66e8a0aa8128f204e7a30bd4e8bcd56e5e9e8396a314e96841d3c9d322e0c"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AgentPlatformCallbacks (22 abstract methods): \u0060AgentPlatformCallbacks\u0060 declares 22 abstract methods: \u0060showThinking\u0060, \u0060cancelThinking\u0060, \u0060showResponse\u0060, \u0060onMessageAdded\u0060, \u0060onThoughtUpdated\u0060, \u0060onThoughtComplete\u0060, \u0060onEmotionSignal\u0060, \u0060updateNotification\u0060, \u0060showConfirmation\u0060, \u0060speak\u0060, \u0060stopSpeaking\u0060, \u0060storeConversationTurn\u0060, \u0060writeDiaryEntry\u0060, \u0060unloadEngine\u0060, \u0060reloadEngine\u0060, \u0060isEngineLoaded\u0060, \u0060getCurrentThermalState\u0060, \u0060getThermalDelayMs\u0060, \u0060broadcastMoodChange\u0060, \u0060getRecentConversationHistory\u0060, \u0060createCalendarEvent\u0060, \u0060getSkillsList\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/AgentPlatformCallbacks.kt"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5628e38e402542682ddbed001261829e7a07ed2fe5d2060b69df96aadb4b917b"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 79 JavaScript/TypeScript, JVM production file(s) this check read across 2 module(s). Each was searched for its ecosystem\u0027s logging libraries (JVM: SLF4J, Log4j2, java.util.logging, Logback, kotlin-logging, scala-logging; JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060app/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":"app/build.gradle.kts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8170fb04fe78176a33c2b44461eeb0bf2839b74c80362ebf7185e17a3b446ff7"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!url.startsWith(\u0022http://\u0022, ignoreCase = true) \u0026\u0026 !url.startsWith(\u0022https://\u0022, ignoreCase = true)\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/com/ghost/api/GemmaService.kt, app/src/main/kotlin/com/ghost/api/logic/IntentBagger.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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd0f3257c43d77b980cf678efe651c3653fb73f1321a2c4b57554938b4afc31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(name.endsWith(\u0022.litertlm\u0022, ignoreCase = true) || name.endsWith(\u0022.gguf\u0022, ignoreCase = true) || name.endsWith(\u0022.nexa\u0022, ignoreCase = true)) \u0026\u0026\u2026\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/com/ghost/api/GemmaService.kt, app/src/main/kotlin/com/ghost/api/ModelDownloader.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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7e274311b39e532eaeb93b996830853d8e310ed90bd9b2298e2b3b429194e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060file.isDirectory \u0026\u0026 file.name.startsWith(\u0022thermal_zone\u0022)\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/com/ghost/api/Constants.kt, app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.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":"app/src/main/kotlin/com/ghost/api/Constants.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8f41c4bf2732a34f9d4fa9288e94f0c30b5ce7525547054503f9a19bf64663"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060method == Constants.SUMMON_METHOD_EDGE_NUB || method == Constants.SUMMON_METHOD_BOTH\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/com/ghost/api/GemmaService.kt, app/src/main/kotlin/com/ghost/api/ui/OverlayManager.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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0451ee751d35459179be9128b2347b9059678db890cdee3996e88c0bf33e6ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == BatteryManager.BATTERY_STATUS_CHARGING || status == BatteryManager.BATTERY_STATUS_FULL\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt, app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.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":"app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86915cb9e33fcc3a4031859a3c96b17ed53e56e27a7c665c819215fb2f820e7"}},{"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":"app/src/main/kotlin/com/ghost/api/Constants.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6187c03e3240db1b541d838dc7a32f3dfe429e477d5ae2c2c1de1f748bbb903e"}},{"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":"app/src/main/kotlin/com/ghost/api/Constants.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b2570257c7a959870dc8ece928eae227e21526a4ece6cbe1e8b94cca7c0696"}},{"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":"app/src/main/kotlin/com/ghost/api/Constants.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"956541b577e2a3bc79dfb3de8c2d542fc55ba0e0a8472c30664bcc5860d1dc11"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/Constants.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b3078a9c2ecd814745b628a340ed95be468c2b5cdf201307db95eadeb77a17"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaAccessibilityService.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2cd40fbf2411038f5418f5c95b1fb427eeecd2dcbb3b63a64131ad627cee9d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4736bf709f5c624ea733c4f30cb39ccf7598ba764944957fe0c04423dd7bce7d"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b015617182b10e6c99f6ce34b1d0dd028b975eeb4497d99491097ae11972b4d"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0292fb0a369a99019a11afbee1796d78f6a173b99379bbaa6b3c473c4797781"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f24e57cfdb606c4f58198869b32aa3ccbb1e5ff4f5bb32dbf985e03bd3e640"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65c222d83fd0785de5df426f374053f016ffc198c9511099dc1ae670bea531a"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cfc6c08fdf0178961689419019f38c111803d6ef10633cd295b21a548c5986"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c77d2330ec0cdbe2d126b4f33c8cc3c542fa3b8e11d0ac973e0df2e1fd0a509"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefad601f3a8e62f11e3231225279e370df6deaa273383274fda2e9a6a6fff2f"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f259e62e1deac6dde8ce3822b416d68c8922b029523ec57242d73a1921a20f"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"3061fd6d892a69250c46a438f6080a63c0221cacf4a9fe9c9342eb53cce3bd06"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9c3be6670b442f1860d727b685fa4fdd5f9d7b55cf43af3c644ff381adaaac"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"21122cce8aded2a598df4a51437534580e4a7df01414515738e25b83cc351851"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"f623ed7d4a90232c3bff197420bd8b81e7e1d368f4e062f7f4fc34a0c972bf4f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b132eb01b17410ac588ba77eda15a2413b9ed527fb2616f0d0e54f82fdb3765"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a821fb343b6b4f06b47adefc6a99175afebd19fecadc4def718919198be3fd"}},{"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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcae3a31855dde3b368a0d5fdfd9508db242d4b9ab2d6198569b3e348be4c448"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/GemmaService.kt"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a0a922000b549b28d21f47b0a7b5ba1cb4e784c5fbebf69cf00cee548ef2ee"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/MainActivity.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad96b61ff2b0b370b17e3d546a683c2560b77678e04bb32d5480785f81895cc"}},{"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":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1f8a1b734c14181b8f87774cf4ad746f227a670698f2451198f00aeefccc07"}},{"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":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f488cf020b8a029b07c476dc6dbc2ed0afc3aade14c3cc834e15b299a74792b"}},{"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":"app/src/main/kotlin/com/ghost/api/ModelDownloader.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7093161361792935baaae7a0a5530aa90db0bc747735f5c9d5a85c651d274d9"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb1ff3f6ceec39629b96b14cd990c70776718004bf7da4dfe52da0f771ea208"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79a20a4eb0b0b183510faa7b7ae992cae75b58dd4691cab2327899031d9374b"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fa0be7fc7948ff6e1dcfcb2efd5ad2ee63bf02d318382c226110f069909d22"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7d30c0044388278d59c023cb443be2ec4d531bf848c98378c2b58beb0ff31f"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0495fa5fb4fc10b38008a74120dcb1da3bcee729b1ec398a4113b5a90ce1d03a"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"e807c9a7293556285dec3972177b15caf27802ef4f94ac1525a7f201be32456c"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"20314d6ce45e8a0f7664c7da201051eaf956058658cd942993438d7aeb01bee4"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/AvatarWallpaperService.kt"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"9395f9785c8709b922a41aa255f62e623f54c790f4e1f92171cd1aaa634d251e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcaf0b4fa70d19c2e59989d7642c94aca38f4999909d5371aaeb6be6a6835351"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7c147213a39c651d9a4b14863242f016f7621a0afc3c338dd0bcd26851f349"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/EdgeLightsManager.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca1f54c4aba6e8ed11ff778c332041c4c20b394f49d2b3a33efdd2a4ceed070"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/ui/EdgeNubOverlay.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62f631f01999557cd48024e11a9833a6b3ae966d568624b7d38de599e1f3323"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/InputOverlay.kt"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"7324d5fa6ec837c8342ea1a0ff6076a34bddc3cfcb1c9011264f5f85eb127b4c"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/InputOverlay.kt"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cfc1a93dee126a9205eae6b247bd45f8569f8251dc2879e9a0eaccdc945ed6"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/OverlayActionRegistry.kt"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f5c226dd534a034079045d944fb198a851bdd4c183260108f8db9e76f760de"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1f39eb897faaafb5a05586fc4a9577c0f1740870ff86c2a7e2a07210e14ae2"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1451cc82c0536b045b9121108123ed36144079671e2196080cbd1e121534aae"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a48e2cfa26d89f033033831d8d5160ac755a19f75652dcb28b531684d640d5f"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/screens/ChatScreen.kt"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c41967474ebdc607f43d5f918b062bb995e825721f8fd514a6baa4c29b0b13e"}},{"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":"app/src/main/kotlin/com/ghost/api/ui/screens/SettingsDialog.kt"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"f719b942a33382363c90ec8b0a97231d7db8f9af004885595e884c503f6895ed"}},{"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":"app/src/main/kotlin/com/ghost/api/skills/SkillManager.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea236b33dbefc911c129405dc1adbf9b623ca511cb47aadfcc8c3c24f6afe9c"}},{"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":"app/src/main/kotlin/com/ghost/api/skills/SkillManager.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b366aa3c4c856d4610b05034e677ab8096acadb1781c097ce42d555d7e1e45"}},{"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":"app/src/main/kotlin/com/ghost/api/skills/SkillManager.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f27284e3643e9a59af0ad2ece061cb83aa4a2b806f3a29e5846eaf2de8d2a6d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/skills/SkillManager.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea25faf3c5e0d11b27796148e68f74056403c678a040771ce5c9834a59d4a963"}},{"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":"app/src/main/kotlin/com/ghost/api/services/TTSManager.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca45db94c3c20fdf988c02ef49b37bdb3e396fe739f310beea57d48cd792789"}},{"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":"app/src/main/kotlin/com/ghost/api/services/TTSManager.kt"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10bf381b1290fb5a266dc6017cf62b6ab7632212f54ed4ec287f2876d18f4ea"}},{"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":"app/src/main/kotlin/com/ghost/api/services/TTSManager.kt"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ecb5917ab7f25f35cd8444292815b304f1de224a58b35bc98d1bdcbaf4b192"}},{"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":"app/src/main/kotlin/com/ghost/api/services/TTSManager.kt"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"951223e20cf65171e8dce6ed31351d446eee3ae5e2dcfe2a71ec644d4ece7fb9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23fef7ed43d8c3606ed1fd254092870d5f60e69046b44303be7e205cc7b8a8c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/service/GhostDiaryAndCronManager.kt"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"a592583290abbf4307fd23234c45f67287e42179b68baa325bd95cc49d64ef72"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/service/GhostForegroundNotificationController.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6d66c07e62262fd1c94cd7252f2c8ba1da127431416c4fb07b4adc92120c52"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/service/GhostForegroundNotificationController.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87a60e51dbc41f0b3439ab0b4a96feb3f8d0574f9fd6af913f145738bea4033"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/AiPhonebook.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3444897725c110384b55d64ae1e30911a50e2ac65cf8d4ca400e083b8a309e18"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/AiPhonebook.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f13bdb1a2b2a25a2f217fddd9a25e301f329841945052508b3756f7022f634"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8034d516c21a36d347f7941e825bb8584261444d058a7be5560c19a44b81cb9e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2381af0f9aa8975eb82415049dc969ba852f49cbf039785cb0e81594eda66eb0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c5412213d0811407ee883fae1842fef10db7f4c56105dbbd53535ff2256ba9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e8192bb97bee00346d429e1f0a870bc2b35693c4c79f236ba8560036158bc0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"141c139fed77ce2cdaa0aa38e2e4e43958ad38f3b82a1b1b50de343a7d85bd1f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"856e44d6e5512fe15f8a1482146631064867a7f51abaf7aaa254fb6cff10777c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"410573ee18a26bdf4b74353c8d1ebb47c809ba5e3abb634d3df3c0700c69f507"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefb287dd2bbee05ff62fdc9f27e580b0817a7cf3734cd5b56faaaf227ff6942"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a51cc11f073e1f39d3c4d86e8f11c04b862b53d9a0a8463e9e83ce9f7afac0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d636e61dcab2d48090c960aa31966d1f963d3f3fd9b1dd64f73515b4f17815d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\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":"app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4ee8cd65fa53e1909de3dd0c7288ed941daba6a458b7a1e45333d76e311367"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Throwable)\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":"app/src/main/kotlin/com/ghost/api/logic/FastPathRouter.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e786216227ded39dcfa14db29bb3f5ee4b313cedfe26235c9d3eb1871fcd4e"}},{"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":"app/src/main/kotlin/com/ghost/api/logic/GenuinePeoplePersonality.kt"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"70669e52c5eb0da291c3aa42b8a67ba516027e0ff3eff05f82b5402259f9ea96"}},{"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":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"80096d0f7c350e007e2df3675ef05336bb7544caff1a34c5812ec7092e82a9e3"}},{"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":"app/src/main/kotlin/com/ghost/api/logic/IntentBagger.kt"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"b729692a504df8f39742e7856d1ad55a288233cd027565b157a5b080fa4390cc"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/AudioRecorder.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5daa27e092a070d3ab2ad7b005ad35efa4dcc7baeff295deac8e0da3dce6f84e"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/AutomationToolSet.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb003ff24ee06af715796786d74218d2c12b7111125c3f1d69d815ba2df7bbdb"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/AutomationToolSet.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc3f7bb4e2fbc651428e5285b7192c8bd918ad9c7ef1a8f7c24c4b102e6e305"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/HardwarePropertiesManager.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d5861cff16c5e5ac8c553171946ff241fa32ecfa1c2739e7b3bc51b2c65330"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/NetworkToolSet.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f9a048d197ecaf9c1d01939c23e9ad9fc35370857b660aea02215b1aff7c8f"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3692d338ccb3e06368e6621afbb99bb9c5de88f8a8525a39acc96c7cad75c3"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e31b7ed3b3e90a87c73c38f83f07e3ee9eefbc7f9b710fef2598875182b4600"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"8224ea53d7422d96458985c03416a58a911cf0dffda80372143e8c30e431f0f9"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb4f483f64337b7bf4ae57b4bf98cefd732d3b60d8e2675894c84628c72c304"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae2f9d5e9bf2f0452011ace4a07ac6480828b16c4e46a4a82f193dbc0a94c12"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of \u0060close()\u0060 masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: narrow the catch to the exception this release can actually raise, and record it through whatever this codebase already uses to report problems \u2014 or, if it truly cannot matter, say why in a comment on the catch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"02372b6a82ffc453094a7afad1d748ac0ab580893ce4a2939b540cc88a0c4e48"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3a247103e64274df24e4d1b92bebb547aa27f48808dea51ba72da9923366f6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9f6636003fa9d0114f7a6e5022b59a3c18936402e1e75cc8e02a695b6d7d3d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36186c9eb767b25478f6854d7d66b566663e81043d1ea9baf75e564b76633d2"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"12774ca3380886c8e6969c10f7af2165e487360703ee0b2466d826c357a3826a"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"432194703e36e8ba73875b97f86b832abae8fcd1cd93b1d15053fb4792ce02a7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb93c7e80f84f2211650235e7396d0bb83e5b280752f8322e39dc2deabfcdc99"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5cb3e9d13c423a05d9f0cdcbaa35017913b9331df8d66d4bb24d1d5aecd4fb"}},{"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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca22411757fa4d1acfc84e90542ab101dcce9be9fdaba23e1d4884ab8625fe02"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"101f4fb9ae932a4c66435f21310cebaf4b4971fa843e758180de80ce7511faf7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/hardware/SensorFusionManager.kt"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc0c961ec4217e262a496506cebf540a2a20d43d73ba6eee6cf12338c8cc7d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/hardware/TuiCommandEngine.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ed4d79ad96b867981ddccc965b0c1737bfa33b9471fb134919dd0c4a779e9d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b933e669690ea1dbb395b196557e98fa6834fb826107b9d2288f77d2a1380d65"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e2: 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28257f0ffcd1b989810f94b3e193683ef5a2049f36ccf578af1f92a1095b27c"}},{"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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"d705ed4dc64a551b886263b78ff433a12adc7eaaad3fea5ef9add16f2683b833"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"518cc389d9c7274d07cda720c8ac7d76c9eae1401cf3d61e24b719ec0b9ddb8c"}},{"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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"7808e8e477ef902227074017f4c90393d0e59ccd7ffb9826f0f349e71bb7ed41"}},{"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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"03841cfc62784a326c512cb8edf207a44015d573d8d883def5519f6129400c26"}},{"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":"app/src/main/kotlin/com/ghost/api/audio/SystemVisualizer.kt"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d396402144d4f13c4b6db7ebe27a4c273e7e261d642d8b8d76fa78d341a0bd3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d2318094311c5fdf16962e23d68b5204adaca9ea297ccd24b20a4173ed5252"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b857a87aab74e9e449cb7e63d8aa74f8b03631efeae641112602f144971f42"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b08a06eb9f31fa74ef0386cb5ada4630d27f7ca6e9f039a958177673759fa0e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"412efe9a9d45aa108ccde607d6c89bc539560e735239a8b139219bab05e883eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2863ee10fa03a120c7bef1bc20111f98633a655f704fd8aaad84a1e38c26430e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65883937a99dfe1f83d39ada11cf0c09fdec22016786490adf6253c463600cd"}},{"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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ff66426b188a3854ac20f0525f1539f8a630c9548b34eb7bd381daa072eb4e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec1e2a87c3f0b8a012c4c116014c5924b705a306b4d7c6e121300de82a2f767"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e5be52471a1801ec1cbbf8e74e07de573e6c73ca1779d8cc62163036a89c14"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getDeviceRamGb\u0060 swallows every exception into \u00608.0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/Constants.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e603da94e7ec5b9a9dc5446fc022f340a90dfeaac0c9d8c91d993a2e9afb91a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getActiveTokenCount\u0060 swallows every exception into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/GemmaEngine.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b58ff49c2a78ee8577cd4cd78132be77eb77fa0433d86386d844190c3b3404"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getBatteryLevel\u0060 swallows every exception into \u0060100\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/agent/GhostAgent.kt"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"843b5aba5fa408d03377102eae4faed25c65746f01ca816c063f40615620a32a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060tailMemoryLog\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/database/MemoryManager.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba4217f146608591c7c85b4373eac8f33c714f7287580cb1abc981ba1b573ec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060grepMemoryLog\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/database/MemoryManager.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c586825941a7d5a05d2aad5dd75c9251d9f7851f331b2986c855a62e72ab4f0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getSystemProp\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/hardware/DeviceHardwareSpecs.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1c81eb1997b0dd9e10442b38196075904bfda286396a2e2597ac950732b3e3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060buildContext\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a16673cf8a282e298dd3894750e582c4a8f63028c987f17cf9872c085dafb88"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060buildHardwareBundle\u0060 swallows every exception into \u0060\u0022Device: Android Smartphone\\nRuntime: GHOST On-Device Agentic Harness\\nSensors: Battery, System, Environment, Network, Notifications, Motion, Media, Location\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"716820702086dac336c6bb738f743bf8b538d832a37f1cad20ad0e2ad2f4f6e5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060resolveDeviceCallSign\u0060 swallows every exception into \u0060\u0022Gemma\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/com/ghost/api/logic/ContextManager.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbe92185cd639b38e22f16af6ae8862779ce1d0dec3c38ff8e8c15572a54bde"}}],"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-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.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-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.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-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"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/"}]}],"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":2,"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."]}]}