{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.configureFlutterEngine (cyclomatic 95): MainActivity.configureFlutterEngine has cyclomatic complexity 95 (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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dc3257bdf344a9d901db1d108555fb1844ed511aafc4ba8f72868f3c07c9a2"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayService.startGateway (cyclomatic 36): GatewayService.startGateway 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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ad4ef9207a422d56bd648a1718bb052efd8718ed234c3fe3c5c3c219ed70db"}},{"ruleId":"D1","level":"warning","message":{"text":"BootstrapManager.extractRootfs (cyclomatic 30): BootstrapManager.extractRootfs has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a788c6b529f2cfb36bd0b13d9f44df3b95f29463ab332c36e6dbd8ff9d0b4cda"}},{"ruleId":"D1","level":"warning","message":{"text":"_SplashScreenState._checkAndRoute (cyclomatic 22): _SplashScreenState._checkAndRoute 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":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a113bf7294261b48c4a86b2e67206101d89851aca9e7faed21500ec9de3b73"}},{"ruleId":"D1","level":"warning","message":{"text":"BootstrapManager.extractSingleDeb (cyclomatic 20): BootstrapManager.extractSingleDeb 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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a621c5c3955dfd464826b72ba4dffa40824d707157cc89aa0bf0d9c90682c4a"}},{"ruleId":"D1","level":"warning","message":{"text":"_OnboardingScreenState._startOnboarding (cyclomatic 18): _OnboardingScreenState._startOnboarding has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"881a999e35181ddbcb2dda979f2fada863139b4a17e6b079a7ca34896b32813d"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.configureFlutterEngine (cognitive 115): MainActivity.configureFlutterEngine has cognitive complexity 115 (threshold 15). Drivers by points: if/else 36 (55 pts), error handling 22 (48 pts), match/switch 5 (8 pts), boolean chains 4 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c26fdf0939d855bc0db6bbc06bc29352352461ad4d37a73a397188e6484b093"}},{"ruleId":"D2","level":"warning","message":{"text":"BootstrapManager.extractSingleDeb (cognitive 61): BootstrapManager.extractSingleDeb has cognitive complexity 61 (threshold 15). Drivers by points: if/else 9 (34 pts), error handling 2 (10 pts), loops 3 (9 pts), match/switch 2 (7 pts), boolean chains 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a6ac949669e7362c53c77de64eee1695737d11bd9534a63a73be5c6d3b0bb6"}},{"ruleId":"D2","level":"warning","message":{"text":"BootstrapManager.extractRootfs (cognitive 60): BootstrapManager.extractRootfs has cognitive complexity 60 (threshold 15). Drivers by points: if/else 17 (41 pts), boolean chains 6, error handling 3 (6 pts), loops 3 (5 pts), match/switch 1 (2 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2ea5309296b9aefdbc541e2ffa609998b2dbe2a60994be3016130841e12028"}},{"ruleId":"D2","level":"warning","message":{"text":"_SplashScreenState._checkAndRoute (cognitive 57): _SplashScreenState._checkAndRoute has cognitive complexity 57 (threshold 15). Drivers by points: if/else 13 (41 pts), error handling 7 (14 pts), boolean chains 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ea6113e7d9faa4f8c784584da7066e9d9e4312375408fd9e95e8eda07bca5e"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayService.startGateway (cognitive 42): GatewayService.startGateway has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 7, error handling 7, loops 4 (6 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abbe20d171151d61265b01754cbaf873c2e6caf01cfce13f8c0772b579b0929"}},{"ruleId":"D2","level":"warning","message":{"text":"_OnboardingScreenState._startOnboarding (cognitive 33): _OnboardingScreenState._startOnboarding has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (22 pts), error handling 4 (7 pts), boolean chains 4 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fe614a08324c1ef47413ebdc881abb1bf9817783be64e88796cbefa5eb0ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConfigureScreenState._startConfigure (cognitive 25): _ConfigureScreenState._startConfigure has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 4 (7 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20d8898cf502be864495004d908b896f14383118675d6d9999dbb6ebd72b935"}},{"ruleId":"D2","level":"warning","message":{"text":"_TerminalScreenState._startShell (cognitive 23): _TerminalScreenState._startShell has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), error handling 4 (7 pts), boolean chains 3 (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":"flutter_app/lib/screens/terminal_screen.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a020187081cb491efc9169ac53455319be65c1b84b27bfb5f3dedac20cb32c0"}},{"ruleId":"D2","level":"warning","message":{"text":"BootstrapManager.registerAndroidUsers (cognitive 21): BootstrapManager.registerAndroidUsers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"c081ae3c3e4b690f06ac609e5493a29e1f6f01e2664fdc4a6fc985481790b1e3"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayService._checkHealth (cognitive 19): GatewayService._checkHealth has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 7, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"00259122dee23131e376f7404ff3698e14b76452bc5f3da37cc93431c07dde1a"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayService.stopGateway (cognitive 19): GatewayService.stopGateway has cognitive complexity 19 (threshold 15). Drivers by points: error handling 6 (10 pts), if/else 7 (8 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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba0a92d742cc771940cccc2c273ebc7df4f70bfa0887fbdf0ccfd57e75cd31c"}},{"ruleId":"D2","level":"warning","message":{"text":"BootstrapService.runFullSetup (cognitive 18): BootstrapService.runFullSetup has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6 (10 pts), if/else 3 (8 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":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e58e3504f2707c3dde54050d26c5d439a2548a5145d0b74a08b7bd19773876"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainActivity.configureFlutterEngine: MethodTooLong \u2014 configureFlutterEngine runs 332 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 232 over it, 3.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0031b23e1f0a42f6c43dab452b6927b00ef4547aa9b8fe5fdc995a2df51209a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BootstrapService.runFullSetup: MethodTooLong \u2014 runFullSetup 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":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2737998270bf6da797782f34ea579cf929e624e893b70cb8abb169ba8bc4220d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BootstrapManager: ClassTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 123 over it, 1.31\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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef86054481c33b15f7e277b38a788d60624d8573202eb407276faf9561e0686"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState.build: MethodTooLong \u2014 build 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":"flutter_app/lib/screens/settings_screen.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3822f1defa5dbcba534bf58d4b555cf15ffa739530f424a3dfe7230bc2c5117"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayService.startGateway: MethodTooLong \u2014 startGateway runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e64a373ce1cc2ba045c15e07a2e7a44421d49204c402d18fe4d6a9f0ca6cf16"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BootstrapManager.extractRootfs: MethodTooLong \u2014 extractRootfs runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d455f278bd0bf755594df39069a7715e231f11345cd1abe07c35c14b270c96f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hermesagentmobile/BootstrapManager.kt: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: BootstrapManager (20-866). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aed87a3c4d69c7a821c562273c650422de843e62364d7a12f2b69032854f53f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): flutter_app/lib/app.dart:57-186 | flutter_app/lib/app.dart:188-316 \u2014 These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/app.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1f73dd689045622be5894b0659158579562078d7183219e4e8308291acdc93"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): flutter_app/lib/screens/configure_screen.dart:56-142 | flutter_app/lib/screens/onboarding_screen.dart:67-161 | flutter_app/lib/screens/splash_screen.dart:45-151 | flutter_app/lib/screens/terminal_screen.dart:54-125 | flutter_app/lib/services/bootstrap_service.dart:45-229 | flutter_app/lib/services/gateway_service.dart:27-63 | flutter_app/lib/services/gateway_service.dart:76-117 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"186a5e554541e6863daa0046d889661f6e347532afd49713637bdb93a64f0c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 102\u002B corresponding lines): flutter_app/lib/screens/configure_screen.dart:248-362 | flutter_app/lib/screens/onboarding_screen.dart:335-458 | flutter_app/lib/screens/terminal_screen.dart:223-324 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 102 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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"4575d5bdcbad39140339e7e07c8d7056ea98ecd955960e4481c3048515ea8f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): flutter_app/lib/screens/onboarding_screen.dart:205-232 | flutter_app/lib/screens/terminal_screen.dart:168-195 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fdac3dfe9a153722ce6c073b1b21c590476c1d076fa39f5630cc7d81eeef04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt:464-492 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/SetupService.kt:103-130 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd36040bcd5aa4d46bcde95148d97aff78a3608681684fa0ac2392bdfd724e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): flutter_app/lib/screens/onboarding_screen.dart:191-203 | flutter_app/lib/screens/terminal_screen.dart:154-166 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"c441264895e06016e5b7aadb7909367fc1c1c230d879f58eb4f11dd39c1a6d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt:450-462 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt:502-514 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/SetupService.kt:85-97 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/TerminalSessionService.kt:77-89 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d60f975b1c4a20f113990b6ce141659bb9756add8f1b9fcfbdd36835099f0e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt:433-441 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/SetupService.kt:68-76 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/TerminalSessionService.kt:60-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"a691b0917a512a4a40c87a58c7371c0640de0930e1f6c51e5a1868e7f6ea1d1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt:494-499 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/SetupService.kt:132-137 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfd517cb65642e7006c822af430eb03b58fb89940e8032e1e3298df1b9cf30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62\u201363 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:254-315 | flutter_app/lib/screens/onboarding_screen.dart:342-404 | flutter_app/lib/screens/terminal_screen.dart:229-290 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:254\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b8920d1cd151e9c0ba5ce87ce296653187c7913ee1aef3ed0a67de81dc6ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:112-142 | flutter_app/lib/screens/onboarding_screen.dart:131-161 | flutter_app/lib/screens/terminal_screen.dart:95-125 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060flutter_app/lib/screens/configure_screen.dart:110\u0060 calls \u0060setState\u0060 and \u0060flutter_app/lib/screens/terminal_screen.dart:94\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efa502bb8f5158f23dee0cffb53ab69d52a408070e0e6df491ac2648233ca5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): flutter_app/lib/screens/configure_screen.dart:72-101 | flutter_app/lib/screens/onboarding_screen.dart:83-113 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:72\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"468a9f878eb77054e57d8b0b42d2f2cda0fbf9194df314d404fd1602acaeff12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): flutter_app/lib/screens/configure_screen.dart:325-346 | flutter_app/lib/screens/terminal_screen.dart:299-320 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/terminal_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:325\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa28212148a189c903b3eefbd85f484fcfbdb12f842cf728ff2010e37841b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): flutter_app/lib/screens/onboarding_screen.dart:211-232 | flutter_app/lib/screens/terminal_screen.dart:174-195 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 and \u0060flutter_app/lib/screens/terminal_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/onboarding_screen.dart:211\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":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87b2f4da3f0f344aea2c5040cfc317a705baf08c53b78f89f68eab90c04128a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:221-239 | flutter_app/lib/screens/onboarding_screen.dart:234-251 | flutter_app/lib/screens/terminal_screen.dart:197-214 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ea17b3c9da489f04e9bead0e877aa44f24df28ab097a398650a15c813fd89b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flutter_app/lib/screens/configure_screen.dart:333-349 | flutter_app/lib/screens/onboarding_screen.dart:423-439 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:333\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"29500a888d5892dbd1a0f589487cca18597994d788991e2ac642c502ad9d5662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:188-203 | flutter_app/lib/screens/onboarding_screen.dart:205-218 | flutter_app/lib/screens/terminal_screen.dart:168-181 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:188\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60bbc81dff51b444ccb02cbc21acd4624856a5a66fb9c68a721a225a3229b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flutter_app/lib/models/setup_state.dart:43-58 | flutter_app/lib/models/setup_state.dart:64-79 \u2014 both copies are in the same file, so extract the block 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 \u0060flutter_app/lib/models/setup_state.dart:43\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":"flutter_app/lib/models/setup_state.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a948ff50de8765901ea3ef9aa96706980fc28dbb16738cf14bd0d79b5df028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): flutter_app/lib/screens/configure_screen.dart:60-74 | flutter_app/lib/screens/onboarding_screen.dart:71-85 | flutter_app/lib/screens/splash_screen.dart:51-65 | flutter_app/lib/screens/terminal_screen.dart:58-72 | flutter_app/lib/services/gateway_service.dart:31-45 | flutter_app/lib/services/gateway_service.dart:87-101 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:60\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8971495ded567eb7df92e52b0aff2013eac01e2859cd33e46541411f362c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flutter_app/lib/app.dart:96-110 | flutter_app/lib/app.dart:227-241 \u2014 both copies are in the same file, so extract the block 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 \u0060flutter_app/lib/app.dart:96\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":"flutter_app/lib/app.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"94410bb4fad119e03950ae1d4c9293d993c96ec82f760e3f7224e2573c27d699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): flutter_app/lib/services/gateway_service.dart:168-181 | flutter_app/lib/services/gateway_service.dart:185-199 \u2014 both copies are in the same file, so extract the block 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 \u0060flutter_app/lib/services/gateway_service.dart:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc685557efc9b37b4cdca601c6347e7d59cf575c5ab32491b43db7aa79c3413e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flutter_app/lib/app.dart:113-126 | flutter_app/lib/app.dart:244-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/app.dart:113\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":"flutter_app/lib/app.dart"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"404fc533a5b327a8141e58c65b737dd433fe7a4b834d9e49fff50c4cc6ce909d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flutter_app/lib/app.dart:173-186 | flutter_app/lib/app.dart:303-316 \u2014 both copies are in the same file, so extract the block 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 \u0060flutter_app/lib/app.dart:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060flutter_app/lib/app.dart:172\u0060 calls \u0060BorderSide\u0060 and \u0060flutter_app/lib/app.dart:302\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":"flutter_app/lib/app.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1177439b69385b105536f53c8e630c839cad7032e811723875606f55483600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flutter_app/lib/screens/configure_screen.dart:96-108 | flutter_app/lib/screens/terminal_screen.dart:82-94 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/terminal_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 248 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060flutter_app/lib/screens/configure_screen.dart:110\u0060 calls \u0060setState\u0060 and \u0060flutter_app/lib/screens/terminal_screen.dart:95\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b699c690ce7fe93e3a736b3bb7a26079fb1425601fdb824b412d0ebca68c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): flutter_app/lib/screens/dashboard_screen.dart:39-50 | flutter_app/lib/screens/dashboard_screen.dart:86-98 \u2014 both copies are in the same file, so extract the block 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 \u0060flutter_app/lib/screens/dashboard_screen.dart:86\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":"flutter_app/lib/screens/dashboard_screen.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"740ae76008c40ee24e47c1304405cff2e32561b9f5eb922697e4230561dfa176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:95-103 | flutter_app/lib/screens/onboarding_screen.dart:107-115 | flutter_app/lib/screens/terminal_screen.dart:79-89 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:95\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bdcfd0d10327c244b196e5bf8c4555fb2ee3eef6451845b944b613652591c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flutter_app/lib/app.dart:139-148 | flutter_app/lib/app.dart:270-279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/app.dart:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/app.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc87505fcf5dc582e84e42f4fbb81985fb9759dba90b98444bda8fcb7386896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flutter_app/lib/screens/onboarding_screen.dart:194-203 | flutter_app/lib/screens/terminal_screen.dart:157-166 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 and \u0060flutter_app/lib/screens/terminal_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/onboarding_screen.dart:194\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":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0fb02cedf230a2146351db1b354ba09d515791fda67a268ccde59340d938a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): flutter_app/lib/screens/configure_screen.dart:68-75 | flutter_app/lib/screens/onboarding_screen.dart:79-86 | flutter_app/lib/screens/splash_screen.dart:59-66 | flutter_app/lib/screens/terminal_screen.dart:66-73 | flutter_app/lib/services/bootstrap_service.dart:72-79 | flutter_app/lib/services/gateway_service.dart:39-46 | flutter_app/lib/services/gateway_service.dart:95-102 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:68\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"925defbc6792c64e13bb799bb32134d85fba9aea867e81f66d67f67bdc2f8007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:172-179 | flutter_app/lib/screens/onboarding_screen.dart:191-198 | flutter_app/lib/screens/terminal_screen.dart:154-161 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/lib/screens/configure_screen.dart:172\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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96555b147543f1d90f65c370b74e2b3b2f34057c8e91719fa2fde9f307439bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:154-170 | flutter_app/lib/screens/onboarding_screen.dart:173-189 | flutter_app/lib/screens/terminal_screen.dart:137-152 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e68f81477d28b9c5164ed4ecbeae28e32be93804ec22242f4bf603bc0af871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:144-152 | flutter_app/lib/screens/onboarding_screen.dart:163-171 | flutter_app/lib/screens/terminal_screen.dart:127-135 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c0a8bff4c9c037f24fbe67db9bcfa14ff31fdb6f0234a2b88ed2ca346f1b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:241-246 | flutter_app/lib/screens/onboarding_screen.dart:253-258 | flutter_app/lib/screens/terminal_screen.dart:216-221 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ea2540e930ca3e00d4af129814de15b1379c4850bd8810b24003b4b90b8e93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flutter_app/lib/screens/configure_screen.dart:45-54 | flutter_app/lib/screens/onboarding_screen.dart:56-65 | flutter_app/lib/screens/terminal_screen.dart:43-52 \u2014 before extracting anything, compare \u0060flutter_app/lib/screens/configure_screen.dart\u0060 and \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 261 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"357a6427202ca45b51cea133fb54eb62aa49d8118736d2a8aeab4d165c93b9d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt:142-156 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt:353-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt:142\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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a8b4f2af6b77958efef0bc80f986941ebda9e91798a7ac547d8304f1fa9fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt:127-139 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt:340-351 \u2014 both copies are in the same file, so extract the block 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 \u0060flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt:127\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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45c5e3fc5d4c9cf856d6e45ff65ec8fe40f3b59e4c4071c9f02264a9dbc1f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt:465-476 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/SetupService.kt:104-115 \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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de0f132c0e81f6d9e5840b40f0fb4dd168bda172d92a67175ead47306c4aa1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt:50-57 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/SetupService.kt:22-29 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/TerminalSessionService.kt:20-27 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac12e1b40a17d754f8fdfe53f36b08579e1c11cdb2aab33fc64fed3db840b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt:134-148 | flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt:197-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0270ec0a80a1981592dfe6a7faf705fad76fa823b5fcd257a3ae6b172d5a066"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/index.js: 6.4% line coverage (11/172)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf6744c5be5e687963605984038707e89100df57b5196a27ce3295ef1e57235"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: lib/installer.js: 11.5% line coverage (16/139)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f146ede664b655acada9474f74b256157695e8cddcfbb17d70c362b89748ff4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt: flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 95 in MainActivity.configureFlutterEngine at line 43. 1 of those changes was a fix/bug commit, and the other 19 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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dd34385f01f9e4d386c2a3aec957afe3947b874017304937b239dcea7b59d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt: flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt changed 53 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in BootstrapManager.extractRootfs at line 78. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"066ad861d09ca61be6f525cce5e84867e33b1d3ba25b0c6be303b2609f9f432e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt: flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in GatewayService.startGateway at line 120. 11 of those changes were fix/bug commits, and the other 19 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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e3557c4d6933ce88c2e4dd149c2b2f25674676107713f8cec81f8526eed99b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flutter_app/lib/screens/onboarding_screen.dart: flutter_app/lib/screens/onboarding_screen.dart changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in _OnboardingScreenState._startOnboarding at line 67. 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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/lib/screens/onboarding_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"963769c6302f7760d68a58ba158350bbe20d4543d45e542f7d4a24a981157618"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flutter_app/lib/screens/splash_screen.dart: flutter_app/lib/screens/splash_screen.dart changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in _SplashScreenState._checkAndRoute at line 45. 6 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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/lib/screens/splash_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a027a941b4618b8e62295b4c05cbb54426cff4b74b9684704529046176f893"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: flutter_app/lib/constants.dart: flutter_app/lib/constants.dart changed 38 times in last 90 days and 22 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is AppConstants.getRootfsUrl at line 36), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: stopGateway hard-kills the entire app process\u201D; \u201Cfix: stopGateway kills inner Python PID directly with app-kill fallback\u201D; \u201Cfix: force re-clone hermes-agent on setup to recover from corrupted local repo\u201D; \u201Cfix: stopGateway uses SIGTERM only with PID-reuse guard to prevent killing fresh proot instances\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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/lib/constants.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/constants.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e1486d7e7fce4a995a4c5256520523ac58c485fbc1c7553c6d4a2ceb9b8944"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: flutter_app/lib/services/gateway_service.dart: flutter_app/lib/services/gateway_service.dart changed 24 times in last 90 days and 18 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is GatewayService._checkHealth at line 158), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: Config corruption, gateway.mode, and Node.js version (#83, #88, #90, #93, #94, #87)\u201D; \u201Cfix: Resolve multiple bugs (#69, #70, #73, #74, #82, #83)\u201D; \u201Cfix: Prevent gateway crash loop from orphaned timers and race conditions\u201D; \u201Cfix: Storage safety, gateway crash loop, auth UX, canvas status, missing deps\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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/lib/services/gateway_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d130e852109403e4dc7e2dbabec19d11d709e9abd6d15c2e1c5bdb25cd156ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: flutter_app/lib/screens/terminal_screen.dart: flutter_app/lib/screens/terminal_screen.dart changed 20 times in last 90 days and 11 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is _TerminalScreenState._startShell at line 54), 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 multi-instance creation causing duplicate gateway processes (#48)\u201D; \u201CFix setup detection, DNS fallback, and NVIDIA config (#44, #45, #46) (#47)\u201D; \u201CFix/issue 40 resolv conf enoent (#43)\u201D; \u201Cv1.8.0: AI Providers, SSH Access, Ctrl keys, Configure menu, resolv.conf fix (#36-#40) (#42)\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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/lib/screens/terminal_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/terminal_screen.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d354c04bf85bafff3113be19e0f91ca745d6226209f0aac27f932f620e9d5302"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: flutter_app/lib/services/terminal_service.dart: flutter_app/lib/services/terminal_service.dart changed 11 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is TerminalService.getProotShellConfig 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: \u201CFix setup detection, DNS fallback, and NVIDIA config (#44, #45, #46) (#47)\u201D; \u201CFix/issue 40 resolv conf enoent (#43)\u201D; \u201Cv1.8.0: AI Providers, SSH Access, Ctrl keys, Configure menu, resolv.conf fix (#36-#40) (#42)\u201D; \u201Cv1.7.3: Fix DNS reliability, add snapshot backup \u0026 storage access (#36)\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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/lib/services/terminal_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/terminal_service.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a149017d4e8360bd08729709ee63920b0ad0a55ce72e6782843841e08f7e82d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: flutter_app/lib/screens/configure_screen.dart: flutter_app/lib/screens/configure_screen.dart changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is _ConfigureScreenState._startConfigure at line 56), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix multi-instance creation causing duplicate gateway processes (#48)\u201D; \u201CFix setup detection, DNS fallback, and NVIDIA config (#44, #45, #46) (#47)\u201D; \u201CFix/issue 40 resolv conf enoent (#43)\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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/lib/screens/configure_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e065307e92cb4e7627ef4bb874fa5ac414659b6b27171a26d906f321146ca8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: flutter_app/lib/widgets/terminal_toolbar.dart: flutter_app/lib/widgets/terminal_toolbar.dart changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is _TerminalToolbarState._send at line 50), 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: Terminal ENTER key (#58), ADB backup (#55), background capabilities (#56)\u201D; \u201Cv1.8.0: AI Providers, SSH Access, Ctrl keys, Configure menu, resolv.conf fix (#36-#40) (#42)\u201D; \u201CFix CardThemeData/DialogThemeData for older Flutter SDK\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-01-10..2026-04-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-01-10 23:34:46 \u002B02:00\u0027 --until=\u00272026-04-10 23:34:46 \u002B02:00\u0027 --full-history --no-merges -- flutter_app/lib/widgets/terminal_toolbar.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/widgets/terminal_toolbar.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48801275dcb535bf654ddeef9e58fb54bb30b00cf16d7b25ea440588a74bcfa"}},{"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 \u0060package.json\u0060 makes this repository a deployable product (line 7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f571cc2c2542badcf90ae46e31e24c43d9ca80090c40fca9fd1434a5c34546"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"56d7c0542bcbbd8d8c61f07327aa2080292f8d213e8f982f1a0933ffecde0a9c"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a31a0b5364830f542d37385755d27dd90f97746286a80cb6c17836bc6e14179"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa571a47ecd9af55f36a3364edd0ddcf29c643ee1a3b19589e5f86cf9b2dd947"},"properties":{"dependency":{"package":"@humanfs/node","version":"0.16.7","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 24 of 24 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 24 separate risks. Counted over 24 of the 35 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1deea90afdde8f5bbbdef8558fd133ed35ac614588145f17f313d2ff22a68d"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f450285129add585ce6ee44c45703529406fa3d164718ad0b928fb572dcaeec"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bc8ef56da984964e8a68cbb1aaa36a992a55ccebd4ea44b18f1f7332402c5e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f1fffe9770c354f799630092a2b54d9bdd211650f0f9217a9cd4af2ee1ba72"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/ProcessManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f200b1f770669cbf99142b18ebe9136e663e9b31f04033c9e8e838408d9815"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b562e82f9b9ed448bba0677665c5c0402c22f0b9148f0e622baf1e198ac7e4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/settings_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2e69a4f624b57d1ff2eb25203bb083a3aefaf9c69559f5795dd0426b979b39"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/app.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5d5e7500463e33ef7c929b4343c45cbb1ae59768ccc5e36f04a551e68f5bdb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/terminal_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f31037f72438f32638e3af061d1d67602a1b1efb82c9998d17b725593bc2150"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ba395b94b573d2c8dd767ed8b75c926ec639850f827c716ecc54ba7184df00"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ce2b8c0d9bfb8b22a289ad057ea360e2b1d05609407081c692ecc422aac348"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e0e46dafcdf5b152e2c79db685eb1bd8fb11b8742324c5edb14c5350482367"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/terminal_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ea5baae45ab7341df72ec8ac8e912f5278040983a148c3507bfc90020ac8c6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/setup_wizard_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc9bd0e9d9ab501dadcd1ac2f83265529496284741c51d957e3b9f72f68e87a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/widgets/terminal_toolbar.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b9c6ffce232876b7306aa5b4280740918cf530b4838c579b75ca3012f35ea0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/widgets/gateway_controls.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f86f02cae4022a7bb840814ebc90bbd47107b7782ff757afd783bb36cfa629"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/dashboard_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5aa76747bb5f948ed65b8eda4ccd70dae1100229ea2cbc60683957da6001b3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/logs_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bffdc7f212e5bdd7c981e321350487bc33bf3aff9d5880cfedf517de297e8c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/SetupService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9c7459d2fd7a946650f2e104940ca600704721d4a479c7a878f23732aef9ea"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/TerminalSessionService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"050f7ca072c2bda7512f3419d73f09ba005b0e99a74aa3b57e0c65f4316e61e9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/widgets/progress_step.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c12b00d0f5ad47640b58d44256ec9457fafbd347b9bb39ea7cfbff7bc9e0d8a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/native_bridge.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1316827d3b9e68d71ddf69c12155098e9045730edbe1416635c4295e62160c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/preferences_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18574cb4d5f5d59eff1ef8d188b9c8df297155631557f22fc6ad2836bece56ac"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/android/app/build.gradle"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f7322b09b146794383521ac288ee668c677857bf245f8c6a5046277d8af718"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: onboarding_screen.dart \u2194 terminal_screen.dart: \u0060flutter_app/lib/screens/onboarding_screen.dart\u0060 and \u0060flutter_app/lib/screens/terminal_screen.dart\u0060 change together 86% of the time (12 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u006055984793\u0060 Fix QR code rendering by deferring PTY start and reducing font size; \u006027239e00\u0060 Fix QR code rendering in terminal; \u006024e13cc1\u0060 Fix URL extraction merging multiple URLs into one \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fbdb2105c38fbf1186e0b1aab6184bb7d8f62ca1eb56cf31d1c7c87f4ec7c0"}},{"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 or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"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 the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 \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":"Dependabot does not watch gradle: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060gradle\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3bff8eed2eb29302c3d10644f1ecba23171c77cd6c406b6dfa078dfc05ad87"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_startConfigure\u0060 is async and calls createSync, writeAsStringSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2c033e8000bcd99ce0ec1ec605642621cb2fb8dbad280407a548322c704bac"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_startOnboarding\u0060 is async and calls createSync, writeAsStringSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e720e06fc73cc7900848a0b6cd8d781fcc543e63edf95679dc7ed47fd59f78"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_checkAndRoute\u0060 is async and calls createSync, writeAsStringSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"941d5a4e97494f2bf23bf697c686e954231789555a20545e2059328b0ba75101"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_startShell\u0060 is async and calls createSync, writeAsStringSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/terminal_screen.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29ccead008090b683913cb718b1ff4ef461870286e81b36cfe64300ed01ab6c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060runFullSetup\u0060 is async and calls createSync, writeAsStringSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b79693fa945b4048f0c901cbeaa2e963b57b20dae100ca0f231bafa5308254b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060init\u0060 is async and calls createSync, writeAsStringSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c891d7553fb4f3fb168abf7fece549cfc2d1123ff09322d0a23c4e819b3295"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060start\u0060 is async and calls createSync, writeAsStringSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"de91a5ad2547d2367ec871e2dbd42c655ec671321fd696141252a61311a47be5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060getProotShellConfig\u0060 is async and calls createSync, writeAsStringSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/terminal_service.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bd05b11b948badb5c0f1e7127b21fdf7cd3dd024d76b7bfc5772bbbe3b6d85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060best == null || url.length \u003E best.length\u0060 appears character-identically in 3 files \u2014 flutter_app/lib/screens/configure_screen.dart, flutter_app/lib/screens/onboarding_screen.dart, flutter_app/lib/screens/terminal_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"beccaa1199bc7bbf32da88b8c3e9c882bb2dbf8300aebfdbf61d112140b14a37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data?.text != null \u0026\u0026 data!.text!.isNotEmpty\u0060 appears character-identically in 3 files \u2014 flutter_app/lib/screens/configure_screen.dart, flutter_app/lib/screens/onboarding_screen.dart, flutter_app/lib/screens/terminal_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1032211b6b2b2e69515f94822c9f46e355aa5358066653ef278e9be4a2b8fc9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selection == null || selection.isCollapsed\u0060 appears character-identically in 3 files \u2014 flutter_app/lib/screens/configure_screen.dart, flutter_app/lib/screens/onboarding_screen.dart, flutter_app/lib/screens/terminal_screen.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7257c4a812ce966d1cef54dfca2ab61ee4d84c936b16379835a16cb609e0e37a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!resolvFile.exists() || resolvFile.length() == 0L\u0060 appears character-identically in 2 files \u2014 flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt, flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/ProcessManager.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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a81398e88c54f3fb5ac3cf0df0cf4631948066e17578fc4183f408c04e8709"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!rootfsResolv.exists() || rootfsResolv.length() == 0L\u0060 appears character-identically in 2 files \u2014 flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt, flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/ProcessManager.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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07dfb175200fc7a50b746d41ddb127648d77de14e840602c0aea9c9b16ed34f"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a CancelToken: Only 0/1 functions that make a cancellable request (Dio, AbortableRequest) accept a CancelToken or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a screen navigated away from, a disposed widget, a superseded search. Take a \u0060CancelToken? cancelToken\u0060 and hand it to the request as \u0060cancelToken:\u0060 (or hold one and cancel it in \u0060dispose\u0060); where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"767a6f188a93a9fdcf866e430f9755aeab7ca6acdd21a1a80f8ac4ef4cc6cf7c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: runFullSetup: \u0060runFullSetup\u0060 calls \u0060_dio.download(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cbaf23bed879bbb5926029b3f9335c29483fd88d67328e612d7b8491945d49"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b155532ff7142cf172280f290a8feede9ed074a197dd939d22ab15cd7dc8d080"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"341eff26180b3e7536158644c30c88d4f4910fb6a8bffad5eae280bceb918e9b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e8ed43fab6b3ccc9c0fe817df06443f5cc0c634e03cb6769e8acf9036a22a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30088ff0aba7fcf44320da6321826d6a31223361889bd8983d40141d794b573"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e125b2d71e56eb3caf1c4a37d8da13e39f72dcab59b14ab685b103a8f032e78c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"574af04a28d782c3795ba9876078f50e90c22f174109925ec3d05aeb7eefe928"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b31d089562d03399ee2f50fb4f5296165d1e8eb32f2ac0b1e3a6ebb7b245942"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/installer.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a022f878af6f9cf20da0ad81d5441ef760b21b5e4ceccdbc035c5660708e639"}},{"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":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dff5d03cb6e554c214e0c8a37da5b22fd558e250a179abdf7ff12ad302ad16"}},{"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":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"45602d28e7f8a62b4aec297fd6d7945da1cbfcc7f809f1060d2a37ce75692453"}},{"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":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ef321b913d023bdd4fbfe6e5e10a8084c13ed20eeacde593e882b0b662d38d"}},{"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":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d3cc1783b34fb450c83bc044e48f14ca13a71c87a373ead0b2c6273124265b"}},{"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":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9793c23b99ff419c661e00ce01230b18cb0ab41cde161498c51de621a084514e"}},{"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":"flutter_app/lib/services/bootstrap_service.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a08bfad16a5002e56e190bc9c2ba5b386761d7f661eb6f35755d60886d8d582"}},{"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":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc97f9c1479d5688088ba249baaa48440b243367e9439e0db3780a2bb1507f85"}},{"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":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf3bee4f4921d8706264f3d47298a6197d9145380c9d518d1ef01fa98042af7"}},{"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":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d192d3613dd2fcad3fcf1018cdf17c9cbe2156afe9967e6476b78aebe72ae361"}},{"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":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e49a22788f9525da679c076a99d3087b739228022be0f6de19f6ad9cb87118b"}},{"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":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"67004fc1b8e45237b09a4b5b3351b48d82e164950956ce7ef031369e7b32c714"}},{"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":"flutter_app/lib/services/gateway_service.dart"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"692b81f87b5d0a0b659748ef83b36395549b2d582a9ef06c881bdfae16004753"}},{"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":"flutter_app/lib/services/terminal_service.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68b3dd7c9fd440e729ce2049cbb7b8d23d6be5542cc5cbb0d46959cabdc85a1"}},{"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":"flutter_app/lib/services/terminal_service.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ecaaad7e49012c96f0277651dc79953aae98b0466bfe185e8e9d7b2dd960679"}},{"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":"flutter_app/lib/services/terminal_service.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56deb6c3c63f0f9118e371cf144826e3da56e4b837fa454f89e630ac2639c97"}},{"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":"flutter_app/lib/services/terminal_service.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1a4d056678478489f85dd3541b1d4b7e02a6aac71b9a885f660234cd7c592d"}},{"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":"flutter_app/lib/services/terminal_service.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d43540377d79c906b01d40ffaa74cc87c4af91518b4da85a9ad44ab3a1ded7"}},{"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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"093040d391468053d6b36797a599c9993a2e2ec6266862dd67a623bc702deb8f"}},{"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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38b0a779abb0ac6b3c8bea90744d99d037c0bf9ade63739556121c08114379f"}},{"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":"flutter_app/lib/screens/configure_screen.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"340070eb74bc667c9d3ccc3d78a634b3b999cc27bb2d893637e3625e5452593f"}},{"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":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d94457d8e783f5753dd0f2c58be1ef5b064e63179da951f5361473758799c02"}},{"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":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf65b273b9be9f91a30a4da90483afa8cfecafeb8196078546ec459c1b197fbb"}},{"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":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18b2954e0c54a74f875d3f5d23fda5c34ef05fb5019b62c617860cb2ae52c80"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"0084fc79a648ef9a85f90911f601ee15d268f262b82bb0ebdb1178dd4f0c9c30"}},{"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":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6367087877c431efa1fe6d67fce456d7fffb425a5e4720b5390e74048ca16eb"}},{"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":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"148a2af34209f5d825ef0ef064fb48b9e941abe2b2ed3772cc831503d140666d"}},{"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":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c553e235fade890c5f14dc5c64f3a4dc1c3fe2163143caba1f8ab391e33251"}},{"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":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfd9cfbedc41d3dbc7f5a78f2fc08d6f3e9350fc30dd2ed870b89dbe6714fb6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"83675b610a954df4134486c698eafe2ed253e95fd4929d80b3cbb14b5c27a791"}},{"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":"flutter_app/lib/screens/splash_screen.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8f3ded1c96e3cca8d8cdbf99f195212f5d963a0f3daff4ad40fb4a83953f09"}},{"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":"flutter_app/lib/screens/terminal_screen.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db2df526556f3c87c34a07b5736017c11f5018d1073a0f7c7a820d46ad29521"}},{"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":"flutter_app/lib/screens/terminal_screen.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"21170e9670610cd2a3205725a03a7650dfbe0ea9a5ee68b6c9985cb4c4329151"}},{"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":"flutter_app/lib/screens/terminal_screen.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4c2641de10bbd694d01b9c6db28095ccd01c8785e4f2988b1967309441fa66"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89add6b85eb3de65354343e1880d189eb19b7e951b27c643aa1b73a67ef6054"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6391bda475d2a98d32c238c90eb2e96a0cdeab46d76eb3a1372225ddbd66596"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21cba99a58c0cb5146de072c8c3098bf3842d815961ed2473c32738a99a3e58"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79436724f0451b201ab07fd759e42e8e5e9f887840e02ce8b8e85cbf7ba8ee9"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a82a17f328c57059974ecbf5c81db37461d33b6486701e35d097b8948a56721"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b826e833cb953a8e6eb426305a1a867118f8c37f6fba226700fe7ca13552af"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"439a7d6f0b57f7cd4fd2d44fa3709b475cf98b576baf24477b6afd35364075d8"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"65eec380b7108ce1f8c89526321e8050075bfd639ad4015ab929e8bdf8eb7544"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/BootstrapManager.kt"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"d403daff127e15b5a56e3c1fa0b9c0a4f9ecfe680ffb896f10e9a9446c8065c5"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0268303c9b6315839f7b8d5cc544b5fcccbac93867af91ac55a5720d30344a47"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7eeb0f79d6f1583c134ef925dd9a2e07f68c73964ecba0acdc81a527edc6b33"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59b2024c190e22a83ed0d9e52ecce3580c096b0fc49eba7a0be786b477432a9"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa487fe6aec08fbee9809e6f7d2c5448941a9500291639acbf19c013e251df5"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a917344af6eec23fd42fcd8913aaa0013e8a170ccaa303f9b6dfbcd004cacb"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3e5291174d23a8eabceee2e113653626fb909d461f1e11eb981f34f49ff719"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"85718d4d5ed59449368ce3334ff367c7d2ba1018339d7ed7488b1941f2100643"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"44596f92b8c6a92e7bd78f3c4d030b5d61af937d24d62ec00a6d35f9e27e5aee"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e67873248a02ff3c707607406b8a6534daf5918f2b887168eccf58a47f2ef2b"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/GatewayService.kt"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddea0cd7f45a6327a6460f9c7096d2f746b6bec821710db96c612934f26197a"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"657cdc1dca1adaeea09c3b9002842ca608362866d07af06c4b7e1b116bd2df2b"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe308a753df7758ed7c58566c2dd86955ea7d539738758eb1cc7b887549365b"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/MainActivity.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"007db45ea16653eac020d29f4a679b2a4d11df55267efd3d2f76cb7397470040"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/ProcessManager.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c00a3728108b9a1974c4cb0431ce6905b3e033c96edfe8594c64e0007c8ab5"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/ProcessManager.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b046990a2561ea1661b7848be911d6cccfac0f2ea6cd089a602f3c9c6c0ef2e3"}},{"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":"flutter_app/android/app/src/main/kotlin/com/nxg/hermesagentmobile/SetupService.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c70ace8029d3cf1d2ff40668528a916cf13718f5bec5c4ee545780f659ca625"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_getLineText\u0060 turns every thrown error into \u0060\u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flutter_app/lib/screens/onboarding_screen.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"7967928fb0d6456a33195a00d677c87ccdbe9c5fe6357823e6b19887e8e53f96"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":4,"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."]}]}