{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"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":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"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":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"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":"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":"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":"SessionSnapshot.swift.applyHookEvent (cyclomatic 163): SessionSnapshot.swift.applyHookEvent has cyclomatic complexity 163 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d51b16859fdaba3dfd1bf9bddf0b0521dc04b457626cec0e74f7ded3d5240b7"}},{"ruleId":"D1","level":"warning","message":{"text":"HookIntake.init (cyclomatic 83): HookIntake.init has cyclomatic complexity 83 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0e76ec594eaaf9e6e602207d6104eedb59e97e96dbec8227c821b73b20e418"}},{"ruleId":"D1","level":"warning","message":{"text":"codeisland-omp.codeislandExtension (cyclomatic 79): codeisland-omp.codeislandExtension has cyclomatic complexity 79 (threshold 15). Most of this is not in the body itself: 6 of the 79 points are its own statements and the rest belongs to 19 function items inside it that branch (a function literal at line 656, a function literal at line 1041, formatSingleQuestionResponse, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"3710b242f4e8d265dd2551f516060003d6de7bcc3651a6399135da15b690e583"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSnapshot.swift.extractMetadata (cyclomatic 77): SessionSnapshot.swift.extractMetadata has cyclomatic complexity 77 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c069702d518b102e957ffc0ce776729269add8988cd72487adbd8f9f4db351"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.installExternalHooks (cyclomatic 60): ConfigInstaller.installExternalHooks has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"827eed92e36475bb13f6638e3220cb7c78151be355a23c86896f2f4e8ab424fb"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.handleEvent (cyclomatic 56): AppState.handleEvent has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd455f09a0497cdd59465d564cd00838992a478d9ac04e0ed89710d077ccd435"}},{"ruleId":"D1","level":"warning","message":{"text":"HookIntake.addTerminalContext (cyclomatic 56): HookIntake.addTerminalContext has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb71c4225d49f06f389862f64529e459ca4006d0ac4ac7361cdc5574fb748137"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.integrateDiscovered (cyclomatic 54): AppState.integrateDiscovered has cyclomatic complexity 54 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3568}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7eda7537d0eaf8e32faf816f79aa2a826194c4366171a5e9af6213df6f8087"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner.enablingHooks (cyclomatic 53): Scanner.enablingHooks has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3013e1b26966973c246955444686553f89bbcc99f40c489a279d7e01a0dd9b5d"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsWindow.RefreshLanguageFixed (cyclomatic 52): SettingsWindow.RefreshLanguageFixed has cyclomatic complexity 52 (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":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e291bf35b19c1f78ffdebe8bddfafdf6221181bfa3d5dcaca12b840974d66cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexPermissionRules.plainCommands (cyclomatic 52): CodexPermissionRules.plainCommands has cyclomatic complexity 52 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"5692a37fe8208fe8d5ec68eb2c4679b7a367f345f83f5ce5a3333ab94093359d"}},{"ruleId":"D1","level":"warning","message":{"text":"NotchPanelView.body (cyclomatic 52): NotchPanelView.body has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"293d77a5d9ca566041b1f5b33ae0c07ed645e44573c66d3181b45ddac8907a55"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.verifyAndRepair (cyclomatic 50): ConfigInstaller.verifyAndRepair has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eef5f228f0a4302151fbc5430613e8f08faac0ca014e7bcca4691ed866ec953"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSnapshot.swift.applyEnvMetadata (cyclomatic 50): SessionSnapshot.swift.applyEnvMetadata has cyclomatic complexity 50 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6fb61c63b50c562e68f9bd4fe5ed51a243c1c604f84c13281453a8f77570e2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSnapshot.swift.handleSubagentEvent (cyclomatic 50): SessionSnapshot.swift.handleSubagentEvent has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4a412dd708c9224be94e4bfcb34ca3ed8fc8abcc0cca5ec0bcdf5fa5e753c4"}},{"ruleId":"D1","level":"warning","message":{"text":"codeisland-pi.codeislandExtension (cyclomatic 49): codeisland-pi.codeislandExtension has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 1 of the 49 points is its own statement and the rest belongs to 14 function items inside it that branch (a function literal at line 635, a function literal at line 529, a function literal at line 470, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-pi.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5f10dcb7e28b0bba0ca3a42eb9443d2688a5953d71472d411f00ebbe9e9e5d"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSnapshot.terminalName (cyclomatic 47): SessionSnapshot.terminalName has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0886b9f6265fa7946d33bf22c450b324fabf7bec3abf2dfb40117f2077d54f9"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalActivator.activateTerminal (cyclomatic 43): TerminalActivator.activateTerminal has cyclomatic complexity 43 (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":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d530fc487ba0a6152cd68e9f7cf611633a29de019b450aee5ce7b0d595c9fd9"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner.string (cyclomatic 42): Scanner.string has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c32f41abc71e463aa0eb933c13082cd8a718bf43d279e32f4ab84fb7d20ef6b"}},{"ruleId":"D1","level":"warning","message":{"text":"CLIProcessResolver.sourceMatchesExecutablePath (cyclomatic 42): CLIProcessResolver.sourceMatchesExecutablePath has cyclomatic complexity 42 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c10261fe645036bb90d77597e7d12096fcb04d419fc8c72982a37347b155d2f"}},{"ruleId":"D1","level":"warning","message":{"text":"HookEvent.activityCategory (cyclomatic 42): HookEvent.activityCategory has cyclomatic complexity 42 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f83f220ada5088575a9cf1b18fa275fae9af635363bbe25cf145068ef245b2"}},{"ruleId":"D1","level":"warning","message":{"text":"HookEvent.toolDescription (cyclomatic 41): HookEvent.toolDescription has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"9517975997aab29ca226a431c8526ea76371f3b3bedf0b5ea195e93cd44bc05b"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyCursorSubsessionModeToKnownSessions (cyclomatic 39): AppState.applyCursorSubsessionModeToKnownSessions has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4001}}}],"partialFingerprints":{"codehealthFindingId/v1":"6429c60a86dd9afab847b09ac087257e2a2fe8ec144cfcd4e6da96c469162dc2"}},{"ruleId":"D1","level":"warning","message":{"text":"top-level statements (cyclomatic 38): top-level statements has cyclomatic complexity 38 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows.Smoke/Program.cs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e089d3c481907a71529c6339382dafa166dfe256039f71fc588197057dfd76"}},{"ruleId":"D1","level":"warning","message":{"text":"KimiDiscovery.readRecentFromKimiTranscript (cyclomatic 37): KimiDiscovery.readRecentFromKimiTranscript has cyclomatic complexity 37 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/KimiDiscovery.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9347a6489e98268da428a95eecea7b995623d7eb8d3f2909a85ae4a6b0f64e3"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsWindow.RefreshLanguageChinese (cyclomatic 35): SettingsWindow.RefreshLanguageChinese has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53d8228a7713d9c6366f305bd4de5725bae6b729e2fbd457c3e86aa39049103"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.attachTranscriptTailerIfNeeded (cyclomatic 35): AppState.attachTranscriptTailerIfNeeded has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BTranscriptTailer.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4513c28ddb3d611bf6a7c04b31462f5f29d0b209f02db96ee03d59a2824e928"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexDiscovery.discoverCodexSessions (cyclomatic 35): CodexDiscovery.discoverCodexSessions has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd27b581844de4fe77368805cd30c514ed3c6f2dcb32ff120d80c33e2651ecd1"}},{"ruleId":"D1","level":"warning","message":{"text":"ApprovalCopy.action (cyclomatic 34): ApprovalCopy.action has cyclomatic complexity 34 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe6548c8558e2adc44721c23ebea736cc8ca53a18daf0b2cc96a43ea190f9c3"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsWindow.RefreshLanguage (cyclomatic 33): SettingsWindow.RefreshLanguage has cyclomatic complexity 33 (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":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ab5b0f204137a4b4e09f5517bf97208dd3df7b7631363d27d3e98971cb3de9"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeDiscovery.readRecentFromTranscript (cyclomatic 33): ClaudeDiscovery.readRecentFromTranscript has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/ClaudeDiscovery.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"271d319f2550917c7c56dd2edfcfeb887a1f6d2ccade97cae3a1a5049cb9471e"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.cleanupIdleSessions (cyclomatic 32): AppState.cleanupIdleSessions has cyclomatic complexity 32 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"2caf14399d3b1d846881be06a1ded649e6f1d902014055c59af6238be868a87b"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyCoworkUpdate (cyclomatic 32): AppState.applyCoworkUpdate has cyclomatic complexity 32 (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":"Sources/CodeIsland/AppState\u002BCoworkWatch.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6afd9b0ebd1f1f647ee660144040e3b0cf387d8e515c0babb3bd840212a3b30"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONLTailer.apply (cyclomatic 32): JSONLTailer.apply has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf36b003cdba2791af3388fac555362495cf5837f03f6f12a847f4d468b874b6"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONLTailer.quickTypeProbe (cyclomatic 32): JSONLTailer.quickTypeProbe has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc37360bd4ec4506252730aa3e7ad09ff9f0ee6487ef089e16a4a792d104016"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSnapshot.swift.fillMissingParentMetadataFromSubagentEvent (cyclomatic 32): SessionSnapshot.swift.fillMissingParentMetadataFromSubagentEvent has cyclomatic complexity 32 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: SessionSnapshot.sourceLabel (cyclomatic 35) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1863}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba0aee32439413f889241f99adc14364a04603046a5ece26bfc41241dc27193"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.handleAiWorkStreamEvent (cyclomatic 31): AppState.handleAiWorkStreamEvent has cyclomatic complexity 31 (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":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed75a62824c5c21fff567028f7f42980e741a00caf6cd2679d9856c8e2cb03d"}},{"ruleId":"D1","level":"warning","message":{"text":"index.register (cyclomatic 31): index.register has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 2 of the 31 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 431, a function literal at line 402, onAgentRunStart, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-openclaw/index.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"437acd0bae1ae8061eb8dfd2d5c84351cb29c279a544059f14d599cce65625da"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.install (cyclomatic 30): ConfigInstaller.install 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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"146aca7d907096eac324b69a37764481f42c61a51761446df6b13bd11834e584"}},{"ruleId":"D1","level":"warning","message":{"text":"CoworkSessionWatcher.process (cyclomatic 30): CoworkSessionWatcher.process 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":"Sources/CodeIsland/CoworkSessionWatcher.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a004d5250838867850572ef6ec1854e6970028588b8ce1f6aca27bfbdcf8267"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeLogoShape.parseSVGPath (cyclomatic 30): ClaudeLogoShape.parseSVGPath has cyclomatic complexity 30 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 12 belong to 3 function items inside it that branch. 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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":5054}}}],"partialFingerprints":{"codehealthFindingId/v1":"950dc63f294d55ce62a63e35423dccbb7157c96e1964cd46e44ef45bd2b58569"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalVisibilityDetector.liveIsSessionTabVisible (cyclomatic 30): TerminalVisibilityDetector.liveIsSessionTabVisible has cyclomatic complexity 30 (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":"Sources/CodeIsland/TerminalVisibilityDetector.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7465cabadfb4597fad0dbeafbd70a3ff47ba38dea69b7e7c62cde7ed8c3b6488"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexDiscovery.readRecentFromCodexTranscript (cyclomatic 30): CodexDiscovery.readRecentFromCodexTranscript has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5f1fd1f339a38693e9d0080bded569ea6c5160083d064fe4e135fd152cd5c9"}},{"ruleId":"D1","level":"warning","message":{"text":"PushResponseInterpreter.interpret (cyclomatic 30): PushResponseInterpreter.interpret has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/PushChannel.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1deceb05805b82e6be253633daee180d82c2f42ec4258ee4edb5cce60455d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.backfillClaudeTerminalMetadata (cyclomatic 29): AppState.backfillClaudeTerminalMetadata has cyclomatic complexity 29 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BClaudeTerminalMetadata.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d25289ffd7b9d7a8557a97f35218d766ef93db6117ccf145d05a155cfb37a3"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyTranscriptDelta (cyclomatic 29): AppState.applyTranscriptDelta has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BTranscriptTailer.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd5e3f1eea766764a6db53721ea5643a144122c0755d2c5b3454323660f1db1"}},{"ruleId":"D1","level":"warning","message":{"text":"HookServer.processRequest (cyclomatic 28): HookServer.processRequest has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HookServer.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4bd463f0af02a42b4f403f9404c2044b038e64e9edff42dd4506d01f34fea7"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.top-level code (cyclomatic 28): main.swift.top-level code has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandBridge/main.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7db7acd3fbe021180ddd15209fe031aade4360e5aa5c18d4e8c908896d94cb"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.normalizeTraecliHooksListIndentation (cyclomatic 27): ConfigInstaller.normalizeTraecliHooksListIndentation has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b0ab916d7375b7f6420a30bece8f2cc32f8964d069c75ea9407a0fda3496f3"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTaskList.apply (cyclomatic 27): AgentTaskList.apply has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AgentTaskList.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"862f91b3e8cc8c9f8432b3c380fd7924a1649dd04b48bf31f11ec16b39874120"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.tryMonitorSession (cyclomatic 25): AppState.tryMonitorSession has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdc9bc1b16adfa36c02fefde6b32867cdd534e1c0ea1a9d3dfd884125aac5ac"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyCodexSubsessionModeToKnownSessions (cyclomatic 25): AppState.applyCodexSubsessionModeToKnownSessions has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3873}}}],"partialFingerprints":{"codehealthFindingId/v1":"36615acdd1b608151f6421335928e3876783aee313dfaa0e01e9cd28ed02189d"}},{"ruleId":"D1","level":"warning","message":{"text":"ScreenDetector.frontmostApplicationWindowBounds (cyclomatic 25): ScreenDetector.frontmostApplicationWindowBounds has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ScreenDetector.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccea39634f711dda2d0148e85030713965a9e901b0919292c5877a0557dc264a"}},{"ruleId":"D1","level":"warning","message":{"text":"codeisland-remote-hook._scan_session_jsonl (cyclomatic 25): codeisland-remote-hook._scan_session_jsonl has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cd95253def44014745f43fe8a8c8ad8b2a3740a9c657fe69bcf9dce51eb30d"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cyclomatic 24): AppDelegate.applicationDidFinishLaunching has cyclomatic complexity 24 (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":"Sources/CodeIsland/AppDelegate.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"44223f2f88a3e121a28e467d271b73d1585ca54eef72e5a2ffad298cc7eda963"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.setEnabled (cyclomatic 24): ConfigInstaller.setEnabled has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee8a1962024d3c74b38505b76975ff67fcc3e40e4b28c09e54e5ae9a07d6cbd"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexDiscovery.codexSpawnEdgeRecords (cyclomatic 24): CodexDiscovery.codexSpawnEdgeRecords has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cab3fa5bec8487f437e2773a8c8d989a715c381d60cef42c3e0b8fac2207f88"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotDiscovery.readRecentFromCopilotTranscript (cyclomatic 24): CopilotDiscovery.readRecentFromCopilotTranscript has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"341e83f3988152da0f76c0ccb123969e72f03ceb21723b01ea4f79aad59d559e"}},{"ruleId":"D1","level":"warning","message":{"text":"AttentionPolicy.intents (cyclomatic 24): AttentionPolicy.intents has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AttentionPolicy.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"033c2ae8f02f26a8ba871bffb105f2da0f577ddd5ee57669232b6998dd35ef51"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner.withoutAppendedFeaturesTable (cyclomatic 24): Scanner.withoutAppendedFeaturesTable has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"582065b04a8e380d3035d3afa577ec8b4df2a0b9533a6d84600b2b80ae1c5999"}},{"ruleId":"D1","level":"warning","message":{"text":"ApprovalToolDetailView.body (cyclomatic 23): ApprovalToolDetailView.body has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcffe41a9b410ea9e750356dfe63b06df20fc810dcc307d73f84fe167b1b3d6"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexDiscovery.recentCodexDesktopThreadRecords (cyclomatic 23): CodexDiscovery.recentCodexDesktopThreadRecords has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd92c836ba69fda95ee95cf81d99f94137b7a6fe442b0b220717c1787c57d63"}},{"ruleId":"D1","level":"warning","message":{"text":"KimiDiscovery.findActiveKimiSessions (cyclomatic 23): KimiDiscovery.findActiveKimiSessions has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/KimiDiscovery.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b6b859f1362287acca7a858a5c19767af3e72950279fdfc8c7daba7c3a7778"}},{"ruleId":"D1","level":"warning","message":{"text":"CoworkAuditParser.event (cyclomatic 23): CoworkAuditParser.event has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CoworkAuditLog.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2d78ac076598290b09f1ffbcd3259d15f2c3168cd08c7a1797b50de2c66b89"}},{"ruleId":"D1","level":"warning","message":{"text":"KimiDiscovery.discoverKimiCodeSessionFromIndex (cyclomatic 22): KimiDiscovery.discoverKimiCodeSessionFromIndex 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":"Sources/CodeIsland/Discovery/KimiDiscovery.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0883a1ba53aa451f6a610658aabe0c411e484b6cdb9dcaed7e6f812a4f6ada"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodeDiscovery.readRecentFromOpenCodeSession (cyclomatic 22): OpenCodeDiscovery.readRecentFromOpenCodeSession 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":"Sources/CodeIsland/Discovery/OpenCodeDiscovery.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91b56a1a840811a0f3657bca00c0d83e625b469c366d84594a62a4d3e667d23"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcArgsParser.completeEnvironment (cyclomatic 22): ProcArgsParser.completeEnvironment has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HostHarness.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b95cff6c41791d9739936756488aa5268cf3fc5a6d8b8d092d2c55c7b31dda"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownInlineLiterals.escapingWordDelimiters (cyclomatic 22): MarkdownInlineLiterals.escapingWordDelimiters has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownInlineLiterals.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93a23592e38a34b986b7f1d3f0de482b900f411be24c4c4b4dd3a681d935ab9"}},{"ruleId":"D1","level":"warning","message":{"text":"HookEvent.codexToolDescription (cyclomatic 22): HookEvent.codexToolDescription 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":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b54983bf96b2c885538b10a473782f69b7a3c9a4d7f3e0660d52e9bd305e116"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.showNextPending (cyclomatic 21): AppState.showNextPending has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3205}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27e70e3fa90b9bf246aea333ac2a62ef2021f1d4ae9334f2c1f617553909954"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyAiWorkStreamEvent (cyclomatic 21): AppState.applyAiWorkStreamEvent has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"3529006ab9ed9cbf3d717ba5b1ae9eef27dd38e8eddc1e97ec69406b73abe5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalActivator.activate (cyclomatic 21): TerminalActivator.activate has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec9c6229806f25582f2123b01a652179908fab923fdb27c61a33128d92e357a"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalVisibilityDetector.isGhosttySessionVisibleInAnyWindow (cyclomatic 21): TerminalVisibilityDetector.isGhosttySessionVisibleInAnyWindow has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalVisibilityDetector.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92ae954f76e3315f70575928d89f8720b009680a6a8b4fb40274b17a07f4266"}},{"ruleId":"D1","level":"warning","message":{"text":"Scanner.statements (cyclomatic 21): Scanner.statements has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c3b391d872545c570c5998fe17560153daef34fc8646eeaa1734b208e75af8"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownBlockParser.listMarker (cyclomatic 21): MarkdownBlockParser.listMarker has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownBlockParser.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded1b054007a464787986e3baeb50911b6fdfae3aa2b6054e5c30c7626a7ac23"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSnapshot.normalizedSupportedSource (cyclomatic 21): SessionSnapshot.normalizedSupportedSource has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: SessionSnapshot.sourceLabel (cyclomatic 35) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30d815ed57707a97698cca0626a404b60316b71d34b9dede08ab4b63a0efc52"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.restoreSessions (cyclomatic 20): AppState.restoreSessions 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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3360}}}],"partialFingerprints":{"codehealthFindingId/v1":"1633be8d355aae55bf1a0c86152c4810c805fc3054494da4df108ab07fc1d02b"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexTmuxRouting.resolve (cyclomatic 20): CodexTmuxRouting.resolve has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexTmuxRouting.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44d2c044a41f7176653e1d904e1b1b22c697a437f3d2b944fe21f0cbbcb43ee"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.cliExists (cyclomatic 20): ConfigInstaller.cliExists has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"2661b126b844a049affba440f55ba8466d19a3ae4f4ce4b418b188bcd2da3545"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.removeManagedTraecliHooksLegacy (cyclomatic 20): ConfigInstaller.removeManagedTraecliHooksLegacy 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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"110dcc07cefd94b7fa135dd99a432f022226cb1da71545d78ffb65723a8068f3"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.uninstallHooks (cyclomatic 20): ConfigInstaller.uninstallHooks 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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2581bf59cdfcc6920303f54f12220f5ca232586503be7937bbec2ed40aed41ef"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalActivator.activateGhostty (cyclomatic 20): TerminalActivator.activateGhostty has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddccbcb23df10d943bdf72b1b6beb20aa305a4eb60304b5868a6270a12be442d"}},{"ruleId":"D1","level":"warning","message":{"text":"PushMessageFormatter.lines (cyclomatic 20): PushMessageFormatter.lines 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":"Sources/CodeIslandCore/PushNotification.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6b77c7b427243780018e302a643cbb6650a4b3d837eeacf324744f3a4bf9ab"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyCodexRequestUserInput (cyclomatic 19): AppState.applyCodexRequestUserInput has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BCodexAppServer.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1162ebf03300ff6d80abade20f33cb092b1d24ff6ab42909efab942c3ded67c2"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONMinimalEditor.readStringLiteral (cyclomatic 19): JSONMinimalEditor.readStringLiteral has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af05b6e587b60619236a6cf919d4d7c6caafc29d37e9403f590e8e49c34271a"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuBarIconAvoidance.occupiedMenuBarRanges (cyclomatic 19): MenuBarIconAvoidance.occupiedMenuBarRanges has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/MenuBarIconAvoidance.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b665aa7a899ca1eec47d137804f41f8d3a9dcc3ff5421d52038b4336c5ee4f13"}},{"ruleId":"D1","level":"warning","message":{"text":"PushNotifier.decide (cyclomatic 19): PushNotifier.decide has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PushNotifier.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabe7fe0095200dd22c47334f1af103dd8507e207b4e00c3a13ad5d07947c0a1"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalActivator.activateWeztermFamily (cyclomatic 19): TerminalActivator.activateWeztermFamily has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bec793a7821509102102f848b3c55a0d30be56d6f596a868e8acb4fb6e44d4"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalActivator.bringToFront (cyclomatic 19): TerminalActivator.bringToFront has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"15eee2fd618e6053c41289aa205be0da406445c8c03d4eaf7ba617678317484a"}},{"ruleId":"D1","level":"warning","message":{"text":"FlatStoreDiscovery.qoderLatestTerminalTurnTimestamp (cyclomatic 19): FlatStoreDiscovery.qoderLatestTerminalTurnTimestamp has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc3730c52c61b19449b2c81e451f197a8728788e844707dd76b4a49df508492"}},{"ruleId":"D1","level":"warning","message":{"text":"CoworkAuditState.apply (cyclomatic 19): CoworkAuditState.apply has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CoworkAuditLog.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"180fe7ce5ce598a36d71ce19e01c9c44a70871053c656164c6feb691875d4200"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSnapshot.applyHermesStore (cyclomatic 19): SessionSnapshot.applyHermesStore has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HermesSessionStore.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8f33f61e5db7b7abd10ef3ce996719c5d8c57626c4685ad9bfe445cd7d4764"}},{"ruleId":"D1","level":"warning","message":{"text":"SubsessionRouter.placement (cyclomatic 19): SubsessionRouter.placement has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SubsessionRouter.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f41566b8c111801fbdb7e68a82e5ba5f72c799e7b575f6d21f629d637d3c3c"}},{"ruleId":"D1","level":"warning","message":{"text":"BuddyMascotView.drawAlert (cyclomatic 19): BuddyMascotView.drawAlert has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5da462aede36ab776af5b6f5c2db8152d72e31b44365c38c039b22d798353e"}},{"ruleId":"D1","level":"warning","message":{"text":"codeisland-remote-hook._scan_codex_jsonl (cyclomatic 19): codeisland-remote-hook._scan_codex_jsonl has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0b45e38358d409269c57b1124e91abb88bbe00a3ddf30796e94d11b46fd817"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.handleAskUserQuestion (cyclomatic 18): AppState.handleAskUserQuestion 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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2630}}}],"partialFingerprints":{"codehealthFindingId/v1":"53346cd434e095c9e42738f077fe18349021e7cf736c589773f8ca18ab1ef48a"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexPermissionRules.repairingOrphanedMCPToolTables (cyclomatic 18): CodexPermissionRules.repairingOrphanedMCPToolTables has cyclomatic complexity 18 (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":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b88c526af2c7b679edaf8fa026299450585e628c3fbb56d408dbb88fe401f5e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.stripJSONComments (cyclomatic 18): ConfigInstaller.stripJSONComments 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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83cd634d011bb8bc9c46a61ccf60a4ba7bd5f140894fe7c920810608f12e0c8"}},{"ruleId":"D1","level":"warning","message":{"text":"ESP32StatePublisher.flush (cyclomatic 18): ESP32StatePublisher.flush 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":"Sources/CodeIsland/ESP32StatePublisher.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2420a186cde8163f73c9c1cc798e4ee3404a9342269c2023787cb020f6f0553c"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONMinimalEditor.skipObjectOrArray (cyclomatic 18): JSONMinimalEditor.skipObjectOrArray 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":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef45db1f736973da747cb66482c7133d0d3eb4862d285145371af68a24e28d24"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionListView.body (cyclomatic 18): SessionListView.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":3039}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3d0a0b5db8901695cff83adc556c5ff13311c6a5c1a9cf8e37d6f5e9c0cb91"}},{"ruleId":"D1","level":"warning","message":{"text":"HooksPage.body (cyclomatic 18): HooksPage.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c47baf0854b1ded972b3aeece90aafb15aa3e53d669a1d3c0ac8d19e1d529b"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcArgsParser.parse (cyclomatic 18): ProcArgsParser.parse has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HostHarness.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d948f68e67c0343a3e090d07951fd272b20745f4a4debf3923f996d9a7b0db"}},{"ruleId":"D1","level":"warning","message":{"text":"codeisland-remote-hook._scan_hermes_store (cyclomatic 18): codeisland-remote-hook._scan_hermes_store 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":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"238f972eb171bf0646b966395793e32928a67161a4d404e63db68676d285a69f"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.handleProcessExit (cyclomatic 17): AppState.handleProcessExit has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"091016edc74c14e4c562cb509d197db422172cd10d0e7eaad253d34b52ec2181"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.separateMergedCodexSubagents (cyclomatic 17): AppState.separateMergedCodexSubagents has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4492}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff96b6557865071956ad77d5a8d8fc48e9ffed5c39a36ac525ad6b7edc0c04c"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.routeDiscoveredSubsessionIfNeeded (cyclomatic 17): AppState.routeDiscoveredSubsessionIfNeeded has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4711}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d0bb8d1534e143879e3a098481772830b04a4137d8a2c5492e0daf0d176440"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyAiWorkStatsBackfill (cyclomatic 17): AppState.applyAiWorkStatsBackfill has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"136fb039e915ed2ad7e807e360b3274c646dd680fb51ff635693931ee91dcff5"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.maybeBackfillSubagentModel (cyclomatic 17): AppState.maybeBackfillSubagentModel has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BSessionMetadata.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83929af267dc1fafcbcf3012c53af22cd5e05cb27f8580950c46b1511572023"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONMinimalEditor.skipSpace (cyclomatic 17): JSONMinimalEditor.skipSpace has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This shape REPEATS in the file: one other method here (JSONMinimalEditor.findNextNonSpace) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"880b5f72e8c0dd8415c4a79a6f29a3b6285dac6a5cf19043fe75917127f28a61"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONMinimalEditor.findNextNonSpace (cyclomatic 17): JSONMinimalEditor.findNextNonSpace has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This shape REPEATS in the file: one other method here (JSONMinimalEditor.skipSpace) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb66864c49617dd741f6b49b98f3b3a550b379e30c836350af4d9c727d5f9e0"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionInlineButton.label (cyclomatic 17): SessionInlineButton.label has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":4985}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c5315d5ff40543d6111d160a20cfe9f11c8da0058ab7bcac95c3b68b4eee57"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexDiscovery.latestCodexTurnStatus (cyclomatic 17): CodexDiscovery.latestCodexTurnStatus has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab88653f1c4bf9c58f3aa7870e3beb262c98762d70f955ce4c7441127d3db103"}},{"ruleId":"D1","level":"warning","message":{"text":"FlatStoreDiscovery.readRecentFromCodeBuddyTranscript (cyclomatic 17): FlatStoreDiscovery.readRecentFromCodeBuddyTranscript has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a24d2d75d5c7a4f68f64859c4082143de938e197c00b7bb11688ec4833fa72f"}},{"ruleId":"D1","level":"warning","message":{"text":"AiWorkStatusMapper.toolName (cyclomatic 17): AiWorkStatusMapper.toolName has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d18b18893d8859cd3304df304742b9b7d0fee82fe18761f6f2de3b5b51a6da7"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexThreadSubsession.link (cyclomatic 17): CodexThreadSubsession.link has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexThreadSubsession.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4835eaf41f3a10695fc5256e6bde4e4229a77fa6c6aadbcffd5cfb6916e7670"}},{"ruleId":"D1","level":"warning","message":{"text":"codeisland-remote-hook.main (cyclomatic 17): codeisland-remote-hook.main has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f12acba8a58c57d4836254f8e09e9b4fe6106450270ca45e303e7fc4f70b61d"}},{"ruleId":"D1","level":"warning","message":{"text":"top-level statements (cyclomatic 16): top-level statements has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Bridge/Program.cs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b34da2c25913c05a811e1797f783a1c0e3161a259ca44e6885d5bbad62b8e7"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolDetector.Detect (cyclomatic 16): ToolDetector.Detect has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Hooks/ToolDetector.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee51582cf464a7385651a061d22c2f3dbb18acdc8f0b62807a1a54065c206c77"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.reconcileAiWorkLiveStatuses (cyclomatic 16): AppState.reconcileAiWorkLiveStatuses has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"44284f546b9d4409401bc5b1378d3b635c84456b86b8231145f0e73808e41f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyAiWorkSessionMetadata (cyclomatic 16): AppState.applyAiWorkSessionMetadata has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc507cb799bba1b1c4bb827ea7cbd3ac1c57874a90820882c3b28f7522d6b1a0"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.applyAiWorkListEntry (cyclomatic 16): AppState.applyAiWorkListEntry has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace142d48e879f663852a54708a2d379c1c5462d198c6492486c34e97757cd2e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigInstaller.isInstalled (cyclomatic 16): ConfigInstaller.isInstalled has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b78805edabada3c3ab59c156beb21cf7e8090e1e7d1d71a1cd136add797395"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONMinimalEditor.skipValue (cyclomatic 16): JSONMinimalEditor.skipValue has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"7163e7bfecfcd0f7c4b9c2a0045f851aefa98c3b21bd686f80a84d0e42772918"}},{"ruleId":"D1","level":"warning","message":{"text":"ClawdView.workCanvas (cyclomatic 16): ClawdView.workCanvas has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PixelCharacterView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"825996805913e49aeb1d5630bf2fe3d827b60973befb6b67d0b5c9f6088736ad"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexDiscovery.inspectCodexSubagentMetadata (cyclomatic 16): CodexDiscovery.inspectCodexSubagentMetadata has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b31cc43367337a6d017bd41220abeb0f4b4a4c666f7cd8959999a306b14b644"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotDiscovery.copilotSessionMatchesCwd (cyclomatic 16): CopilotDiscovery.copilotSessionMatchesCwd has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddda66c991c29ad52555b89de8d58d7c9d881826667de38c2e4a3a179ad4df5"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTaskTranscript.claudeResultEvents (cyclomatic 16): AgentTaskTranscript.claudeResultEvents has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AgentTaskParsing.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bef2a5d8f123d10294578ab35b625b2cc61f40db242e766c1c602895e44caa7"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeUsageScanner.scan (cyclomatic 16): ClaudeUsageScanner.scan has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ClaudeUsageScanner.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0112211345230184165204e45beef67bc6fbb4bbb5e602be312b2deea2be7b11"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSnapshot.swift.deriveSessionSummary (cyclomatic 16): SessionSnapshot.swift.deriveSessionSummary has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: SessionSnapshot.sourceLabel (cyclomatic 35) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"08eb81ff7d731b1d09b9d466b805a4eb3ca0e7b30f3026ea8442ca567c98ce02"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.render (cyclomatic 16): MainActivity.render has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/MainActivity.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f6467cde1a7e02077002c629ed7c5bcd6be9140319823824a43de5fe811aa2"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.swift.applyHookEvent (cognitive 241): SessionSnapshot.swift.applyHookEvent has cognitive complexity 241 (threshold 15). Drivers by points: if/else 91 (175 pts), boolean chains 59, match/switch 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 88). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"381f2bc418966401a7453bf460451dc0c49902be629fbf50f329ca1cf2659455"}},{"ruleId":"D2","level":"warning","message":{"text":"HookIntake.init (cognitive 108): HookIntake.init has cognitive complexity 108 (threshold 15). Drivers by points: if/else 45 (69 pts), boolean chains 35, ternaries 4 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"12550dee99f7d15afba7b84ec66d15810e0627d2ac9557c59a82c00d06de42cf"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.integrateDiscovered (cognitive 107): AppState.integrateDiscovered has cognitive complexity 107 (threshold 15). Drivers by points: if/else 36 (85 pts), boolean chains 17, ternaries 2 (4 pts), loops 1 (nesting depth added 51). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98ebca11ca39fe2f827f7280e9e0bd5b8e5c1f32bd8b85b726b0d2e382488a4"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-omp.codeislandExtension (cognitive 95): codeisland-omp.codeislandExtension has cognitive complexity 95 (threshold 15). Drivers by points: if/else 41 (49 pts), ternaries 21 (30 pts), boolean chains 13, loops 2 (3 pts) (nesting depth added 18). Most of this is not in the body itself: 5 of the 95 points are its own statements and the rest belongs to 19 function items inside it that branch (a function literal at line 656, formatSingleQuestionResponse, a function literal at line 1041, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf9fc0447f018eb9a17858b0b3e0fede188d6250407fd88067dae4b9e1ddee7"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.verifyAndRepair (cognitive 93): ConfigInstaller.verifyAndRepair has cognitive complexity 93 (threshold 15). Drivers by points: if/else 41 (83 pts), boolean chains 9, loops 1 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf64ec8529d829eced0dc34b57fc0faebadad609ddd32cfe738826d26d9a315"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner.enablingHooks (cognitive 91): Scanner.enablingHooks has cognitive complexity 91 (threshold 15). Drivers by points: if/else 26 (52 pts), boolean chains 21, ternaries 6 (16 pts), loops 2 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b55e0f555f36fdec6069c14f07964c3797f23b60361fa2b65f710c14cab569"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner.string (cognitive 90): Scanner.string has cognitive complexity 90 (threshold 15). Drivers by points: if/else 18 (58 pts), boolean chains 18, loops 3 (9 pts), ternaries 2 (5 pts) (nesting depth added 49). 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":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e075dd2219dcb5fa63d65212dba9510b4e328755fa4cefffd35d3213e6f4a4a"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexPermissionRules.plainCommands (cognitive 85): CodexPermissionRules.plainCommands has cognitive complexity 85 (threshold 15). Drivers by points: if/else 22 (57 pts), boolean chains 19, loops 2 (4 pts), ternaries 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 39). Of this number, 79 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1ac383c970ac88de259232cfbd6a41a0e72ac4bb5dc5312bb637f772841ec3"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.terminalName (cognitive 81): SessionSnapshot.terminalName has cognitive complexity 81 (threshold 15). Drivers by points: if/else 41 (76 pts), boolean chains 5 (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":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"876c64de50d323ff0c5a624976e99492e45b3065345145962c87dda5a566bb76"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.swift.extractMetadata (cognitive 78): SessionSnapshot.swift.extractMetadata has cognitive complexity 78 (threshold 15). Drivers by points: boolean chains 41, if/else 34 (35 pts), ternaries 1 (2 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c32efa8f4664535757ab199023780c084061c72d4e5b1dd1089c7d5af0693e4"}},{"ruleId":"D2","level":"warning","message":{"text":"HookEvent.toolDescription (cognitive 77): HookEvent.toolDescription has cognitive complexity 77 (threshold 15). Drivers by points: if/else 27 (71 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32fb59e6e37e66f8f60d10e6191e7db30ff36ffe51aa7cd5b81383087002734"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchPanelView.body (cognitive 76): NotchPanelView.body has cognitive complexity 76 (threshold 15). Drivers by points: if/else 32 (49 pts), ternaries 6 (11 pts), boolean chains 10, match/switch 3 (6 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc414b5d8d5074b58938ea986a581b5d891dbbd0019df17ae3f5caca7f439f4"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONLTailer.quickTypeProbe (cognitive 74): JSONLTailer.quickTypeProbe has cognitive complexity 74 (threshold 15). Drivers by points: if/else 17 (55 pts), ternaries 1 (6 pts), loops 3 (5 pts), boolean chains 4, match/switch 1 (4 pts) (nesting depth added 48). 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":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08c37f862e0e15e626f30b96161b43853bc040c2e2e22a14ff3e7f94699e819"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.swift.handleSubagentEvent (cognitive 72): SessionSnapshot.swift.handleSubagentEvent has cognitive complexity 72 (threshold 15). Drivers by points: if/else 28 (58 pts), boolean chains 13, match/switch 1 (nesting depth added 30). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2343}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e9d639c13925c535af9dafcc33eb97b651d951634d6094243b50bd4621afb7"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.handleEvent (cognitive 71): AppState.handleEvent has cognitive complexity 71 (threshold 15). Drivers by points: if/else 30 (39 pts), boolean chains 23, ternaries 3 (8 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf45b16ef172a3f796abda9613108cb4e77f681f1568b9f2ead88d1c5dfd1e8d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyCursorSubsessionModeToKnownSessions (cognitive 71): AppState.applyCursorSubsessionModeToKnownSessions has cognitive complexity 71 (threshold 15). Drivers by points: if/else 24 (54 pts), boolean chains 11, loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4001}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc030e4550fe494f5a99e7ffb0b09461aa9b79585985f198b905fed0f72f62b"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.installExternalHooks (cognitive 66): ConfigInstaller.installExternalHooks has cognitive complexity 66 (threshold 15). Drivers by points: if/else 29 (43 pts), boolean chains 16, ternaries 2 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaa5b7854bc1e8631c745437fe531ff99bd234b94acc94b21c4de953e6accdc"}},{"ruleId":"D2","level":"warning","message":{"text":"HookIntake.addTerminalContext (cognitive 66): HookIntake.addTerminalContext has cognitive complexity 66 (threshold 15). Drivers by points: if/else 29 (39 pts), boolean chains 27 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc17a4414ed7241d5cc418e55e35f7a1c0459f16c957594ae05af4ff277e0467"}},{"ruleId":"D2","level":"warning","message":{"text":"KimiDiscovery.readRecentFromKimiTranscript (cognitive 64): KimiDiscovery.readRecentFromKimiTranscript has cognitive complexity 64 (threshold 15). Drivers by points: if/else 21 (46 pts), boolean chains 12, match/switch 2 (5 pts), loops 1 (nesting depth added 28). Of this number, 55 points are the body\u0027s own statements and 9 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/KimiDiscovery.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a237e2ab959715ebc775bc52445fa4c66cec49b0de3e3a73eb81dd307d150c"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexDiscovery.discoverCodexSessions (cognitive 62): CodexDiscovery.discoverCodexSessions has cognitive complexity 62 (threshold 15). Drivers by points: if/else 15 (33 pts), ternaries 4 (11 pts), boolean chains 7, match/switch 2 (6 pts), loops 3 (5 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee4b76bc81dca3d0259351ee7a070edbbedc748e63b7ec8a646aadbe8ae979f"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-pi.codeislandExtension (cognitive 57): codeisland-pi.codeislandExtension has cognitive complexity 57 (threshold 15). Drivers by points: if/else 23 (30 pts), ternaries 14 (17 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 11). None of this is in the body itself: all 57 points belong to 14 function items inside it that branch (a function literal at line 635, a function literal at line 529, a function literal at line 470, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-pi.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"313e901911a9d3f19a14d69e553fb75d4583886a9d6a4eec5e65a95795477763"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.cleanupIdleSessions (cognitive 56): AppState.cleanupIdleSessions has cognitive complexity 56 (threshold 15). Drivers by points: if/else 19 (38 pts), loops 8 (9 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 23). Of this number, 55 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1acae4518f211bc3f64d51e496e55263ad3a5e9aaa488d5c7678f86cdbca327"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.normalizeTraecliHooksListIndentation (cognitive 55): ConfigInstaller.normalizeTraecliHooksListIndentation has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (40 pts), boolean chains 9, loops 3 (6 pts) (nesting depth added 29). 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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3ca9b551f59c496bd59ff0bedda648e245da01e4d3de4f69842c6839618e99"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeDiscovery.readRecentFromTranscript (cognitive 51): ClaudeDiscovery.readRecentFromTranscript has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 9, match/switch 1 (5 pts), ternaries 1 (4 pts), loops 3 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/ClaudeDiscovery.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"54bb6970c12c9b4659067bc079afede915d277c190ed1d2587ed93be35b412bf"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.swift.applyEnvMetadata (cognitive 51): SessionSnapshot.swift.applyEnvMetadata has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 32, if/else 18 (19 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3de7617c154a312576090b30b9fcd61352decf355bbeb59f177b28514e8dc72"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalActivator.activateTerminal (cognitive 49): TerminalActivator.activateTerminal has cognitive complexity 49 (threshold 15). Drivers by points: if/else 25 (27 pts), boolean chains 22 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea739a073f66d1c782e1ba9cb4301824a48e078a4ce72a825fa8d97cd78b18d"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsWindow.RefreshLanguageFixed (cognitive 48): SettingsWindow.RefreshLanguageFixed has cognitive complexity 48 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c06dcdee7c8274f0a17decd5790f57c05c05161392fda5f3800c46361ba5724"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.install (cognitive 48): ConfigInstaller.install has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (42 pts), boolean chains 4, loops 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1b46f085f2bd670fb14d300d3323b74565002e0fa8a80b7a5eb66ecfe1139f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.removeManagedTraecliHooksLegacy (cognitive 47): ConfigInstaller.removeManagedTraecliHooksLegacy has cognitive complexity 47 (threshold 15). Drivers by points: if/else 7 (27 pts), loops 5 (13 pts), boolean chains 7 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bdb55a664a1795fae62689c47c75e20130da82e5c4faac1c5f5f37e1140990"}},{"ruleId":"D2","level":"warning","message":{"text":"CoworkSessionWatcher.process (cognitive 46): CoworkSessionWatcher.process has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 13, ternaries 1 (2 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CoworkSessionWatcher.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07ec8b4a120eb8d9754819124939acbeeb01e40794d03754171c9989f955663"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeUsageScanner.scan (cognitive 46): ClaudeUsageScanner.scan has cognitive complexity 46 (threshold 15). Drivers by points: if/else 8 (33 pts), loops 4 (10 pts), boolean chains 3 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ClaudeUsageScanner.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"349073cf72bf307de151e08193a1c6011b3953b177dd2c1609cefc0d82f2a304"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.attachTranscriptTailerIfNeeded (cognitive 45): AppState.attachTranscriptTailerIfNeeded has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 17, match/switch 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BTranscriptTailer.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f35dda30c8953b9d852832158bde891014da6053aff96e305e7f3b53f892c95"}},{"ruleId":"D2","level":"warning","message":{"text":"KimiDiscovery.findActiveKimiSessions (cognitive 43): KimiDiscovery.findActiveKimiSessions has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 9, loops 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/KimiDiscovery.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"57615bb19214619401bdd5ce8e818fdf8dc4f2ef476deebeb50a2c0a4df8240b"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONLTailer.apply (cognitive 43): JSONLTailer.apply has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (34 pts), match/switch 3 (6 pts), boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67565661b0ae6462b8d67b9011deaa9e3d77c10f3940b54e2e4683b7519e59f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.stripJSONComments (cognitive 42): ConfigInstaller.stripJSONComments has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 4 (12 pts), boolean chains 4 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"8999834b75810182f0f772869662b4a0ae31c130491bc91f198d3b78e1e6cf96"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyCodexSubsessionModeToKnownSessions (cognitive 41): AppState.applyCodexSubsessionModeToKnownSessions has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 6, match/switch 1 (3 pts), loops 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3873}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94ac30821d15b2e107927e36bd3317c0b7be2beb32a5d2aa555449e0c67c0d6"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyTranscriptDelta (cognitive 41): AppState.applyTranscriptDelta has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BTranscriptTailer.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"13eeff64d7cf28de47b7d0b2e8ac94e441cbe273978fcf2cb3dee84c4c717ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"HookEvent.activityCategory (cognitive 41): HookEvent.activityCategory has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 32, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e1e330d6ff7d48f969e87703c398cc2bd2fb562e954f230785cb5d55f67958"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-remote-hook._scan_session_jsonl (cognitive 40): codeisland-remote-hook._scan_session_jsonl has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 8, error handling 2 (3 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"047fbde22b568d54358f1f9f8e41d578c0943e4580628c4bb9666e0eac749a42"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.answerQuestionMulti (cognitive 39): AppState.answerQuestionMulti has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2855}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbcb63c9e8f19e37e4a00fbc603a915d97238cbbcfcbd99f6113e8da4a21313"}},{"ruleId":"D2","level":"warning","message":{"text":"PushResponseInterpreter.interpret (cognitive 39): PushResponseInterpreter.interpret has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 6 (12 pts), boolean chains 8, match/switch 1 (nesting depth added 15). Of this number, 37 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/PushChannel.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d6463b3e6accb6f55c13bb2e1a5cc9277264c75324f7837ba2da839eec2876"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.separateMergedCodexSubagents (cognitive 38): AppState.separateMergedCodexSubagents has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (26 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4492}}}],"partialFingerprints":{"codehealthFindingId/v1":"82adcafa6e6900dbd76b446efe01041071e8625a5483e539409c44f644edb301"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.setEnabled (cognitive 38): ConfigInstaller.setEnabled has cognitive complexity 38 (threshold 15). Drivers by points: if/else 24 (36 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3b08da5114c1b80e45d425175d97f649eb1ecab42d1e9c4cd8b77841548d3a"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexDiscovery.readRecentFromCodexTranscript (cognitive 37): CodexDiscovery.readRecentFromCodexTranscript has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 18, if/else 8 (16 pts), loops 3 (nesting depth added 8). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"5288f99cd7dae366343f134b3a87a99790fe1f65ffa49a3427707347caec97c3"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyCoworkUpdate (cognitive 35): AppState.applyCoworkUpdate has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 12, ternaries 5 (8 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BCoworkWatch.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf033f5c6c849617dd58bfb5820404ac356b930ee5669b1deecc003d4a870760"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.uninstallHooks (cognitive 35): ConfigInstaller.uninstallHooks has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 3 (8 pts), boolean chains 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3133}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fcc21c2989f13e6b86f72191e404229f123a956fcf07b83f71bb54230e15f7"}},{"ruleId":"D2","level":"warning","message":{"text":"HookServer.processRequest (cognitive 35): HookServer.processRequest has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 7, match/switch 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HookServer.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc04e5f79aaadd812983cab9a081e95b4effdb9f2748ff7b3120f1307523e0a"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalVisibilityDetector.liveIsSessionTabVisible (cognitive 34): TerminalVisibilityDetector.liveIsSessionTabVisible has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (27 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalVisibilityDetector.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9054ca1e767fd1aa65a54f2181ba36268f5d6cc2e221d4d92a6eb21ca6a5ed"}},{"ruleId":"D2","level":"warning","message":{"text":"NotchPanelView.swift.stripDirectives (cognitive 34): NotchPanelView.swift.stripDirectives has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":5829}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceead27b7dd3ce64b2535e6974bdb24b10f57eeccba8b52529f5c28f775bee86"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.swift.fillMissingParentMetadataFromSubagentEvent (cognitive 34): SessionSnapshot.swift.fillMissingParentMetadataFromSubagentEvent has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 19, if/else 12 (15 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1863}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcdc1194bb94d8cdd71ee517a5c1056186e543c32bc71419a2c3e31548bf967"}},{"ruleId":"D2","level":"warning","message":{"text":"CompanionDisplayText.stripDirectives (cognitive 34): CompanionDisplayText.stripDirectives has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/Shared/CompanionDisplayText.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c924ef2858e627f08b1439380a53b16d7347929b2128bc9ffd0fbbdd17c048"}},{"ruleId":"D2","level":"warning","message":{"text":"ApprovalCopy.action (cognitive 33): ApprovalCopy.action has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 26, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f42c9a0e1b3ef5e49c470e0a73337a6b73d23acd151d13d1ae33e10ceb0c09"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexDiscovery.recentCodexDesktopThreadRecords (cognitive 33): CodexDiscovery.recentCodexDesktopThreadRecords has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 6, ternaries 4 (5 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35b89d92d080cf32872e201bce19b5b08bc5c77b521019365ff3ebd781f0c1d"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexDiscovery.codexSpawnEdgeRecords (cognitive 33): CodexDiscovery.codexSpawnEdgeRecords has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 7, loops 4 (7 pts), ternaries 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"99069751b639d4e6829c38909ba1b23feb637213612e100f5d6a5717fca5dd5c"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsWindow.RefreshLanguageChinese (cognitive 32): SettingsWindow.RefreshLanguageChinese has cognitive complexity 32 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11b358b513b1cfb3add48ca16e1399bc4f04054e370c7e6af40563b23f89111"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyCodexRequestUserInput (cognitive 32): AppState.applyCodexRequestUserInput has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 3 (7 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BCodexAppServer.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c60fb3208ef3fd57989a125ceac62c70f636a5e0d1222e90470d2bf295f711"}},{"ruleId":"D2","level":"warning","message":{"text":"ApprovalToolDetailView.body (cognitive 32): ApprovalToolDetailView.body has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 2, match/switch 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1f775e392323f48f4ff7d21e8678722975bb12e41d42095951f60389a3ac0d"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner.withoutAppendedFeaturesTable (cognitive 32): Scanner.withoutAppendedFeaturesTable has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 9, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3c21f10d40731d80e4b3e1805e5e44bae6ee6f9b24ebf1ef999cbf59cee6a7"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner.statements (cognitive 32): Scanner.statements has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6, loops 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"17be17bde082ede9093cc1109ccabe74bab29d1f75ab7e1b07fd66637b17ff0b"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownInlineLiterals.escapingWordDelimiters (cognitive 32): MarkdownInlineLiterals.escapingWordDelimiters has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (10 pts), loops 4 (10 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownInlineLiterals.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43148b99737a95356178a33d41c9f72d40d89010304b4ecba5f401a6e7ec186"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.removeManagedTraecliHooks (cognitive 31): ConfigInstaller.removeManagedTraecliHooks has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd61ddc70b87ded456cb6d49d2575573a746488afccabe8a3533722009d3afe9"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalActivator.activateGhostty (cognitive 31): TerminalActivator.activateGhostty has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 10). Of this number, 29 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9202b7331672cf22ccd2a01cc443703fe6108cdc95478d8b75af6dbf75deb3"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexDiscovery.latestCodexTurnStatus (cognitive 31): CodexDiscovery.latestCodexTurnStatus has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 3 (5 pts), boolean chains 4, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e60b244d496f3f4b8c47abfe66d834e760d70eb580077c3ef465163589538b"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodeDiscovery.readRecentFromOpenCodeSession (cognitive 31): OpenCodeDiscovery.readRecentFromOpenCodeSession has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 13, loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/OpenCodeDiscovery.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b7f296e457039547483ee43517b1d367bead1646f841afa494a5c937d28ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-remote-hook._scan_hermes_store (cognitive 31): codeisland-remote-hook._scan_hermes_store has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 3 (8 pts), boolean chains 2, error handling 2, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8aaf1ccff990f48b10e113cec3dc0745e3d477e35a1a5e977263b1030ee886"}},{"ruleId":"D2","level":"warning","message":{"text":"top-level statements (cognitive 30): top-level statements has cognitive complexity 30 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows.Smoke/Program.cs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ee000711d881c4be502c8542bc42e02c7c1cf39911a402e6e1b71f767e17d4"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cognitive 30): AppDelegate.applicationDidFinishLaunching has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24 (27 pts), ternaries 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppDelegate.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"21eae556dbb1b7a7fd3da946050c01ff131b97b3432935b45d57ed319c4b89cd"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.restoreSessions (cognitive 30): AppState.restoreSessions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 7, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b667aecb69c3e9b718b5ef1af49e906321e9571d2af789a8a6ff0551db2d63f2"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsWindow.RefreshLanguage (cognitive 29): SettingsWindow.RefreshLanguage has cognitive complexity 29 (threshold 15). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cec7721aa84b44662f25ec243c610e3b3c6a5b43357102bfc9a12ef18e7651b"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.tryMonitorSession (cognitive 29): AppState.tryMonitorSession has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4523bb0d891a4f87fff7500e71a42226ce0a8b8a35adcb5e3095e6670c4b7a3"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.showNextPending (cognitive 29): AppState.showNextPending has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3205}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b2ce019500a05d10e689dfadf5407b63a55510dcb79f9984e29da8e8711f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.handleAiWorkStreamEvent (cognitive 29): AppState.handleAiWorkStreamEvent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 13, match/switch 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa878001d0728d4271cc68ae11b96589d0252791227c43dacb29aea1e8b5593e"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyAiWorkStreamEvent (cognitive 29): AppState.applyAiWorkStreamEvent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 2 (8 pts), boolean chains 3, match/switch 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a2150fc4428a25e1ffda7fa2f1b9db463812dc1a158965e8cc0b3737d28923"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIProcessResolver.sourceMatchesExecutablePath (cognitive 29): CLIProcessResolver.sourceMatchesExecutablePath has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 26, if/else 2, match/switch 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bcd26ca97d204391584a566674f762964411d61b69ac1e6684e4b1d850f1bb"}},{"ruleId":"D2","level":"warning","message":{"text":"index.register (cognitive 29): index.register has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 8, ternaries 5 (6 pts) (nesting depth added 2). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 431, a function literal at line 402, onAgentRunStart, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-openclaw/index.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"46516f3ca7744a8cb0aa866d6cb6693c962615ade428720f37739726c10a3b69"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.backfillClaudeTerminalMetadata (cognitive 28): AppState.backfillClaudeTerminalMetadata has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 23, if/else 5. Of this number, 25 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BClaudeTerminalMetadata.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2909558f194d6433fe1ae80c26cdc0649326f9579763e2acfa911f97bb6aa6a4"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeLogoShape.parseSVGPath (cognitive 28): ClaudeLogoShape.parseSVGPath has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 7, loops 3, match/switch 1 (2 pts) (nesting depth added 7). Most of this is not in the body itself: 12 of the 28 points are its own statements and the rest belongs to 3 function items inside it that branch (num, skipWS, peekNum). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":5054}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba2045e971b4f51aa4ff87821b3874e0139d1516009224746f1015219d2f5cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenDetector.frontmostApplicationWindowBounds (cognitive 28): ScreenDetector.frontmostApplicationWindowBounds has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, if/else 7 (11 pts), loops 2, ternaries 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ScreenDetector.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"525132e28ad68eb5223b502e4b400709cf0c89ed2e32e3f1fdfeb51a77bd6047"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotDiscovery.readRecentFromCopilotTranscript (cognitive 28): CopilotDiscovery.readRecentFromCopilotTranscript has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 11, loops 3 (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":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6658cc0fac734d53b3f2d9a49e788e878c17a278994af9fa01d889cd61101c"}},{"ruleId":"D2","level":"warning","message":{"text":"FlatStoreDiscovery.qoderLatestTerminalTurnTimestamp (cognitive 28): FlatStoreDiscovery.qoderLatestTerminalTurnTimestamp has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 11, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bb111dfa78ad60620032cf1241d2007943edf720ba3769f5add612bc5bcea1"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.top-level code (cognitive 28): main.swift.top-level code has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 6, ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandBridge/main.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b109060b3e7181f9ed48495471b41ccc2c050d7f0f4a144e9a20c80aa01df59c"}},{"ruleId":"D2","level":"warning","message":{"text":"PushMessageFormatter.lines (cognitive 28): PushMessageFormatter.lines has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 4 (9 pts), boolean chains 1, match/switch 1 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/PushNotification.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ecda4937109a82d5e8c25ded00a6e49a6933fc28756c54267f98aefb17e84e"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.applyHermesStore (cognitive 28): SessionSnapshot.applyHermesStore has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 8, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HermesSessionStore.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c9158722345e678262be53a7be0862563d828d461c5b70d26603f83caaa716"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.handleAskUserQuestion (cognitive 27): AppState.handleAskUserQuestion has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (23 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2630}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e63b848cefd2df59521b0631a8fb0b2ccd1cbcb3584d7c8b8a2b0ebbef810c"}},{"ruleId":"D2","level":"warning","message":{"text":"KimiDiscovery.discoverKimiCodeSessionFromIndex (cognitive 27): KimiDiscovery.discoverKimiCodeSessionFromIndex has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 10, ternaries 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/KimiDiscovery.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcbfcd350e715475724a027a5726791f1ab4d30529cf566fe48f41bdbbb7d91"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcArgsParser.completeEnvironment (cognitive 27): ProcArgsParser.completeEnvironment has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 5, boolean chains 4, match/switch 1 (2 pts), ternaries 1 (nesting depth added 8). Of this number, 23 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HostHarness.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f8934130ba2363909bfe4abac40cfdfa5ba1c19c472b3eeef5e25a7d97b001"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONMinimalEditor.skipSpace (cognitive 26): JSONMinimalEditor.skipSpace has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 9, loops 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (JSONMinimalEditor.findNextNonSpace) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5566d88a9d8a641c258ab91ebf526039f8f55e5d342ad6ae8bc0afe89507d8"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONMinimalEditor.findNextNonSpace (cognitive 26): JSONMinimalEditor.findNextNonSpace has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 9, loops 3 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (JSONMinimalEditor.skipSpace) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"e348940ce96473760cbb3682e567efdcb0d4851c769b23c8fd42578c93a5a95a"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionListView.groupedSessions (cognitive 26): SessionListView.groupedSessions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"3221149be36e38a4f0bf3e568d99a340f975b5a380cd425b161abef47d7df9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalVisibilityDetector.isKittyWindowActive (cognitive 26): TerminalVisibilityDetector.isKittyWindowActive has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (6 pts), boolean chains 5 (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":"Sources/CodeIsland/TerminalVisibilityDetector.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf516f728636052177c43c2d9c877d37b9d7d1d37d4bf0d79fbeea1c558d7c6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskList.apply (cognitive 26): AgentTaskList.apply has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 6, ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AgentTaskList.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"df56cd50703f7a6056bbf4f70c6a2831e49b032645a9e47ffa313c60dc5989ae"}},{"ruleId":"D2","level":"warning","message":{"text":"CoworkAuditParser.event (cognitive 26): CoworkAuditParser.event has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 8, match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CoworkAuditLog.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4737bec17179ca1b3d2827b34648f59a564a63bdc5a9b8067b2735863fabaaee"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyAiWorkStatsBackfill (cognitive 25): AppState.applyAiWorkStatsBackfill has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29cd2ed24ea8326bf5b836df4057d5cfdeb85678c584d5880013a6efaa82fb8"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalActivator.activate (cognitive 25): TerminalActivator.activate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94e9f960afa72f0194dfbfb03551d525c82f857d679bb67a0dc65eda2db5495"}},{"ruleId":"D2","level":"warning","message":{"text":"HookEvent.codexToolDescription (cognitive 25): HookEvent.codexToolDescription has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"be78f950563d5695c8bd6d5d4b8dfd6755a991a567eb9f3ad5559f831c0fe0c1"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.separateMergedCursorSubagents (cognitive 24): AppState.separateMergedCursorSubagents has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4607}}}],"partialFingerprints":{"codehealthFindingId/v1":"172325210d89403be292c4edaa0d602e11eda2d051eadf0f93cae08f5c22d3a0"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowUpReminderController.tick (cognitive 24): FollowUpReminderController.tick has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/FollowUpReminderController.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"140497a0ae402c61ef187c7d81a6597ee590f65d19ca7aa3f60d86ba6c0814a1"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONMinimalEditor.skipObjectOrArray (cognitive 24): JSONMinimalEditor.skipObjectOrArray has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 9, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"79766e620ce491ee7f0828e98892f9b27dd7f61daf4ee0c309fb33b34ce966ce"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionListView.body (cognitive 24): SessionListView.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 6 (9 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":3039}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c2fd5e0153dfbd057290209e987f48d44f1def5eeab624e849e2de4a70610d"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionInlineButton.label (cognitive 24): SessionInlineButton.label has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 11 (22 pts), boolean chains 1, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":4985}}}],"partialFingerprints":{"codehealthFindingId/v1":"38827181c0bedda22730f373fcba7874fb6da8552bab211fe1ab857f7094985c"}},{"ruleId":"D2","level":"warning","message":{"text":"HooksPage.body (cognitive 24): HooksPage.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 4 (8 pts), loops 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c481e7776b3e0b22361f7c16180d2bcc7e29afeb208952fe991af8ba0e2cb15"}},{"ruleId":"D2","level":"warning","message":{"text":"top-level statements (cognitive 23): top-level statements has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Bridge/Program.cs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfa6699f5389fcd3f9e49020828a6f36edf6b229581200cd61b7d8b8be05ad3"}},{"ruleId":"D2","level":"warning","message":{"text":"ESP32StatePublisher.flush (cognitive 23): ESP32StatePublisher.flush has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ESP32StatePublisher.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d2d23473d31001da82f89e32f4762c9ffd2fdcf6198c7db89704d53e337238"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONMinimalEditor.readStringLiteral (cognitive 23): JSONMinimalEditor.readStringLiteral has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"19582f01750d8d9dcd4b6d9645569e27e86d57cb25b43e7eaed324079b8314cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskTranscript.claudeResultEvents (cognitive 23): AgentTaskTranscript.claudeResultEvents has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 5, match/switch 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AgentTaskParsing.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8adc07d0005264b9e2c52dcc169acf7b13699c867097170331cba9de231dbf"}},{"ruleId":"D2","level":"warning","message":{"text":"AttentionPolicy.intents (cognitive 23): AttentionPolicy.intents has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 5 (11 pts), match/switch 4 (8 pts), if/else 2 (4 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AttentionPolicy.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"99953506eb3b4e6e052fbb0cc55c2d43d511ba14642dfc18f8cfbbdc06390ce6"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcArgsParser.parse (cognitive 23): ProcArgsParser.parse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 5 (6 pts), boolean chains 5 (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HostHarness.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f15b2c9f373a960b21f8aa8015f7aa5a87b24228cc1242692b2defb3f8245e"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownBlockParser.listMarker (cognitive 23): MarkdownBlockParser.listMarker has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (7 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownBlockParser.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a00f585a6b674724e872e1cbe0406410c45fa5961f02935982b7abd36b37cb"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONMinimalEditor.parseTopLevelObject (cognitive 22): JSONMinimalEditor.parseTopLevelObject has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"898b5adbf900e60910b087e72653889043d648aacc61149cbcaf431e4ac5fac7"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuBarIconAvoidance.occupiedMenuBarRanges (cognitive 22): MenuBarIconAvoidance.occupiedMenuBarRanges has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (10 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/MenuBarIconAvoidance.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdeece965296837ee65c891befeb56b4bbbb68487e85e515e78778c3501aac4"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalActivator.activateWeztermFamily (cognitive 22): TerminalActivator.activateWeztermFamily has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 7, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48f03a76de6576f5d7f3e2ab6d50c2c22d2930cba388540db719406355f2254"}},{"ruleId":"D2","level":"warning","message":{"text":"BuddyMascotView.drawAlert (cognitive 22): BuddyMascotView.drawAlert has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"264e5b02c261c6d12a1fc0c6a6ed0c49e20c50cb4446f4aef9c18010dd73ef39"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-remote-hook._scan_codex_jsonl (cognitive 22): codeisland-remote-hook._scan_codex_jsonl has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, error handling 2 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b66c6f49c4359be8114471ff0b7a4d076c86723330c8058e892c9a9d2fcc4f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolDetector.Detect (cognitive 21): ToolDetector.Detect has cognitive complexity 21 (threshold 15). To reduce it, flatten the nesting: invert conditions into early returns or guard clauses so the happy path stays at one level, and lift the deepest nested block into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Hooks/ToolDetector.cs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d85f2270cef09170c58336b30b83019c41c112126022e61dd1107ded75bcb58"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyAiWorkListBackfill (cognitive 21): AppState.applyAiWorkListBackfill has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c6dc94a22a316a26ff2b544cf2c1b7ce2c7c1ebfaa83183aaa7538ed402d7b"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.performCardShortcut (cognitive 21): AppState.performCardShortcut has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BCardShortcuts.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"228faf3a4332bbe34fc8d805e621ca40dcabf531f3a07e94d461caf0d550ad5f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexPermissionRules.repairingOrphanedMCPToolTables (cognitive 21): CodexPermissionRules.repairingOrphanedMCPToolTables has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), loops 4 (5 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d937a41dae03b4a779c6bc51a6c1c29396900dfcc151c1f09667db70cc9dfcf"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexTmuxRouting.resolve (cognitive 21): CodexTmuxRouting.resolve has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (7 pts), loops 1, ternaries 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexTmuxRouting.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa64324dcd422c1eeb647af342cc0cd7e6c31359a3fb3e2890e809107313fe5"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.trySurgicalMergeTraecliHooks (cognitive 21): ConfigInstaller.trySurgicalMergeTraecliHooks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b05ebe74bfcafe967586a1d5cc67e19baf217ae624a9d7462f4a6c64ec61735"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONMinimalEditor.deleteTopLevelKey (cognitive 21): JSONMinimalEditor.deleteTopLevelKey has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe63e8a72f60c60c0ef85b7d114f583df2f4ed8079f28f4866a149eda48e1095"}},{"ruleId":"D2","level":"warning","message":{"text":"CompactRightWing.body (cognitive 21): CompactRightWing.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c30817e68147a777cc5c6f1752d79ba9097fa3451544f63462eab199c83dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownBlockParser.parseBlocks (cognitive 21): MarkdownBlockParser.parseBlocks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 1 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownBlockParser.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6cdaed49dc7b5758787cda3c6a0e657fcea81f1e7bb9b700fa7abf29283ca5"}},{"ruleId":"D2","level":"warning","message":{"text":"WarpPaneResolver.performQuery (cognitive 21): WarpPaneResolver.performQuery has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/WarpPaneResolver.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ce844fe61ef59de3807b29498f93d858e05c45fcd2bb969e96fb4a1513f9f8"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-remote-hook.main (cognitive 21): codeisland-remote-hook.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb9aa7172e8b469b1e44b91ce3369f9d911704e093af02f95250294ffd8073c"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexPermissionRules.latestTurnContextPayload (cognitive 20): CodexPermissionRules.latestTurnContextPayload has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (5 pts), boolean chains 2, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"825599992325b043b4c976f6637e0ae6f438822a07c2dd04041fd99052f489d0"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexPermissionRules.tomlTableSegments (cognitive 20): CodexPermissionRules.tomlTableSegments has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 4). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa89e30d1cef299c70f7c778dedfcad38ad31c0625eb0d75ac01100f5e50c750"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.cliExists (cognitive 20): ConfigInstaller.cliExists has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"97310917981e516f8e16693cc12d1acf7f53161974e4556751de5bd55a05f297"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.removeManagedHermesHooks (cognitive 20): ConfigInstaller.removeManagedHermesHooks has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3a57da29c76fac25ce768c91423c120770edc4c88ada2c229edca0e6467be9"}},{"ruleId":"D2","level":"warning","message":{"text":"PanelWindowController.setupHorizontalDragMonitor (cognitive 20): PanelWindowController.setupHorizontalDragMonitor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PanelWindowController.swift"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3e3570589cc808e780b909114c1b0594c057bf3c9171b21880d2e644b45ddc"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalActivator.bringToFront (cognitive 20): TerminalActivator.bringToFront has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0714cb905e5d6105d87ee099baeabdcece922c2ce847898d81bbe52fe38d27"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalVisibilityDetector.isGhosttySessionVisibleInAnyWindow (cognitive 20): TerminalVisibilityDetector.isGhosttySessionVisibleInAnyWindow has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalVisibilityDetector.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"d352f632008b1dbc124b943ea681b70c0807004f75804897b0e889b871d3b075"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokDiscovery.grokDirectorySessionCandidates (cognitive 20): GrokDiscovery.grokDirectorySessionCandidates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 6, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/GrokDiscovery.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f120e8e6f39893a1b8db42aa74a39e9302df7ce9224549a412a7e772adc13625"}},{"ruleId":"D2","level":"warning","message":{"text":"AiWorkStatusMapper.toolName (cognitive 20): AiWorkStatusMapper.toolName has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"367e0f39c87cee1081d1ae77129e3fa9e0bc425f0b4d825f5fb0afc4c0e2b42d"}},{"ruleId":"D2","level":"warning","message":{"text":"AiWorkStatusMapper.toolDescription (cognitive 20): AiWorkStatusMapper.toolDescription has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5 (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":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfa4696c2c52ee35cc93c2d5ee4677ac55c50cff1e7413bed0d1face215e653"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeQuotaSnapshot.parse (cognitive 20): ClaudeQuotaSnapshot.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 7). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ClaudeQuota.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddeb39416674b7f94d496a6f9aae9342ffda14f87175c59f8a8197b478ca859"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONLTailer.extractText (cognitive 20): JSONLTailer.extractText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb1f7314dfed5344bc30299c01990276761cc87d9b638986e581a24ce0abd45"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.normalizedSupportedSource (cognitive 20): SessionSnapshot.normalizedSupportedSource has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d02d3bb4c0dfe42d7d5eceed979d35b8b1d35800263ea44dc9d79b03a41933"}},{"ruleId":"D2","level":"warning","message":{"text":"SubsessionRouter.placement (cognitive 20): SubsessionRouter.placement has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, ternaries 1 (2 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SubsessionRouter.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbce7d8a87dfe13966db7eca5d572d4c53531456827a6f50aaffe99cd710733"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-remote-hook._extract_text (cognitive 20): codeisland-remote-hook._extract_text has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"de052101d654f83acd86e6c96cd0ae53cbf2864b7bd772d521e389129758eb5f"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.maybeBackfillSubagentModel (cognitive 19): AppState.maybeBackfillSubagentModel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, ternaries 1 (2 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BSessionMetadata.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cda473f6d722a399e3c4ff1740d864e66c9f01fa3c28fbe762b7dcea4dd3a81"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestionBar.multiQuestionContent (cognitive 19): QuestionBar.multiQuestionContent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fcd642c1657550b0426777e200e2852e4f8d90d8d81dbe4694c8772f037792"}},{"ruleId":"D2","level":"warning","message":{"text":"PushNotifier.decide (cognitive 19): PushNotifier.decide has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, loops 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PushNotifier.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fea423fdbf88b507b39f4256261ed5f760e8747440abf3a1b4f1a4370cae5e"}},{"ruleId":"D2","level":"warning","message":{"text":"FlatStoreDiscovery.readRecentFromCodeBuddyTranscript (cognitive 19): FlatStoreDiscovery.readRecentFromCodeBuddyTranscript has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0186d649a375292d4d21da4c1450a863c8ece7442218092d9a17709ebd22a3e7"}},{"ruleId":"D2","level":"warning","message":{"text":"FlatStoreDiscovery.codeBuddyLatestTerminalTurnTimestamp (cognitive 19): FlatStoreDiscovery.codeBuddyLatestTerminalTurnTimestamp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"775fbbb7889aae1a0f11664947266beb7e2baef9e9bf9a0d98543fa826e86cdd"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSnapshot.swift.deriveSessionSummary (cognitive 19): SessionSnapshot.swift.deriveSessionSummary has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d70dc077091dcd9c34a430a6177b3d33652df0890f0cc888259c9c467eb171e"}},{"ruleId":"D2","level":"warning","message":{"text":"BuddyMascotView.drawClaudeWork (cognitive 19): BuddyMascotView.drawClaudeWork has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a613f920dbb4020c6c8f7e337b75eac9130f78afb8254b3f432c24eae8ce501e"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.routeDiscoveredSubsessionIfNeeded (cognitive 18): AppState.routeDiscoveredSubsessionIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4711}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3005934a105e16d1aee70aaa7067dc37b32a834b091c209a68b593090a65b3d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.reconcileAiWorkLiveStatuses (cognitive 18): AppState.reconcileAiWorkLiveStatuses has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 4, boolean chains 2, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2081223c4ec9d8f3aac5c5ccab9264693e904842cb28f579975c916de04662dc"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexPermissionRules.configEnablesAutoReview (cognitive 18): CodexPermissionRules.configEnablesAutoReview has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b06f727459c987ea3f17e89da7dec201cbebc418646835abffc3193ba17aab3"}},{"ruleId":"D2","level":"warning","message":{"text":"ESP32BridgeManager.peripheral (cognitive 18): ESP32BridgeManager.peripheral has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ESP32BridgeManager.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa3d5de7d600e2192b7ca34a4afc0930a94aa76b5a0bbaeca4c05ddce071668"}},{"ruleId":"D2","level":"warning","message":{"text":"HookConnection.readAvailable (cognitive 18): HookConnection.readAvailable has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 1 (3 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HookSocket.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"661b6e03b8ad691113c6b4f62b0988aac4d820f0c23771411dd134bceb208449"}},{"ruleId":"D2","level":"warning","message":{"text":"HostHarnessSupport.lookupT3ThreadId (cognitive 18): HostHarnessSupport.lookupT3ThreadId has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HostHarnessSupport.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd07735dd7030925623f50714988b65002db3e38b18c7fdb9f9e3f7388eeef8d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClawdView.workCanvas (cognitive 18): ClawdView.workCanvas has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (7 pts), boolean chains 5, loops 3 (4 pts), if/else 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PixelCharacterView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"243a3c573b380b3f1a219c634f5c8c214b220b2d110e647cd445df3c024317d3"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotDiscovery.copilotSessionMatchesCwd (cognitive 18): CopilotDiscovery.copilotSessionMatchesCwd has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (8 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"050cf932d83f032708807266b0ee6d537f170864bfba098dc5fca2e6128d100a"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiDiscovery.findActiveGeminiSessions (cognitive 18): GeminiDiscovery.findActiveGeminiSessions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/GeminiDiscovery.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcae27c72ce91943db432aa85337bd53159d2fa3a435223e04f558f55b5c5a4"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskTool.resultEvents (cognitive 18): AgentTaskTool.resultEvents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AgentTaskParsing.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d224e409d7e2076fc3b0c5e75ca2cbaea42efedda98f49d347be1ed6ffe690"}},{"ruleId":"D2","level":"warning","message":{"text":"CoworkAuditState.apply (cognitive 18): CoworkAuditState.apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CoworkAuditLog.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6b5705223fed2c9c50dca90c02a26e53bff849de9839a45d3604b6a4c67a22"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelObservation.latestCodexTurnContext (cognitive 18): ModelObservation.latestCodexTurnContext has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, ternaries 2 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ModelLabel.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b259c953805f85f4f3124012bf2aa419447e4e2050b74dc57c4323e4ebdce1e5"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsWindow.RefreshAllLanguage (cognitive 17): SettingsWindow.RefreshAllLanguage has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5349105e6533c1aff27733e541c7efe07194fe75104c1aa67626c3d8f643d7a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.resolveMergedSubagentAfterUI (cognitive 17): AppState.resolveMergedSubagentAfterUI has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4211}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a01087e68741f838ca9a584a2f75c2ffaf5ea58994724ea9e35380b4bc83d3"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyCoworkAuditState (cognitive 17): AppState.applyCoworkAuditState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BCoworkWatch.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a3ea65ba7215bf7652795f921c3149867ec1708374ef1a57ec282e4db41a7a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.esp32DisplayContext (cognitive 17): AppState.esp32DisplayContext has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, ternaries 2 (3 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ESP32StatePublisher.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e3f5d56124bbfd63502f683f032fd7fe5bca77463b3e54c1f4f5b4a06ddedd"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.removeKimiHooks (cognitive 17): ConfigInstaller.removeKimiHooks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3030}}}],"partialFingerprints":{"codehealthFindingId/v1":"67dcc736b8920a98a28c632ac2c81c30b277c284953ed9a878b9abf38d94d93b"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONMinimalEditor.skipValue (cognitive 17): JSONMinimalEditor.skipValue has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (6 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6790c5234564fdc4e95de890b25291e1c89dccfe14e3e529141df47474138d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentProcessFinder.findCodexProcesses (cognitive 17): AgentProcessFinder.findCodexProcesses has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/AgentProcessFinder.swift"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9f7387bb992995c056db51c8ac10fd68f71daca525e1446e9a62c46f428028"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskList.applyCreated (cognitive 17): AgentTaskList.applyCreated has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AgentTaskList.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab091eb494d2797544326ded243f5f36676c2d71627dc1f3ec0d0d4439ba3f49"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskTool.callEvents (cognitive 17): AgentTaskTool.callEvents has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AgentTaskParsing.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32b28f0ee9c09bec94cf8ca8d7871d07bb9043660e32fb1cb165b704b8900ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Scanner.key (cognitive 17): Scanner.key has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexHooksConfig.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"615bb25322b0def5100c78d8a978ef2ca3190ab2ec4e4ee4ca5bdef72b113f53"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexThreadSubsession.link (cognitive 17): CodexThreadSubsession.link has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexThreadSubsession.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c38437f6085bd286c900d1200eaac7e71ac2f381805049fc48378712679a34c"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownPreviewText.previewSource (cognitive 17): MarkdownPreviewText.previewSource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownPreviewText.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f319ad46ea4901857454b6b595cf61c431d3f6edd26e45fcce2bb8186d6b30"}},{"ruleId":"D2","level":"warning","message":{"text":"PrivateFiles.write (cognitive 17): PrivateFiles.write has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 1 (2 pts), ternaries 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":"Sources/CodeIslandCore/PrivateFiles.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76fcaa40a6583f95f270c61218d8bfe8bddd39092efe94ce65a2d8c039a2ffe"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-remote-hook._codex_public_text (cognitive 17): codeisland-remote-hook._codex_public_text has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29a3dfeef894fb3ddbf47c6676719cb936736139cc3ac27bcda5da177077899"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeHookInstaller.Uninstall (cognitive 16): NativeHookInstaller.Uninstall has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Hooks/NativeHookInstaller.cs"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d90ab314fa4ca80dd4f5d64d0940e08e8ee72838f03e3f78c8f32c933de7b67"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.handleProcessExit (cognitive 16): AppState.handleProcessExit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"1688f848260218eb2ad2d6d4b77f23c963e5681d7057d5399a5f62a6f2c3bedf"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.applyAiWorkListEntry (cognitive 16): AppState.applyAiWorkListEntry has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc0584eabd0281a2681bb9babb7d32cd5afe219799fc4afeeb8387e4190f0cd"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.isInstalled (cognitive 16): ConfigInstaller.isInstalled has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c690539bd2c71bd614eac639d1cf4106c19275da13f213fa104a00b3a343c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.mergeHermesHooks (cognitive 16): ConfigInstaller.mergeHermesHooks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2500}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a84744da48f5c35a9410def528969896f3e8468767d135ba41e0c045055801"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigInstaller.contentsContainsKimiHook (cognitive 16): ConfigInstaller.contentsContainsKimiHook has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62e78522e1525247cd5f92241c9696717c0cff4db51951dcdc43f2381f33e71"}},{"ruleId":"D2","level":"warning","message":{"text":"CoworkSessionWatcher.forEachSession (cognitive 16): CoworkSessionWatcher.forEachSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CoworkSessionWatcher.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f603c5b799ed90d7d78428e8e87b7e08e5b5122ede4b5c9c071534bc4b9d3f"}},{"ruleId":"D2","level":"warning","message":{"text":"DiagnosticsRedaction.words (cognitive 16): DiagnosticsRedaction.words has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/DiagnosticsRedaction.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6337ac1ecbd2276146ae79a9dab2164e87b627e040be2c33d4ca9e219f68b9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowUpReminderController.perform (cognitive 16): FollowUpReminderController.perform has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/FollowUpReminderController.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"5531b94bbea51160a28d43dd89ee5a4b86a9830668ca427b338ef559ecdcfa59"}},{"ruleId":"D2","level":"warning","message":{"text":"IdleSessionRemovalPolicy.selection (cognitive 16): IdleSessionRemovalPolicy.selection has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 3 (6 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/IdleSessionRemoval.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb76340e9a5818fba31fdfa6c85ffd20035fc78e2f766018c7da064a1a1039f"}},{"ruleId":"D2","level":"warning","message":{"text":"L10n.effectiveLanguage (cognitive 16): L10n.effectiveLanguage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/L10n.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a163c7d6db8dfd527b9b6f6e36619d70d405e8c77341168d962b2716c55fcba"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionCard.compactActivity (cognitive 16): SessionCard.compactActivity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":4666}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0401c45949f8ee2782385967a693386f0f8dd29d05c7e76930beca53a61691"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniAgentIcon.body (cognitive 16): MiniAgentIcon.body has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6, if/else 2 (4 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":5660}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14f5db643a8d79b9c127619ff7c953064f67998eadc789bd2983a8a4d9d4e8d"}},{"ruleId":"D2","level":"warning","message":{"text":"PanelWindowController.showPanel (cognitive 16): PanelWindowController.showPanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PanelWindowController.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2e42ceb69a72905d2f819ccd297bd1f1f252c9f5c76d27f0413992d5a3556e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessTable.getProcessArgs (cognitive 16): ProcessTable.getProcessArgs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 5, loops 4 (5 pts) (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ProcessTable.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9161b1bf86e8a3c8bb0d9117c6e936d54a7a4d6a9edd940e13cb20540ba9ca18"}},{"ruleId":"D2","level":"warning","message":{"text":"PushNotifier.pump (cognitive 16): PushNotifier.pump has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PushNotifier.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"e908ce8442f37d9f12ba845b7a8508cd0b3600ebbe30003fab280d4cd0594111"}},{"ruleId":"D2","level":"warning","message":{"text":"BuddyPage.body (cognitive 16): BuddyPage.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, ternaries 2, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":2088}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a7517f9c3ab7016f5938145c54daaed323d4852618aaf61fef68dc098d4d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexDiscovery.inspectCodexSubagentMetadata (cognitive 16): CodexDiscovery.inspectCodexSubagentMetadata has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f97b08dfdc1674619961c129299a9282e346c64a28c0d16724fc7bdd064631"}},{"ruleId":"D2","level":"warning","message":{"text":"CursorDiscovery.findActiveCursorSessions (cognitive 16): CursorDiscovery.findActiveCursorSessions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CursorDiscovery.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae3316b3392bace39010a4c4df39cb13b8c07805a09ec467c51215b2108bbe5"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokDiscovery.grokSessionProcessMatchScore (cognitive 16): GrokDiscovery.grokSessionProcessMatchScore has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3 (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":"Sources/CodeIsland/Discovery/GrokDiscovery.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7876b1bceba50c0a239f9cfa0c37c20d181cbeb4e40b289b1bdeb190675ced2b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskTranscript.claudeUserEvents (cognitive 16): AgentTaskTranscript.claudeUserEvents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, ternaries 2 (3 pts), loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AgentTaskParsing.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"480733090b54f3da95c3c86c2a1effc67f646d20a97938a1f0f6ad8bf5febeb9"}},{"ruleId":"D2","level":"warning","message":{"text":"CoworkPaths.classify (cognitive 16): CoworkPaths.classify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CoworkSession.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca25c8d88b258ea2d7b4f1c0f7023e2d87edebaceb607614f6cfd264be01fa2"}},{"ruleId":"D2","level":"warning","message":{"text":"FollowUpReminderScheduler.collectDue (cognitive 16): FollowUpReminderScheduler.collectDue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/FollowUpReminderScheduler.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ebb8112d6ef6c3597bda3e8c41a84b195ad5ee3b129aa9ece2633a99e51de0"}},{"ruleId":"D2","level":"warning","message":{"text":"HookIntake.stdout (cognitive 16): HookIntake.stdout has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (6 pts), ternaries 1 (3 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9ad0be9fbb5ceea9c057e6128f201a20464db6d3ff5a38e4bf60195b7c117d"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownBlockParser.collectItemLines (cognitive 16): MarkdownBlockParser.collectItemLines has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownBlockParser.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d508b3edd76e9bd8fb3968b00a3c359d48c52df5b55040bf2e49ad1723a862"}},{"ruleId":"D2","level":"warning","message":{"text":"PushMessageFormatter.clean (cognitive 16): PushMessageFormatter.clean has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/PushNotification.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88a184e67a408d941fd64b350f8c2da8f115845df580c656956e6cb56b3ca0e"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.render (cognitive 16): MainActivity.render has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 13, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/MainActivity.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a35bafc60794b4ee044b2e1012fd2e8c93e70835d86803c8b17d4a315f396c"}},{"ruleId":"D2","level":"warning","message":{"text":"codeisland-remote-hook._get_tty (cognitive 16): codeisland-remote-hook._get_tty has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 1 (3 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46d0a6ff03e83e89587c766f8b9ffcb8663f6bd6cbee11b1ed2f4f7a0e28f3a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemoteInstaller.configureRemoteHooksScript: MethodTooLong \u2014 configureRemoteHooksScript runs 1120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1020 over it, 11.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":"Sources/CodeIsland/RemoteInstaller.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0a8e2a997ddf9d4cb00b405744a0353e06ff8eb49d723c186b8f80674f943d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppState: TooManyMethods \u2014 298 methods, declared across 16 files: CodeIsland/AppState.swift (143), CodeIsland/AppState\u002BAiWorkWatch.swift (29), CodeIsland/ESP32StatePublisher.swift (22), CodeIsland/AppState\u002BCodexAppServer.swift (19), \u002B12 more file(s). The bar is 30 methods; this is 268 over it, 9.93\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b93014080bd23dcb08e0c6e7cb912c07eb9df59ec1470c9ca447762bc195c94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/NotchPanelView.swift: FileTooLong \u2014 3736 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3236 over it, 7.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac46700ad842dc5464a2171087d855c79e9f9cfcb9d9763d1daef0f3b34c9be8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppState: ClassTooLong \u2014 2822 significant lines (blank, comment-only and punctuation-only lines excluded), 298 methods. The bar is 400 significant lines; this is 2422 over it, 7.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"486e1267961d86d5d88b890847e0c55c34df05b3af5c3f7f5b4f705dbb23dba9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConfigInstaller: ClassTooLong \u2014 2330 significant lines (blank, comment-only and punctuation-only lines excluded), 152 methods. The bar is 400 significant lines; this is 1930 over it, 5.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2691133bb02bc16a81696f7d4cef3ddff64b0ab87b3c34b7edead810b6dbfea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/AppState.swift: FileTooLong \u2014 2833 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: AppState (28-4818). The bar is 500 significant lines; this is 2333 over it, 5.67\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5190ea8fabfb65b5f399df31272915a49b48c5e73cc0f17514e8a8640cd0a3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/ConfigInstaller.swift: FileTooLong \u2014 2647 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: ConfigInstaller (172-3959). The bar is 500 significant lines; this is 2147 over it, 5.29\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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6b72ddb4ef1bc89924d9bd2a22e94e418290391f8d05c7f2f190632cb307df"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigInstaller: TooManyMethods \u2014 152 methods. The bar is 30 methods; this is 122 over it, 5.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b4af1e8f16525f77436b44e1d84aef432a2d68d41b90f2337b0633afe941b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/SettingsView.swift: FileTooLong \u2014 2295 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1795 over it, 4.59\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"810c09067d9b0f5569a7181147e513dcd7a7e5533e40b27a4c7ebb16eecc9560"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codeisland-omp.codeislandExtension: FunctionTooLong \u2014 codeislandExtension runs 412 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 312 over it, 4.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":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6237d0491b74b663c160b2f9270ad7f6e72cd755760925565c3d78f0119e75"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteInstaller: ClassTooLong \u2014 1492 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 1092 over it, 3.73\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":"Sources/CodeIsland/RemoteInstaller.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"795b16ee6bcf83dbbbf73642e9c6b6dc57ef8232c6f168057850bd56f93144fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionSnapshot.swift.applyHookEvent: FunctionTooLong \u2014 applyHookEvent runs 355 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 255 over it, 3.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c632608b166f142f7e0c3cd7e3a3dc3471d3b74ebe2ab3830e894dbe56086ed7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/RemoteInstaller.swift: FileTooLong \u2014 1520 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: RemoteInstaller (46-1837). The bar is 500 significant lines; this is 1020 over it, 3.04\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":"Sources/CodeIsland/RemoteInstaller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b167c367154a98d718643c9a55d10d71cb54175e0cbbf43fbd3876534f718666"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIslandCore/SessionSnapshot.swift: FileTooLong \u2014 1507 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1007 over it, 3.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"994a302761eede7fb1a369628a3174fff4ad3d710c70b4e2ab296bb7d249bb20"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BuddyMascotView: ClassTooLong \u2014 1184 significant lines (blank, comment-only and punctuation-only lines excluded), 80 methods. The bar is 400 significant lines; this is 784 over it, 2.96\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":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1624a54cdb457b767f5f360149e57de53440a18c0a3d5286676146bb87579c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BuddyMascotView: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\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":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea3a4fff484983f5181425050aedb5e59c4654e5cab1bfa969beb1236fff87b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: buddywatch/BuddyMascotView.kt: FileTooLong \u2014 1199 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: BuddyMascotView (18-1535). The bar is 500 significant lines; this is 699 over it, 2.40\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":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef323044f737667d01e60c2fc7ed1c0973282779277b28da4c0d49effda353e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIslandCompanion/ContentView.swift: FileTooLong \u2014 1137 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 637 over it, 2.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd507ecc7484ee125d9cedfad7c47a2d6c9ab4fbd67edaa65dc80c97e282c1b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codeisland-pi.codeislandExtension: FunctionTooLong \u2014 codeislandExtension runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-pi.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"921cd5cc593f9a6c92d17361f49c9637ed78310f614985baa8467a956285770a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HooksPage.body: MethodTooLong \u2014 body runs 205 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 105 over it, 2.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd45eb64425b4357f56a864e4ea288f2b4891f8d71406c18f5078ff721903ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/TerminalActivator.swift: FileTooLong \u2014 1022 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 522 over it, 2.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40df53063e6db65bda05b1459a712c770d6d9eb542989b00240eebd4e56d9923"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BuddyPage.body: MethodTooLong \u2014 body runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":2088}}}],"partialFingerprints":{"codehealthFindingId/v1":"11752d69c26b432201693b9572a1a0c227c658517da2a91cc54b2ded41d87725"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BehaviorPage.body: MethodTooLong \u2014 body runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c6016a15722618cb1f436af76250af749ade43bd146014d8ca86360e831509"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ESP32BridgeManager: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ESP32BridgeManager.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d26f2d3ebc831d2cf73114af9ab543402c930cea58547bbb4884661605a1cc5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodexDiscovery: ClassTooLong \u2014 642 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 242 over it, 1.61\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":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef8461fb02631c04df76f800281c898c98d78ddabf425b8d8b7735ca8d7cad5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HookIntake.init: MethodTooLong \u2014 init runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b196a897334d2870ed62aeb73e6baba2b857999e6d967d70047b5c2a7c63c185"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: SessionSnapshot.swift.handleSubagentEvent: FunctionTooLong \u2014 handleSubagentEvent runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2343}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f86478f21819ca418f0114aa90f4b37624df755b32d19ad143801905eb25a1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JSONLTailer: ClassTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 199 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c954f7177f4fd070867f752f689a53187fe3082f63fcdd2c69acff4def043604"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalActivator: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"055bdb0ebd1d8128456587a168ad4b43c59bc49ed410157810d3f1156e16cd6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/ESP32BridgeManager.swift: FileTooLong \u2014 712 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 212 over it, 1.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ESP32BridgeManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c04b9663938c5081775d070c89272801c54b6fbcf72b9ab559b3f15a91bde76"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.register: FunctionTooLong \u2014 register 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":"Sources/CodeIsland/Resources/codeisland-openclaw/index.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6abae3cc7e1f6e0b0aa274ed5567e43840d13321969772c41eca26bb1278325"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionSnapshot: ClassTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 153 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abc81494b7900d429a83ae7a9786373e9b2602f697d42cecb4161e3e4f2b4db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Resources/codeisland-omp.ts: FileTooLong \u2014 687 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: codeislandExtension (494-1134). The bar is 500 significant lines; this is 187 over it, 1.37\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2246300368947c63833b4df26e4b989cb46a02cb496c30f3c3ddcee510d9644"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BuddyPeripheralService: ClassTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 143 over it, 1.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyPeripheralService.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca83602843252d7a8d35b24394d1964c937793db51bd9429ed1779269b2b20b0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CompanionConnection.mockState: MethodTooLong \u2014 mockState runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\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":"ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c3257a4cfd71548cd4abfd199831f785c871e298b24c5333b1d989df752d62"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Discovery/CodexDiscovery.swift: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CodexDiscovery (54-980). The bar is 500 significant lines; this is 172 over it, 1.34\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":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40d01251eeda5f013ba71caf9767f4227f80eca6d582bda04ceb3092a3f80e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIslandCore/JSONLTailer.swift: FileTooLong \u2014 654 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: JSONLTailer (108-1115). The bar is 500 significant lines; this is 154 over it, 1.31\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":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"014e2a1bd78de661d84dcffb507123374a2144906bb0dad955ee8a039d035266"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodexPermissionRules: ClassTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), 39 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":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"407691a278af5d652940da773240529ba59f933e25911cd17c489295b14292a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CodexPermissionRules: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cea8abc53e48df28d77c3c4081d8235669fe826e8ae85c539881abb08e2f2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppState.integrateDiscovered: MethodTooLong \u2014 integrateDiscovered runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3568}}}],"partialFingerprints":{"codehealthFindingId/v1":"7731e7773912d43d9af0c19ccea3c2f63e95f536a6a8ea4438435578ba5dd118"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppearancePage.body: MethodTooLong \u2014 body runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37a2352901e9e527b270f51f5177a2ac5876b3f37a109f17a16ee94268735d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppState.handleEvent: MethodTooLong \u2014 handleEvent runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"268b0173edf7769823109554179467f552ff3e50ba4b1881e97fdaee1b93a5bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigInstaller.defaultEvents: MethodTooLong \u2014 defaultEvents runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fff6c56b6ce5533813c91b5d16f38bbf47988ca14a49199f0af9e4f22470f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.applicationDidFinishLaunching: MethodTooLong \u2014 applicationDidFinishLaunching runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppDelegate.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"620b01834829cf30f015db93fbf97912d22036f697b550a9fc7b1b35e2534de1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/AppState\u002BAiWorkWatch.swift: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 102 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c5bdf15bc7037166d359d3e5df32aec933a6bb1165c54a75da7f7d62a789f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: buddywatch/BuddyPeripheralService.kt: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: BuddyPeripheralService (65-827). The bar is 500 significant lines; this is 96 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyPeripheralService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9272f70a704a3462bc1ec12751ab6d6a7a1f6d343b1aa82fe2c07f59aa3113"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionSnapshot: TooManyMethods \u2014 35 methods, declared across 4 files: CodeIslandCore/SessionSnapshot.swift (27), CodeIslandCore/SessionRecap.swift (6), CodeIslandCore/HermesSessionStore.swift (1), CodeIslandCore/SessionHeadline.swift (1). The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c509281619cf1cfb6cc33c57670f7e22e4fe7bb67f7084aaa197be955b128b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigInstaller.installExternalHooks: MethodTooLong \u2014 installExternalHooks runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd398a48e20c567bfb761e55a7ec4e38bfaf127f1784dfa782abd0edfd4ad46c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JSONLTailer: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"247af13359a90739aa8daa3b5e7029f0c5315a80f7787a1b8d51637e48bf0786"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIslandCore/AiWorkWatchClient.swift: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6300ccee9a87b54ff8d1d59894d4cb6de547b7717a539cb6f3274b6563a51eed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIslandCore/Models.swift: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ce6e27676889f6b0c0cc1bc4765b3aee0be42ba076d011da23bdda6e6e41cd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DebugHarness: ClassTooLong \u2014 429 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 29 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/DebugHarness.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"436aed3145a634724d9d4c693c5a1b28b704e93240656f6bc93934ea4e825373"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PanelWindowController: ClassTooLong \u2014 428 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 28 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PanelWindowController.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfd9984cf9cbf11e66311dd7df4818954dc8fc13c806a1ba5975a09c195dabb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HookServer: ClassTooLong \u2014 427 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 27 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HookServer.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1583ed79be460048cce576161124eea147d1d8cf9eacf14a1aec45e1f681d131"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainWindow: TooManyMethods \u2014 220 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/MainWindow.xaml.cs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcd26ff75f14f82faa25595aa741909bb642be4ee9642735f1c92a84671c2c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainActivity: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/MainActivity.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff389f14919bc9415155d5c0134f69af82d742609add92d5f82c7c73db4be3b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentProcessFinder: ClassTooLong \u2014 426 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 26 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/AgentProcessFinder.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb301a05b4e4f6fcd2b6a8217122e5dfe41ceb22332ce0330075bd7a16c6871"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/CodexPermissionRules.swift: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: CodexPermissionRules (4-891). The bar is 500 significant lines; this is 25 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75d00ecc4db99185f37a31644c06f667c240c5612cf56f1228e4780518954ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppState.applyCursorSubsessionModeToKnownSessions: MethodTooLong \u2014 applyCursorSubsessionModeToKnownSessions runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4001}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a9b5518c2856dcd18b66700d6cce86a1790c98f54da37a51a3c03959d5eaf6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MarkdownBlockParser: ClassTooLong \u2014 414 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 14 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownBlockParser.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f6d7e39df742d1a161234eb6420a6bc274c5b61370fd6ebf883cac1c364431"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/PanelWindowController.swift: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: PanelWindowController (172-859). The bar is 500 significant lines; this is 16 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PanelWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d339ce8c61ab64fcfee39318f7a7e27180c02dd5f094e7ae599d30c9724e2504"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeIsland/MarkdownReplyView.swift: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/MarkdownReplyView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21ba16042bd8e801e548a11b23429606130b16fbf7cb6d35ce0ef81c6b8bfc9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppState.handleAskUserQuestion: MethodTooLong \u2014 handleAskUserQuestion runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2630}}}],"partialFingerprints":{"codehealthFindingId/v1":"55df9fc096f72f980c73a7c104e86680994585088dabfc8ea05178b7791db36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (12 members, 11 shared lines): Sources/CodeIsland/AiWorkView.swift:219-259 | Sources/CodeIsland/BuddyView.swift:193-228 | Sources/CodeIsland/ClineView.swift:173-208 | Sources/CodeIsland/CopilotView.swift:176-222 | Sources/CodeIsland/CursorView.swift:194-230 | Sources/CodeIsland/DroidView.swift:171-206 | Sources/CodeIsland/GeminiView.swift:163-201 | Sources/CodeIsland/KimiView.swift:154-190 | Sources/CodeIsland/OpenCodeView.swift:187-222 | Sources/CodeIsland/QoderView.swift:168-203 | Sources/CodeIsland/QwenView.swift:174-211 | Sources/CodeIsland/TraeView.swift:164-200 \u2014 These 12 members are variants of one another: a block of 11 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ffc73de33274b626aa039f1921be6f5afdcabdc92426dd238f0c652ee071bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 13 shared lines): Sources/CodeIsland/ClineView.swift:173-208 | Sources/CodeIsland/CopilotView.swift:176-222 | Sources/CodeIsland/DexView.swift:192-239 | Sources/CodeIsland/GeminiView.swift:163-201 | Sources/CodeIsland/KimiView.swift:154-190 | Sources/CodeIsland/QwenView.swift:174-211 | Sources/CodeIsland/TraeView.swift:164-200 \u2014 These 7 members are variants of one another: a block of 13 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfe7347bd808a75d08fc1ca22b61a2ec4e6f2673095fb031419a4fcc768ce61"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 17 shared lines): Sources/CodeIsland/AntiGravityView.swift:150-175 | Sources/CodeIsland/HermesView.swift:158-183 | Sources/CodeIsland/StepFunView.swift:152-178 | Sources/CodeIsland/WorkBuddyView.swift:142-167 \u2014 These 4 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5f99cd9ca4cc58560c3a7b8b7749cd7acd844f66cac15327fd4cb51a6dd981"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 11 shared lines): Sources/CodeIsland/AntiGravityView.swift:150-175 | Sources/CodeIsland/HermesView.swift:158-183 | Sources/CodeIsland/PiView.swift:154-178 | Sources/CodeIsland/WorkBuddyView.swift:142-167 \u2014 These 4 members are variants of one another: a block of 11 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e46bd4c86ca779f432c63c685a559573fcab358c0cfe4c2ade1d7e7c5899c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/CodeIsland/ClineView.swift:57-87 | Sources/CodeIsland/KimiView.swift:57-77 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5a980ba81917f4f418a15dd96cc112858bdcb6853a35bc26a0b09226d22046"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (24 members, 50\u002B identical tokens): Sources/CodeIsland/AiWorkView.swift:64-69 | Sources/CodeIsland/AntiGravityView.swift:34-39 | Sources/CodeIsland/BuddyView.swift:34-39 | Sources/CodeIsland/ClineView.swift:34-39 | Sources/CodeIsland/CopilotView.swift:37-42 | Sources/CodeIsland/CursorView.swift:35-40 | Sources/CodeIsland/DeepSeekView.swift:36-41 | Sources/CodeIsland/DexView.swift:35-40 | Sources/CodeIsland/DroidView.swift:34-39 | Sources/CodeIsland/GeminiView.swift:34-39 | Sources/CodeIsland/HermesView.swift:33-38 | Sources/CodeIsland/KimiView.swift:33-38 | Sources/CodeIsland/KiroView.swift:36-41 | Sources/CodeIsland/MiMoView.swift:34-39 | Sources/CodeIsland/MinimaxView.swift:39-44 | Sources/CodeIsland/OpenClawView.swift:38-43 | Sources/CodeIsland/OpenCodeView.swift:34-39 | Sources/CodeIsland/PiView.swift:38-43 | Sources/CodeIsland/PixelCharacterView.swift:44-49 | Sources/CodeIsland/QoderView.swift:33-38 | Sources/CodeIsland/QwenView.swift:34-39 | Sources/CodeIsland/StepFunView.swift:33-38 | Sources/CodeIsland/TraeView.swift:35-40 | Sources/CodeIsland/WorkBuddyView.swift:33-38 \u2014 These 24 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 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4a33feb51017951500fb0583361f5b9f7c4600b5dc2eb839138ce6fbcde658"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (20 members, 50\u002B identical tokens): Sources/CodeIsland/AiWorkView.swift:75-85 | Sources/CodeIsland/AntiGravityView.swift:45-55 | Sources/CodeIsland/BuddyView.swift:45-55 | Sources/CodeIsland/ClineView.swift:45-55 | Sources/CodeIsland/CopilotView.swift:48-58 | Sources/CodeIsland/CursorView.swift:49-59 | Sources/CodeIsland/DexView.swift:47-57 | Sources/CodeIsland/DroidView.swift:45-55 | Sources/CodeIsland/GeminiView.swift:45-55 | Sources/CodeIsland/HermesView.swift:44-54 | Sources/CodeIsland/KimiView.swift:44-54 | Sources/CodeIsland/MiMoView.swift:48-58 | Sources/CodeIsland/OpenCodeView.swift:45-55 | Sources/CodeIsland/PiView.swift:50-60 | Sources/CodeIsland/PixelCharacterView.swift:287-297 | Sources/CodeIsland/QoderView.swift:44-54 | Sources/CodeIsland/QwenView.swift:45-55 | Sources/CodeIsland/StepFunView.swift:44-54 | Sources/CodeIsland/TraeView.swift:46-56 | Sources/CodeIsland/WorkBuddyView.swift:44-54 \u2014 These 20 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 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afd5d2369730e7bbef3c9d2293029f4aded2acd6e56a136058d88a691f56127"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): Sources/CodeIsland/AiWorkView.swift:177-192 | Sources/CodeIsland/AntiGravityView.swift:93-122 | Sources/CodeIsland/BuddyView.swift:154-169 | Sources/CodeIsland/ClineView.swift:130-148 | Sources/CodeIsland/CopilotView.swift:133-151 | Sources/CodeIsland/CursorView.swift:156-171 | Sources/CodeIsland/DexView.swift:139-157 | Sources/CodeIsland/DroidView.swift:128-143 | Sources/CodeIsland/GeminiView.swift:118-136 | Sources/CodeIsland/HermesView.swift:101-130 | Sources/CodeIsland/KimiView.swift:111-129 | Sources/CodeIsland/MiMoView.swift:168-183 | Sources/CodeIsland/OpenCodeView.swift:149-164 | Sources/CodeIsland/PiView.swift:99-129 | Sources/CodeIsland/QoderView.swift:129-144 | Sources/CodeIsland/QwenView.swift:129-147 | Sources/CodeIsland/StepFunView.swift:89-122 | Sources/CodeIsland/TraeView.swift:121-139 | Sources/CodeIsland/WorkBuddyView.swift:85-114 \u2014 These 19 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"624a6cde8724f219d6bb03e2baded894374de0985a508426c0525e0a372cbfe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): Sources/CodeIsland/AiWorkView.swift:272-324 | Sources/CodeIsland/BuddyView.swift:241-294 | Sources/CodeIsland/ClineView.swift:221-269 | Sources/CodeIsland/CopilotView.swift:237-295 | Sources/CodeIsland/CursorView.swift:243-295 | Sources/CodeIsland/DexView.swift:254-314 | Sources/CodeIsland/DroidView.swift:219-272 | Sources/CodeIsland/GeminiView.swift:214-264 | Sources/CodeIsland/KimiView.swift:203-252 | Sources/CodeIsland/MiMoView.swift:234-276 | Sources/CodeIsland/OpenCodeView.swift:235-283 | Sources/CodeIsland/PixelCharacterView.swift:299-391 | Sources/CodeIsland/QoderView.swift:216-264 | Sources/CodeIsland/QwenView.swift:224-273 | Sources/CodeIsland/TraeView.swift:213-262 \u2014 These 15 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 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"c523935d141c2f61812c9b9e4a9d60ebb59813e1d88f31d5fbe759f6d0b583ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:125-175 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:258-307 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:350-386 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:424-461 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:502-537 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:574-609 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:643-672 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:705-737 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:771-798 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:832-860 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"7affd5651aba096251a046847354eab3d5f54e6f8d8c60ef016e15c1a2610db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Sources/CodeIsland/CopilotView.swift:133-151 | Sources/CodeIsland/DexView.swift:139-157 | Sources/CodeIsland/GeminiView.swift:118-136 | Sources/CodeIsland/KimiView.swift:111-129 | Sources/CodeIsland/KiroView.swift:75-101 | Sources/CodeIsland/OpenClawView.swift:104-118 | Sources/CodeIsland/QwenView.swift:129-147 | Sources/CodeIsland/StepFunView.swift:89-122 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CopilotView.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ce22191c43df59d6176d1df42fe710c184c4c9c4f20cf942ed0933f57e7bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/CodeIsland/Discovery/ClaudeDiscovery.swift:274-359 | Sources/CodeIsland/Discovery/ClineDiscovery.swift:67-101 | Sources/CodeIsland/Discovery/CodexDiscovery.swift:909-979 | Sources/CodeIsland/Discovery/CopilotDiscovery.swift:113-165 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:92-132 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:132-178 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/ClaudeDiscovery.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"65777e79beb4f65cbc17cc0a7100e92e36558b7fbb5cc3e91da8fa8338dbce84"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/CodeIsland/AntiGravityView.swift:124-148 | Sources/CodeIsland/HermesView.swift:132-156 | Sources/CodeIsland/PiView.swift:131-152 | Sources/CodeIsland/StepFunView.swift:124-150 | Sources/CodeIsland/WorkBuddyView.swift:116-140 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37be5b967bcf90cf5956666f9750dbebb849e994d940a63a26bf9c938f8f634"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/CodeIsland/ClineView.swift:150-164 | Sources/CodeIsland/GeminiView.swift:138-154 | Sources/CodeIsland/KimiView.swift:131-145 | Sources/CodeIsland/QwenView.swift:149-165 | Sources/CodeIsland/TraeView.swift:141-155 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7f3df51ddccb82ec2c095b7d5578773f5ab80a4762e249ce730ba8983d1fed"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/CodeIsland/ConfigInstaller.swift:3453-3461 | Sources/CodeIsland/ConfigInstaller.swift:3474-3480 | Sources/CodeIsland/ConfigInstaller.swift:3520-3526 | Sources/CodeIsland/RemoteInstaller.swift:381-391 | Sources/CodeIsland/RemoteInstaller.swift:393-403 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3453}}}],"partialFingerprints":{"codehealthFindingId/v1":"3783dc2f8f80eb95a666e1d80c4ae6919a02bd39a88907a9ddf1b194c3108f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/CodeIsland/Discovery/CopilotDiscovery.swift:18-57 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:33-72 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:57-97 | Sources/CodeIsland/Discovery/KimiDiscovery.swift:14-93 | Sources/CodeIsland/Discovery/OpenCodeDiscovery.swift:66-104 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8187843643a8f9f076543ac5bb97f6db69c021b565f9b95f0412e4c5cd57642"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:539-551 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:611-622 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:674-685 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:739-750 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:800-811 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"280a0f1a0815f86104dc3e560131e02138d79e980063615bdea438bb475f5715"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/CodeIsland/AppState\u002BClaudeTerminalMetadata.swift:48-62 | Sources/CodeIsland/Discovery/SessionDiscovery\u002BConfigRoots.swift:41-49 | Sources/CodeIsland/HostHarnessSupport.swift:75-82 | Sources/CodeIsland/ProcessTable.swift:55-86 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BClaudeTerminalMetadata.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"04152acec0e60a1f8de71aade643ff8e4a83e44bbf641669fca78277e029ba19"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/CodeIsland/BuddyView.swift:58-120 | Sources/CodeIsland/DexView.swift:61-97 | Sources/CodeIsland/OpenCodeView.swift:58-105 | Sources/CodeIsland/QoderView.swift:57-87 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6452238a9724ec6a4fb972573c1c55d5370841db21fea32520e1e6aa001b2520"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/CodeIsland/BuddyView.swift:171-184 | Sources/CodeIsland/CursorView.swift:173-185 | Sources/CodeIsland/OpenCodeView.swift:166-178 | Sources/CodeIsland/QoderView.swift:146-159 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a451bb11f9ef21251aeda4e5d43a3fcb8e9010bbe72ef783f4d7df92147202"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/CodeIsland/CopilotView.swift:61-82 | Sources/CodeIsland/OpenClawView.swift:51-80 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CopilotView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff83a45ec80ef747e90263ccc1c6d2033f19a3e7cf561f8356dc23a9c4d92153"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:194-238 | ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:479-515 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bcf20a1d66aa6a039adf66189a9ba9ce5d342b47854dc97980a618bf755f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:1637-1665 | Sources/CodeIslandCore/Models.swift:565-624 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"3431d496acdcaca8323bd4145919b9f27d6f197b6d90d034b6756b3bc6555ed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:2819-2854 | Sources/CodeIsland/NotchPanelView.swift:2869-2914 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":2819}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b6a25df3e73fc24d346f360d9cefeead18bc8030c568d8ede55ed2f7c2f4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/CodeIslandCore/HostHarness.swift:313-352 | Sources/CodeIslandCore/HostHarness.swift:361-405 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HostHarness.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb80d31b1670183cbb38547cf121a4f96d15132142ff05aa5441b6b0f0077f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/CodeIsland/TerminalActivator.swift:1150-1213 | Sources/CodeIsland/TerminalVisibilityDetector.swift:449-481 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"febc20fe422b99eda84f5f1cca3fadf5dabce4334a33ff3fccee662133cbd0c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/CodeIsland/HermesView.swift:76-89 | Sources/CodeIsland/TraeView.swift:77-96 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HermesView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"85602ead1fcac1b106f6c572812f7a969d61c48dd0ff54619168266a21921ff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/CodeIslandCore/AppleCompanionPayload.swift:175-189 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:244-260 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32e9f74ad3acac60ebc0f9dd1094e70a89a83e9ca6471a404f5b9854329011f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 17\u002B corresponding lines): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:323-348 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:401-422 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:478-500 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:553-572 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:624-641 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:687-703 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:752-769 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:813-830 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79763006ab852fece83f50246f1d687c85ce235cc669e561ffaefc030c30501"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:73-95 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:97-123 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef0462e411f316deef6109c90d899bf64597bd0a6a6c45a7f8cd54899779725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:5829-5867 | ios/CodeIslandCompanion/Shared/CompanionDisplayText.swift:171-201 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":5829}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cfc9fa7ac10ef3ef8a4ec4bc3f357e1f7daad55189cc6474623b645e2d40f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Sources/CodeIsland/CopilotView.swift:85-97 | Sources/CodeIsland/MinimaxView.swift:52-62 | Sources/CodeIsland/PiView.swift:90-97 | Sources/CodeIsland/QoderView.swift:90-105 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CopilotView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"af200a0d9a1f4c6e780ce6359f35978342842e64912c4e9c4f8f114e79f40ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/CodeIsland/JSONMinimalEditor.swift:158-177 | Sources/CodeIsland/JSONMinimalEditor.swift:271-292 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/JSONMinimalEditor.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d8d02400183e5e82a87b554ea46b1b1adfbe71f1b8c26a3e5ff7f142939b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Sources/CodeIsland/KiroView.swift:122-147 | Sources/CodeIsland/MinimaxView.swift:151-185 | Sources/CodeIsland/OpenClawView.swift:139-166 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/KiroView.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9600ebe75f22719b6f373cbf8f0c1345b583a3f97b88808386e90ef04116a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/CodeIsland/Discovery/GeminiDiscovery.swift:102-125 | Sources/CodeIsland/Discovery/SessionDiscovery.swift:221-244 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/GeminiDiscovery.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"be860dfce0327792e19cb14e752d311c38e973d71af57e16a563b022c38353db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): windows/CodeIsland.Windows/DockShoulderGeometry.cs:28-44 | windows/CodeIsland.Windows/DockShoulderGeometry.cs:47-63 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/DockShoulderGeometry.cs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c5e2e6421274846f41aae7ddd463fd57738d2b3cb8796de5533637a17e6e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/CodeIsland/NotchAnimation.swift:89-123 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1326-1354 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Sources/CodeIsland/NotchAnimation.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"61663538981f976047250154ff7151e87294e7913e8aa3592bbee8b822c69a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/CodeIslandCore/AppleCompanionPayload.swift:105-115 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:174-184 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f906ebff91fe462b0c89972abeea53f53aebbf246dd3fc5997e86e33353c3410"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/CodeIslandCore/AiWorkWatchClient.swift:334-357 | Sources/CodeIslandCore/CodexAppServerClient.swift:334-357 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b18f3385dce13607a1a9a08a36b58e5031eec9507860172c6e5984ed719595b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/CodeIsland/AiWorkView.swift:194-210 | Sources/CodeIsland/MiMoView.swift:152-166 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04510b00311cd5140b79d488bb497282bbcb5e41f46a4c9188ff74903bd74b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/CodeIsland/ConfigInstaller.swift:2430-2451 | Sources/CodeIsland/ConfigInstaller.swift:2581-2603 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6958f989240f57085be88325309a4707ad802c8541f3d38cb8444295e96f5e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/CodeIsland/MinimaxView.swift:126-148 | Sources/CodeIsland/OpenClawView.swift:121-136 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/MinimaxView.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"babc9eff2945c94ef16c6431d15aae9d04b6817a080c177244df8dcb230187d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/StepFunView.swift:57-69 | Sources/CodeIsland/WorkBuddyView.swift:57-66 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/StepFunView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbdc3b8c1b1626ef147469523ec5592f47a3531b15e97dd2f3952324a7886ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:174-188 | ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:431-443 \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":"ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9714e6da20b825604c3f6349e4d51cfdab046a6ce125168c82c310fd31be2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:933-943 | ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:615-624 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"064b79fb46fcfea1acc87cbc107b60e42dc0b744d857d75e2f7d67ff132a947e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:1058-1068 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:1149-1159 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"0baad92c5cc446e883c7027dc37995ac062b9476ce3e1bd01a9240d3efd397ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): Sources/CodeIsland/ClineView.swift:89-95 | Sources/CodeIsland/GeminiView.swift:85-91 | Sources/CodeIsland/KimiView.swift:80-86 | Sources/CodeIsland/QwenView.swift:98-104 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6714af13264b536e9b3145a0e342ad71a2df0bcbeae35d25731be40838adc727"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:2241-2249 | Sources/CodeIsland/NotchPanelView.swift:2603-2614 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f48fe85260b5f01943da8b7023f6f7a944c7c4e65e6888e6540223ffe95fc53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/CodeIsland/AppState.swift:2235-2262 | Sources/CodeIsland/AppState.swift:2519-2546 \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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de40bbcf639447a5bcaf9e684cb075c82b8664d88f471fc446c6c2205962e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/CodeIslandCore/AppleCompanionPayload.swift:132-158 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:201-227 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b58dfe3cc1f2b4569268987f5c21ca294c0416cbe0cbb1e47d4738c00300a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 6\u002B corresponding lines): Sources/CodeIsland/AntiGravityView.swift:76-81 | Sources/CodeIsland/BuddyView.swift:123-129 | Sources/CodeIsland/CursorView.swift:126-132 | Sources/CodeIsland/DroidView.swift:97-103 | Sources/CodeIsland/StepFunView.swift:71-77 | Sources/CodeIsland/WorkBuddyView.swift:68-73 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d70de3fb371d70464a3b8d44ea80b91e9100ceb647e8a411b1af2e7ff3930bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIsland/CodexPermissionRules.swift:378-391 | Sources/CodeIsland/NotchPanelView.swift:1627-1635 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e9d3d4a19642698dca8f1348e975bed2d907105a66ce02a7b705015c10d0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/CodeIslandCore/PushChannel.swift:420-426 | Sources/CodeIslandCore/PushChannel.swift:432-438 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/PushChannel.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8530d03ea7c5f69d9e94ddb9d4852d945255361618ca95557903406ceb52656"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/CodeIsland/ConfigInstaller.swift:3482-3494 | Sources/CodeIsland/ConfigInstaller.swift:3528-3540 \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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3482}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb0d5bb8f327b7489585bfc20fe52d13af26b909eb8edee6b4d7327b281dd34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:309-321 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:388-399 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:463-476 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa47941da6d498b5297d70c5f1922ae0c437bde2d9f78ecbd1869a69e495675"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 5\u002B corresponding lines): Sources/CodeIsland/ClineView.swift:102-106 | Sources/CodeIsland/HermesView.swift:95-99 | Sources/CodeIsland/KimiView.swift:93-97 | Sources/CodeIsland/QwenView.swift:111-115 | Sources/CodeIsland/StepFunView.swift:83-87 | Sources/CodeIsland/TraeView.swift:103-107 | Sources/CodeIsland/WorkBuddyView.swift:79-83 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 5 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9688d831943dc712bb4f661c0317240121008eea9353c5d32497a4625864d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:92-114 | Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:117-134 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"67daa752b3be525b7318cf6fe7c6e4075a770a70d956085a1031891c14ce256f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/CodeIsland/RemoteInstaller.swift:1705-1721 | Sources/CodeIsland/SSHForwarder.swift:160-176 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/RemoteInstaller.swift"},"region":{"startLine":1705}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3f1f1a4dfa79bb46743e602715586be59e8b78be96ce3eea61a23f7024c244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/CodeIsland/AppState\u002BSessionMetadata.swift:187-194 | Sources/CodeIslandCore/JSONLTailer.swift:479-490 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BSessionMetadata.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bee588f54f2719d4ce23bde78a6dfb813078a4cc54801cb7e8da43fc7b985fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1469-1482 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1505-1515 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc07ac49a97bcadce99b145e7aa9ff6e82f5d8381b5b3fdcaf22fc89ddfbdd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/CodeIsland/Discovery/SessionDiscoveryCoordinator.swift:119-146 | Sources/CodeIsland/Discovery/SessionDiscoveryCoordinator.swift:185-202 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/SessionDiscoveryCoordinator.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b78a9283a720e9f63fd97eb5e133e39803344aa21ff3633388c05acaed9221"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/CodeIslandCore/AiWorkWatchClient.swift:195-215 | Sources/CodeIslandCore/CodexAppServerClient.swift:236-252 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3329d96453e0a80ca4f2cca64299a9c8a19cc5a8a9baf6c3656d06309c1a30a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/AppState\u002BPushNotifications.swift:67-76 | Sources/CodeIsland/AppState\u002BPushNotifications.swift:79-88 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BPushNotifications.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"813b728ef7e71ba48db3fe733c9e8844275f20c9597b47ad3d81560f1be5ac6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/CodeIslandCore/PushNotification.swift:470-484 | Sources/CodeIslandCore/PushNotification.swift:488-501 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/PushNotification.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae79a951fa933a0f09b77f0399125efcbb4d08a5228711b6ced95c35bd158bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/CodeIsland/PiView.swift:66-70 | Sources/CodeIsland/PiView.swift:72-76 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PiView.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7943dd75bbff7982f7aeaec28212af6972452c5b57f2520a9ff2cfe8cf727ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIslandCore/CoworkAuditLog.swift:186-194 | Sources/CodeIslandCore/JSONLTailer.swift:710-718 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CoworkAuditLog.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cba499ee8b3809482c94cef2192155151252001164e7f5e338271200bcca421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/CodeIsland/ConfigInstaller.swift:3238-3248 | Sources/CodeIsland/ConfigInstaller.swift:3250-3261 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3238}}}],"partialFingerprints":{"codehealthFindingId/v1":"284e718a6fb8209c3a10563cc02098c689f95041712542f63fd9a6d51bc68d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): ios/CodeIslandCompanion/CodeIslandCompanion/CompanionBluetoothCentral.swift:217-231 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionBluetoothCentral.swift:233-252 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/CompanionBluetoothCentral.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b5f24eff6234e7ae92d3d9ea50bd20f67efb5ac5b359617de0c132abbb0d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:5258-5269 | Sources/CodeIsland/NotchPanelView.swift:5274-5286 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":5258}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7cdb1f159644f60c464f4d6b0ea4e9b4a07e0c2bf01343a86d1901165b0a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/CodeIsland/ConfigInstaller.swift:2453-2461 | Sources/CodeIsland/ConfigInstaller.swift:2605-2613 | Sources/CodeIsland/ConfigInstaller.swift:2768-2776 \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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2453}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac607afcf23e665723a04e8834842718553b75571ec676abf5888e51a2ec44a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/Discovery/CopilotDiscovery.swift:7-16 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:22-31 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"815eaab78dd335d06d74306c9efb643b7aee613c04b8159ec1c6ced3364cdf98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/CodeIslandCore/AppleCompanionPayload.swift:81-99 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:150-168 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d2047cbdda7d1e9c6332c2d7f54826bd3eaac5d1737e8bfa751787ff0e4b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/CodeIsland/ConfigInstaller.swift:205-212 | Sources/CodeIsland/ConfigInstaller.swift:264-271 | Sources/CodeIsland/ConfigInstaller.swift:284-294 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22b377818da916adee68ebdf89ba497d5f1c828a0238eb8ec1f824f73a4cfb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:876-885 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:960-967 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"783d3611847f6dca5266b097cee27e6cbee380c4b203a4ec9ef402571d6ac51c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:99-108 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:110-119 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:121-130 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4e80aa9f2a914c044121bfcbab234e61b3dda1f364f4b219e209f5b7a2c733"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:4806-4812 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1233-1239 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":4806}}}],"partialFingerprints":{"codehealthFindingId/v1":"2defc68f2efea8a0427ac3c77a4d727639ba2f68838980ce03a3b27a61646a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:1717-1725 | Sources/CodeIsland/NotchPanelView.swift:1729-1737 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa497d0d238a45ec3e1d01e459137a8c23b76412aad78aad56aac473c00f952"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/TerminalActivator.swift:1420-1431 | Sources/CodeIsland/TerminalActivator.swift:1438-1447 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c6ebdc3b43651e84c277f86d9a6013945595c2bba1452b136cb7107823db28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/CodeIslandCore/Models.swift:213-227 | Sources/CodeIslandCore/Models.swift:238-252 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac586b69908d6ab3b4d5c5b757e5b93302cb9fe37f23441c176ff53008ee8de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIslandCore/ESP32Protocol.swift:376-387 | Sources/CodeIslandCore/ESP32Protocol.swift:530-539 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ESP32Protocol.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7228e5d4939a743acbbddb99af31f9b47a07537834e0597439d91172c3eaa8ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1447-1459 | ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:550-562 \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":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"c919f5d8ea84325a432c028476b76750857d9d3fe19efed4387ca70a76db2225"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 4\u002B corresponding lines): Sources/CodeIsland/BuddyView.swift:136-140 | Sources/CodeIsland/CopilotView.swift:108-111 | Sources/CodeIsland/CursorView.swift:139-142 | Sources/CodeIsland/DexView.swift:120-123 | Sources/CodeIsland/DroidView.swift:110-114 | Sources/CodeIsland/OpenCodeView.swift:132-135 | Sources/CodeIsland/QoderView.swift:112-115 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 4 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"769dd1554afa89d883bc7ba7c1ec26fea75dadca5d51673a999b838eea563d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1376-1386 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1447-1459 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f9a5a94bcb4d5decd9e31b0824d0640d1d6907f3fd923cbc36242ab3064ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/CodeIsland/RemoteInstaller.swift:405-417 | Sources/CodeIsland/RemoteInstaller.swift:419-432 \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":"Sources/CodeIsland/RemoteInstaller.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"f403b1b6c51b2664c54bb829bac4b2e13df85937a0bc634aa1187e9cc1c5e035"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/CodeIslandCore/PushChannel.swift:563-570 | Sources/CodeIslandCore/PushChannel.swift:575-582 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/PushChannel.swift"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b83492628862e2b7d5104898d2e75fe2322eb190f64bbdfd408d7fa14b90dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:205-213 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:499-507 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb921053e591605864e7c84c1b29d1788f98a561ee7d67de7cadc8617714fff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/CodeIsland/ConfigInstaller.swift:2463-2470 | Sources/CodeIsland/ConfigInstaller.swift:2615-2622 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"2612d401244f30518eabaea42484aad1d5e6ab8e6e75d0c1502ced7782666ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/CodeIsland/ConfigInstaller.swift:3508-3518 | Sources/CodeIsland/ConfigInstaller.swift:3549-3561 | Sources/CodeIsland/ConfigInstaller.swift:3681-3689 \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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3508}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2a7bd7a0403b040ccaafebe635cb12f928dda498b167b65db2ae2569acc42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/CodeIsland/NotchAnimation.swift:74-87 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1313-1320 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchAnimation.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"688dba27b3240979f1dff8ce52e13f655b8b759d4a202c07bcfdde84a5029759"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:1975-1984 | Sources/CodeIsland/NotchPanelView.swift:4829-4841 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd373809c6159fbc602961aad24fbb6a7fc012388e403cc5015b14fe9a21e777"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/CodeIsland/PanelWindowController.swift:50-65 | Sources/CodeIsland/PanelWindowController.swift:76-90 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/PanelWindowController.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"365d79a6253eab7aa6ef4ed41ef0142551256b7033d06fe78c1a81df9015bf8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/CodeIsland/SessionListOrdering.swift:321-327 | Sources/CodeIsland/SessionListOrdering.swift:338-344 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SessionListOrdering.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"48743325a38e3c7d445dbc27f1c81a63c88d7906a3ce41838d8ee646fe2ec44e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:1355-1361 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:1373-1379 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:1390-1396 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"5691f6dd9b11676e58bcbc1a86bd5da4b997139dfe5eba4e931cde3a63ed2a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/CodeIslandCore/MarkdownInlineLiterals.swift:117-130 | Sources/CodeIslandCore/MarkdownInlineLiterals.swift:132-145 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/MarkdownInlineLiterals.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a0e9e4fdd037e2126e353acd56dd3aaa2bdb7933ffdef92686ac5e3d846f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/CodeIslandCore/Models.swift:783-795 | Sources/CodeIslandCore/Models.swift:797-809 \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":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbf0442383977ff1c97e0b8caeab5c1214d481504e1ae51e96b02d342891173"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/CodeIsland/TerminalVisibilityDetector.swift:312-329 | Sources/CodeIsland/TerminalVisibilityDetector.swift:359-374 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalVisibilityDetector.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a3394776041fe34c9a057e2c1e1613bf3e7a5c0b06110e68806eb23892b869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/CodeIsland/Discovery/CodexDiscovery.swift:861-868 | Sources/CodeIslandCore/PushTransport.swift:98-103 \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":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"830a4d367822acc5997e1474a32356b7daeff66f5324c4f39676c950b0a12795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:930-935 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:991-996 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:1087-1092 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c77383acbee600d8d27f5a68bd657411909651a932a96d9db3839e40824aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIsland/AppState\u002BPushNotifications.swift:22-30 | Sources/CodeIsland/AppState\u002BPushNotifications.swift:34-42 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BPushNotifications.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ab3df2853ba1bf16224c88b96ddd8d0900d3829268adc0c82398994eb33c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/CodeIslandCore/FollowUpReminderScheduler.swift:272-283 | Sources/CodeIslandCore/FollowUpReminderScheduler.swift:292-298 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/FollowUpReminderScheduler.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"2520f64d34bc6362e3ec49ef4da4a34ffbef7335632bc15fccf608f8ba347194"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/CodeIsland/HostHarnessSupport.swift:68-73 | Sources/CodeIsland/ProcessTable.swift:26-31 | Sources/CodeIslandBridge/main.swift:80-85 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"Sources/CodeIsland/HostHarnessSupport.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"082436583dc84781dcf4df314aa3a779387d05c93ea7e2be303c611c5f3eba83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIslandCore/ESP32Protocol.swift:560-568 | Sources/CodeIslandCore/ESP32Protocol.swift:580-588 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ESP32Protocol.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3e688c6a0888b2f5c224200e3f72680b20300df09f02ea601df32daafe4078"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/CodeIsland/AiWorkView.swift:149-153 | Sources/CodeIsland/MiMoView.swift:136-138 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b92ad2065d8d8f8b8d212b067af02edb9c49efe32602a6eff1f297fb2839ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIslandCore/SessionSnapshot.swift:2014-2026 | Sources/CodeIslandCore/SessionSnapshot.swift:2036-2045 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8ebe34fefe936476439a925785be1fd00e9a06ad7f58a968ae7abc652a4006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/AppState.swift:4595-4604 | Sources/CodeIsland/AppState.swift:4690-4700 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4595}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08d90569d0fa560b2c4fac0c7c98bb92e85ca76ada03cee4bc9be2ac728d3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIsland/SoundManager.swift:193-201 | Sources/CodeIsland/SoundManager.swift:204-213 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SoundManager.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"76678c5caad0d53e45d5996fc072ac6548c4cfc457a27f8cfd070bf3abe0f1b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/CodeIslandCore/ModelLabel.swift:186-193 | Sources/CodeIslandCore/ModelLabel.swift:204-210 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ModelLabel.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a375a8186a77ca0c5ec78ec70f6e57d4e40d6eceb8fdf83289a500079ae94beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/CodeIslandCore/AppleCompanionPayload.swift:221-227 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:279-285 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"840fb7378ff46a52154db4df26b27ccc4bd7412ed718072eb4d95cc98b00f33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Sources/CodeIsland/CodexPermissionRules.swift:601-609 | Sources/CodeIslandCore/AgentTaskParsing.swift:117-125 | Sources/CodeIslandCore/Models.swift:766-774 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 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":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"529fc9292c69b850238b19e056ee349e4410cce00f8295a0d9948b47c1cb178d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:9-18 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:20-29 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf25097b1d627bd76489e3c3919773185946b6fbf51a7d3aef5349225050c477"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/CodeIsland/NotchPanelView.swift:3376-3380 | Sources/CodeIsland/NotchPanelView.swift:3512-3516 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":3376}}}],"partialFingerprints":{"codehealthFindingId/v1":"a803ff660df6004e618d0163ec58d93654b0c27d4bed513381474cdd4949f9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): windows/CodeIsland.Windows/MainWindow.xaml.cs:144-149 | windows/CodeIsland.Windows/MainWindow.xaml.cs:193-198 \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":"windows/CodeIsland.Windows/MainWindow.xaml.cs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"891352bcb091a2b5e6c09348e1f3688d60e369253d25565b9538afdd237e6748"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIsland/AppleCompanionPublisher.swift:193-202 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift:480-488 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppleCompanionPublisher.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d29dc2c13487804c093349a05f39e6b8442ad79d6fdb82d98703979cdd1aa3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/CodeIsland/Discovery/SQLiteReader.swift:52-59 | Sources/CodeIslandCore/HermesSessionStore.swift:201-208 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/SQLiteReader.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"cded79481b2b78e4af16c6c40d75a1f9c3f1784d06ba97a18fc809d6615dcc08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 6\u002B corresponding lines): Sources/CodeIsland/HostHarnessSupport.swift:61-66 | Sources/CodeIsland/ProcessTable.swift:47-52 | Sources/CodeIsland/ProcessTable.swift:89-94 | Sources/CodeIsland/ProcessTable.swift:97-102 | Sources/CodeIsland/TerminalActivator.swift:447-452 | Sources/CodeIslandBridge/main.swift:87-92 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HostHarnessSupport.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"75329fb15fc789454f3bc6848d306acd14565e3dd35853df1c00329ea2dadf1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): ios/CodeIslandCompanion/CodeIslandCompanion/CompanionBluetoothCentral.swift:194-202 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionBluetoothCentral.swift:204-213 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/CompanionBluetoothCentral.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"278814a111df93619649890bf21ba2a55a14698d6412ec9810d28a5f2bc344e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/CodeIsland/AppleCompanionBluetoothPeripheral.swift:174-184 | Sources/CodeIsland/AppleCompanionBluetoothPeripheral.swift:186-197 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppleCompanionBluetoothPeripheral.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4bde643bc2910817f922bec59d43d122e95d0426c2ae63f6f09c5f80971fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/CodeIsland/ESP32BridgeManager.swift:791-800 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionBluetoothCentral.swift:170-181 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ESP32BridgeManager.swift"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"299ae7fef6dcc508fee224d5322e79828fdf1eb1743e336b18b1e4403790db98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/CodeIsland/Discovery/SQLiteReader.swift:83-88 | Sources/CodeIslandCore/HermesSessionStore.swift:210-213 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/SQLiteReader.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b29a02e33cb4eb66534fd2c4aeba02d287c7a009eb3bcae607f695975664d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Sources/CodeIsland/Resources/codeisland-remote-hook.py:110-114 | Sources/CodeIsland/Resources/codeisland-remote-hook.py:122-127 | Sources/CodeIsland/Resources/codeisland-remote-hook.py:131-136 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"43be04e63a487a54d954f4a51408d33a44ba996f70b68ec4e10611fabf8f3725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/CodeIslandCore/CursorSessionFolding.swift:14-21 | Sources/CodeIslandCore/ModelLabel.swift:216-220 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CursorSessionFolding.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"38845433d82cf854d9849c201f436728d0701a5849b332ee3babad5e02500159"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): Sources/CodeIslandCore/CoworkSession.swift:221-225 | Sources/CodeIslandCore/JSONLTailer.swift:720-724 | Sources/CodeIslandCore/Models.swift:760-764 | Sources/CodeIslandCore/PushPolicy.swift:322-326 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 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":"Sources/CodeIslandCore/CoworkSession.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f53f9953dd3010e039c2cb469ec89a67db0d0ae5429831b1775d2fb38cc2627"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/CodeIsland/CursorView.swift:44-46 | Sources/CodeIsland/MiMoView.swift:43-45 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Sources/CodeIsland/CursorView.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde4770bdac93d754c77ba448ed1260bd1acac6cbc1ff924b91dbc0269a67291"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/CodeIslandCore/ChatMessageTextFormatter.swift:99-107 | ios/CodeIslandCompanion/Shared/CompanionDisplayText.swift:130-138 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ChatMessageTextFormatter.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1382beb950e54a4314486aa077feb93c83517e3c2ddd374c42aed2aea854ca25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/CodeIsland/AppState.swift:513-520 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift:199-206 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38fcbe7862d4cd12b913f6387fb2c7c103c849f87ac0df7d4eafebdf11e0c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/CodeIsland/AppleCompanionBluetoothPeripheral.swift:279-282 | Sources/CodeIslandCore/AiWorkWatchClient.swift:680-683 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppleCompanionBluetoothPeripheral.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"27eb6bec0e0aeb0134f3d216b099d3eea45ac6307f3c587ba0e0746a90330486"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/CodeIsland/AppState\u002BCoworkWatch.swift:58-63 | Sources/CodeIsland/AppState.swift:1366-1371 \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":"Sources/CodeIsland/AppState\u002BCoworkWatch.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9256c351c5452dd991fdab631d6efff049526dce341f243cf57e675b1843b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/CodeIsland/ESP32BridgeManager.swift:690-697 | Sources/CodeIsland/PanelWindowController.swift:550-566 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ESP32BridgeManager.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8315479930ce03c71c134c7e0b11a4b1eb47c698149ed21e0d7d2f0bb575fab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Sources/CodeIsland/TerminalActivator.swift:1510-1513 | Sources/CodeIsland/TerminalVisibilityDetector.swift:541-544 | Sources/CodeIslandCore/PushChannel.swift:480-484 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"23077beb699cc856bb0ac0959a6d857d9f152128f5ec9b029bb4f4b3a1eb5519"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Sources/CodeIsland/TerminalActivator.swift:1534-1538 | Sources/CodeIslandCore/DisplayOnlyWait.swift:107-112 | ios/CodeIslandCompanion/Shared/CompanionDisplayText.swift:92-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"124ac4a8ff0552edaa83f2afaa48c86bfde237cbc658c62a053d1ec295260f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/CodeIsland/HostHarnessSupport.swift:84-87 | Sources/CodeIslandBridge/main.swift:118-121 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HostHarnessSupport.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea73df47e7393bce64e1316316f34a17ae1a31822c179173e5aa678218678e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): Sources/CodeIslandCore/HermesHookPayload.swift:34-38 | Sources/CodeIslandCore/HermesSessionStore.swift:138-142 | Sources/CodeIslandCore/HookEdgeFacts.swift:102-106 | Sources/CodeIslandCore/SubsessionRouter.swift:327-333 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 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":"Sources/CodeIslandCore/HermesHookPayload.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d946eb98cc65c38d7a72329ba79ed8b1154f58e3aeda422ed766f67db1491d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): windows/CodeIsland.Protocol/CodexTranscriptParser.cs:147-152 | windows/CodeIsland.Protocol/RawAgentEventNormalizer.cs:64-69 \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":"windows/CodeIsland.Protocol/CodexTranscriptParser.cs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69a6faabf5a9c88faf12580e245610fe94031297cc3a988de95ee928de94d2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Sources/CodeIsland/CompactBarRotation.swift:25-33 | Sources/CodeIsland/ESP32FocusCoordinator.swift:21-29 | Sources/CodeIsland/ESP32StatePublisher.swift:438-446 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:40-48 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CompactBarRotation.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c662a6cee00e2e2e8b8cee3c6904a0f6105053166bcb552226e67c0a64973fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/CodeIslandCore/ClaudeDesktopCodeSession.swift:30-33 | Sources/CodeIslandCore/CoworkSession.swift:302-305 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ClaudeDesktopCodeSession.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a496c939abe94e506e6ef62904b8e0b8102b1f63f3f2dbb28483aec29f38382"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:146-148 | ios/CodeIslandCompanion/Shared/CodeIslandActivityAttributes.swift:13-15 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae9b706a17d12fbdfa78a7fe584ead68767eae1d7262a0960f360ac47735186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201332 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:5832-5863 | ios/CodeIslandCompanion/Shared/CompanionDisplayText.swift:172-199 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":5832}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3791a17cf0d549a050e12484b68fca8efcc0d598a54711ffd3b0cf52bc27cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): Sources/CodeIslandCore/ChatMessageTextFormatter.swift:68-96 | ios/CodeIslandCompanion/Shared/CompanionDisplayText.swift:142-168 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ChatMessageTextFormatter.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b6d6029ce87b28f8a6399ea759c1a08e15943cdb68e428c52a9ec68005b949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201325 lines \u00D7 3): Sources/CodeIsland/AppState.swift:2081-2105 | Sources/CodeIsland/AppState.swift:2573-2589 | Sources/CodeIsland/AppState.swift:2631-2648 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/AppState.swift:2081\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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bdfdc994658c419e43ea4d3dae66d399e53d950adf6e357556ac3e7fff8172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): Sources/CodeIslandCore/SessionSnapshot.swift:1634-1654 | Sources/CodeIslandCore/SessionSnapshot.swift:2135-2159 \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 \u0060Sources/CodeIslandCore/SessionSnapshot.swift:1634\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":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"d250647e6d95114635706f9884dda06b836576ed962208a3461846eaec26195c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/CodeIslandCore/SessionSnapshot.swift:1661-1681 | Sources/CodeIslandCore/SessionSnapshot.swift:2175-2195 \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":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0a168f19d9c5d6b6e6533afa35a29531e8169dded446f8b3fd8538c4eb3b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/CodeIsland/AppState.swift:2820-2836 | Sources/CodeIsland/AppState.swift:2946-2962 \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 \u0060Sources/CodeIsland/AppState.swift:2820\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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2820}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd68d79f7273896ec889dc4c28e0209ba858b15319040c651bd11d44aa77692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/CodeIslandCore/AppleCompanionPayload.swift:51-66 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:99-115 \u2014 before extracting anything, compare \u0060Sources/CodeIslandCore/AppleCompanionPayload.swift\u0060 and \u0060ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIslandCore/AppleCompanionPayload.swift:51\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":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac4196a01ccded9e1fc792bdad55bf3a26cf0260b4f579946db6af099c8c5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/CodeIsland/AppState.swift:2804-2819 | Sources/CodeIsland/AppState.swift:2930-2944 \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 \u0060Sources/CodeIsland/AppState.swift:2804\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2804}}}],"partialFingerprints":{"codehealthFindingId/v1":"b086c9f9e419c876de9fbf0d823cabc740d56cb84cb6fdc49ee4005b9febb9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/CodeIsland/KiroView.swift:17-32 | Sources/CodeIsland/OpenClawView.swift:18-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/KiroView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0fb45e674cae57aa8df77856ba5407c54e5e97cf3ef5acc0d4956f6f82d5b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/CodeIslandCore/HookIntake.swift:576-590 | Sources/CodeIslandCore/HookIntake.swift:628-643 \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 \u0060Sources/CodeIslandCore/HookIntake.swift:576\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ea59b7f2f24e6e4080951dd0a5a7b4cf1f61733e46d03c9316d8b41437bbf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:820-840 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1048-1068 \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 \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:820\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006012\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:841\u0060 calls \u0060frame\u0060 and \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1069\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"174b41f4be8bf526f5eacab71e54c1684feda5deb9a1136f5c1f198a136922c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): Sources/CodeIsland/KiroView.swift:126-135 | Sources/CodeIsland/MinimaxView.swift:155-168 | Sources/CodeIsland/OpenClawView.swift:143-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/KiroView.swift:126\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":"Sources/CodeIsland/KiroView.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65274b467064a82d8cb2d1d8c8cd5cbb01d80b93d98e54d13b18303f8bc1c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): Sources/CodeIsland/AppState.swift:4053-4063 | Sources/CodeIsland/AppState.swift:4093-4106 \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 \u0060Sources/CodeIsland/AppState.swift:4053\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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4053}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c58d8357548b4d56ad337721bc8acf4eb6f33a48ff60f8a8e8b0792aef5845e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/CodeIslandCore/AppleCompanionPayload.swift:145-158 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:214-227 \u2014 before extracting anything, compare \u0060Sources/CodeIslandCore/AppleCompanionPayload.swift\u0060 and \u0060ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIslandCore/AppleCompanionPayload.swift:145\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":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff87d0c493dac29e0723d6868e2ef672a40e5ee6d50f246ff19496af12a00bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): Sources/CodeIsland/BuddyView.swift:72-83 | Sources/CodeIsland/DexView.swift:81-93 | Sources/CodeIsland/OpenCodeView.swift:71-81 | Sources/CodeIsland/QoderView.swift:72-83 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/BuddyView.swift\u0060 and \u0060Sources/CodeIsland/DexView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 130 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 \u0060Sources/CodeIsland/BuddyView.swift:72\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":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"72985e40ab128773839b18b5701fa6e66c2afe39494218683a75ca16110c6b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/CodeIsland/AppState\u002BTranscriptTailer.swift:66-78 | Sources/CodeIsland/AppState\u002BTranscriptTailer.swift:239-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState\u002BTranscriptTailer.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8b59074735fcaf421dd814e1f310f17259193c037f094c6dcacd746377f5d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/CodeIsland/AppState.swift:4581-4593 | Sources/CodeIsland/AppState.swift:4675-4687 \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 \u0060Sources/CodeIsland/AppState.swift:4581\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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4581}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95e07e180fa426b850d02839d2eb5046537e2ab02c4f11ec9413a5b176b9f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/CodeIsland/Discovery/GeminiDiscovery.swift:112-125 | Sources/CodeIsland/Discovery/SessionDiscovery.swift:231-244 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/Discovery/GeminiDiscovery.swift:112\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Sources/CodeIsland/Discovery/GeminiDiscovery.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b51908de799576b20db0cbe9b5e1dccfa72336e5030cf352049dc80b6ef6a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201313 lines \u00D7 3): Sources/CodeIsland/GeminiView.swift:59-70 | Sources/CodeIsland/QwenView.swift:59-71 | Sources/CodeIsland/QwenView.swift:88-90 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/GeminiView.swift\u0060 and \u0060Sources/CodeIsland/QwenView.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 192 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 \u0060Sources/CodeIsland/GeminiView.swift:59\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/GeminiView.swift:70\u0060 calls \u0060sin\u0060 and \u0060Sources/CodeIsland/QwenView.swift:90\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/GeminiView.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8247a5b0bbfa2197f032eb0c287ff0377e163f948f04a7748d0195c7390ccfba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:2830-2842 | Sources/CodeIsland/NotchPanelView.swift:2890-2902 \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 \u0060Sources/CodeIsland/NotchPanelView.swift:2830\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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":2830}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb2f64b51675dbead5342f550c0d32a0f64c8607e648a099604340ef6d4a635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/CodeIslandCore/AiWorkWatchClient.swift:197-209 | Sources/CodeIslandCore/CodexAppServerClient.swift:238-249 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIslandCore/AiWorkWatchClient.swift:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ad77073c33b75ede6f4fccbdfb0cc95f3519a1df5e14454c4d6f57c07a13db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/CodeIslandCore/AiWorkWatchClient.swift:345-357 | Sources/CodeIslandCore/CodexAppServerClient.swift:345-357 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIslandCore/AiWorkWatchClient.swift:345\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"b291ee305e9cb1296e517edb99382daa42cb4ed9eb918eb687a3fa9857719163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/CodeIsland/BuddyView.swift:63-74 | Sources/CodeIsland/DexView.swift:67-78 | Sources/CodeIsland/QoderView.swift:62-73 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/BuddyView.swift\u0060 and \u0060Sources/CodeIsland/DexView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 130 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 \u0060Sources/CodeIsland/BuddyView.swift:63\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":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5149e7f9cedb3835409d125c6605da44cbf31b141a3fedae9e9bc7bae7c55952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): Sources/CodeIsland/RemoteInstaller.swift:1709-1718 | Sources/CodeIsland/SSHForwarder.swift:162-171 | Sources/CodeIsland/SSHForwarder.swift:207-218 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/RemoteInstaller.swift:1709\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":"Sources/CodeIsland/RemoteInstaller.swift"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a7a5fd7eedefaf58b468359e850e31c4c1ca218e5a27af51552b2a35c522c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): windows/CodeIsland.Windows/DockShoulderGeometry.cs:34-38 | windows/CodeIsland.Windows/DockShoulderGeometry.cs:53-57 \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 \u0060windows/CodeIsland.Windows/DockShoulderGeometry.cs:34\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":"windows/CodeIsland.Windows/DockShoulderGeometry.cs"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4240034bfe15eeede963ef9611789f193eaff0509de1ab60908d5acd3aa0c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:868-879 | Sources/CodeIsland/NotchPanelView.swift:883-894 \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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"e708d1a9b098ec9fa97ba1398a6bafc6676bf8318e4c2dcc1fc70757db79a474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:221-234 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:312-325 \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 \u0060ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060size\u0060 to \u006034) VStack(alignment: .leading\u0060 in one and \u006040) VStack(alignment: .leading\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce9e20d8afc44913ae5bb0d76c77e4ae2f704ce9a4286c3c8b8e9babf29e2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 6): Sources/CodeIsland/Discovery/ClaudeDiscovery.swift:344-354 | Sources/CodeIsland/Discovery/ClineDiscovery.swift:89-98 | Sources/CodeIsland/Discovery/CodexDiscovery.swift:965-974 | Sources/CodeIsland/Discovery/CopilotDiscovery.swift:153-162 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:120-129 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:166-175 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift\u0060 and \u0060Sources/CodeIsland/Discovery/CursorDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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 \u0060Sources/CodeIsland/Discovery/ClaudeDiscovery.swift:344\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":"Sources/CodeIsland/Discovery/ClaudeDiscovery.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33ead2f849646aa337389473978d89f2022d456ca5fed9ed38f94d77b67e843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CodeIsland/AppState.swift:2711-2721 | Sources/CodeIsland/AppState.swift:2929-2939 \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 \u0060Sources/CodeIsland/AppState.swift:2711\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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2711}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e23dc9df983bbf5543b6986eede1a39d59f76281c1e92798621f8d4c0327605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CodeIsland/Discovery/CopilotDiscovery.swift:20-30 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:35-45 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift\u0060 and \u0060Sources/CodeIsland/Discovery/CursorDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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 \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift:20\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":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4584ebc3ee00f448899003061285fadc072ab74b9f970effbfa0196d760e21dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CodeIsland/SettingsView.swift:2441-2451 | Sources/CodeIsland/SettingsView.swift:2590-2600 \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 \u0060Sources/CodeIsland/SettingsView.swift:2441\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, \u0060Sources/CodeIsland/SettingsView.swift:2453\u0060 calls \u0060help\u0060 and \u0060Sources/CodeIsland/SettingsView.swift:2601\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ae146fdf084c72b081c68fb71b7bf236414d0214ffd234ee392ef62e968b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CodeIslandCore/SessionSnapshot.swift:2442-2452 | Sources/CodeIslandCore/SessionSnapshot.swift:2467-2477 \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 \u0060Sources/CodeIslandCore/SessionSnapshot.swift:2442\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIslandCore/SessionSnapshot.swift:2455\u0060 calls \u0060Date\u0060 and \u0060Sources/CodeIslandCore/SessionSnapshot.swift:2480\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":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfcb4b73413e9d31355f1591acbfcc207a4f27ec5181825e5dad116fbbc8231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201310 lines \u00D7 18): Sources/CodeIsland/AiWorkView.swift:288-290 | Sources/CodeIsland/AntiGravityView.swift:158-160 | Sources/CodeIsland/BuddyView.swift:265-272 | Sources/CodeIsland/ClineView.swift:241-248 | Sources/CodeIsland/CopilotView.swift:264-271 | Sources/CodeIsland/CursorView.swift:264-271 | Sources/CodeIsland/DexView.swift:281-289 | Sources/CodeIsland/DroidView.swift:243-250 | Sources/CodeIsland/GeminiView.swift:234-242 | Sources/CodeIsland/HermesView.swift:166-168 | Sources/CodeIsland/KimiView.swift:223-230 | Sources/CodeIsland/OpenCodeView.swift:255-262 | Sources/CodeIsland/PixelCharacterView.swift:341-350 | Sources/CodeIsland/QoderView.swift:236-243 | Sources/CodeIsland/QwenView.swift:244-251 | Sources/CodeIsland/StepFunView.swift:161-163 | Sources/CodeIsland/TraeView.swift:233-240 | Sources/CodeIsland/WorkBuddyView.swift:150-152 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 18 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/AiWorkView.swift:288\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/BuddyView.swift:265\u0060 calls \u0060lerp\u0060 and \u0060Sources/CodeIsland/AiWorkView.swift:288\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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"323bc0db18c393c2b1c13cf9d9741ea39f63bbb5e63ac4f9a92712425255cce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 4): Sources/CodeIsland/AntiGravityView.swift:103-112 | Sources/CodeIsland/HermesView.swift:111-120 | Sources/CodeIsland/StepFunView.swift:96-99 | Sources/CodeIsland/WorkBuddyView.swift:95-104 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/HermesView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 108 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 \u0060Sources/CodeIsland/AntiGravityView.swift:103\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/AntiGravityView.swift:101\u0060 calls \u0060V\u0060, \u0060drawShadow\u0060, \u0060abs\u0060 and \u0060Sources/CodeIsland/StepFunView.swift:96\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e49f3e33f4de4386fe9616c0b46825849ff71f33c338c875e7a71fa5eb7fc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): windows/CodeIsland.Windows/DesktopSessionStore.cs:89-96 | windows/CodeIsland.Windows/DesktopSessionStore.cs:106-113 \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 \u0060windows/CodeIsland.Windows/DesktopSessionStore.cs:89\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":"windows/CodeIsland.Windows/DesktopSessionStore.cs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8058ee3909bb0c529cf960462bcd616fdc7e3db3d6983e6a5ea80c1bf28e3a7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Sources/CodeIsland/ConfigInstaller.swift:3509-3516 | Sources/CodeIsland/ConfigInstaller.swift:3550-3559 \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 \u0060Sources/CodeIsland/ConfigInstaller.swift:3509\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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3509}}}],"partialFingerprints":{"codehealthFindingId/v1":"6830cb6a8e4b51a32fb77bd55a5710e8756e23b21da4cd07029f54be0c88fa10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/CodeIsland/GrokView.swift:46-55 | Sources/CodeIsland/GrokView.swift:100-109 \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 \u0060Sources/CodeIsland/GrokView.swift:46\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":"Sources/CodeIsland/GrokView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0b2e5681315418bfd97aba74d10a5e0add3082ffd12a79d2734d0729ca27dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:1423-1432 | Sources/CodeIsland/NotchPanelView.swift:1456-1465 \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 \u0060Sources/CodeIsland/NotchPanelView.swift:1423\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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00c9a717c7b27d9adc7248d229b0662275966ea499c9ed8edffabf9c9788e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift:257-266 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchConnection.swift:155-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"30468fee05cc4a9a601d37f1561c2347052c3b1b8b176fd241c4a8785405a6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:671-679 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:693-702 \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 \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:671\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":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"e075d029375222e355efcb32b41c8c8a52774fe6fd48ecbfafa3364c4bc532c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:122-136 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:338-352 \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 \u0060ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u00602\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c728ce962181415d77e30af5b0fa0f31b1971e5771d6659a0757287c1691c65a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): Sources/CodeIsland/DebugHarness.swift:98-106 | Sources/CodeIsland/DebugHarness.swift:180-188 | Sources/CodeIsland/DebugHarness.swift:252-260 | Sources/CodeIsland/DebugHarness.swift:302-310 | Sources/CodeIsland/DebugHarness.swift:321-329 | Sources/CodeIsland/DebugHarness.swift:380-388 | Sources/CodeIsland/DebugHarness.swift:407-415 | Sources/CodeIsland/DebugHarness.swift:422-430 | Sources/CodeIsland/DebugHarness.swift:437-445 | Sources/CodeIsland/DebugHarness.swift:449-457 | Sources/CodeIsland/DebugHarness.swift:504-512 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/DebugHarness.swift:311\u0060 calls \u0060addRecentMessage\u0060, \u0060ChatMessage\u0060 and \u0060Sources/CodeIsland/DebugHarness.swift:107\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":"Sources/CodeIsland/DebugHarness.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9101a10f8d0072a3b19c4d22048ae12329ba7f60025505da2fbf8af3b2f4fa43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): Sources/CodeIsland/ClineView.swift:179-186 | Sources/CodeIsland/GeminiView.swift:170-178 | Sources/CodeIsland/KimiView.swift:160-167 | Sources/CodeIsland/QwenView.swift:181-188 | Sources/CodeIsland/TraeView.swift:170-177 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/ClineView.swift\u0060 and \u0060Sources/CodeIsland/GeminiView.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 162 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 \u0060Sources/CodeIsland/ClineView.swift:179\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/KimiView.swift:171\u0060 calls \u0060drawLegs\u0060 and \u0060Sources/CodeIsland/ClineView.swift:191\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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"94656159031f3a2ee8fb5786b122ae20d10a07d927000a1532b3a0e0bf980d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/CodeIsland/GrokView.swift:44-52 | Sources/CodeIsland/GrokView.swift:60-68 | Sources/CodeIsland/GrokView.swift:71-79 | Sources/CodeIsland/GrokView.swift:87-95 | Sources/CodeIsland/GrokView.swift:98-106 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/GrokView.swift:44\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/GrokView.swift:70\u0060 calls \u0060addLine\u0060, \u0060point\u0060 and \u0060Sources/CodeIsland/GrokView.swift:54\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":"Sources/CodeIsland/GrokView.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"029f90d01107064418fbd73564500f977015c62eba544d8bf97790b5d0c5317b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/CodeIsland/GrokView.swift:51-59 | Sources/CodeIsland/GrokView.swift:62-70 | Sources/CodeIsland/GrokView.swift:73-81 | Sources/CodeIsland/GrokView.swift:89-97 | Sources/CodeIsland/GrokView.swift:115-123 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/GrokView.swift:51\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/GrokView.swift:59\u0060 calls \u0060addLine\u0060, \u0060point\u0060 and \u0060Sources/CodeIsland/GrokView.swift:48\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":"Sources/CodeIsland/GrokView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa1644fb0d11a26924719a56431c198b9c5042b3ad3c9032efac361f8bba1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/CodeIsland/ClineView.swift:150-158 | Sources/CodeIsland/KimiView.swift:131-139 | Sources/CodeIsland/TraeView.swift:141-149 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/ClineView.swift\u0060 and \u0060Sources/CodeIsland/KimiView.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 192 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 \u0060Sources/CodeIsland/ClineView.swift:150\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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60488cfcc69bf8c6e00fc64986b59910226b381009a30d6cef5e043e06a4c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/CodeIsland/Discovery/ClaudeDiscovery.swift:280-288 | Sources/CodeIsland/Discovery/CopilotDiscovery.swift:118-126 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:137-145 \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. 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":"Sources/CodeIsland/Discovery/ClaudeDiscovery.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85bb2d5f6ab1c99da751f11f03eb1311bee60e73a7a205170f43b43cf8d66e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:84-92 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:226-234 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:317-325 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:84\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":"ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"552193b5409c96e838b990b63d08d6aca62243bd5dba16a174622c6d15dee64c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/CodeIsland/AppState.swift:2236-2244 | Sources/CodeIsland/AppState.swift:2520-2528 \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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfad34c40f67d3c54d1f7ba822645ee2cabd3cfafb4548ff8f7cab5ef93ac93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/CodeIsland/ConfigInstaller.swift:742-749 | Sources/CodeIsland/ConfigInstaller.swift:817-825 \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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b54226546e7506ac8e8e003cb062397563053a1287db3e5039123b1a422b0ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/CodeIsland/Discovery/ClaudeDiscovery.swift:285-293 | Sources/CodeIsland/Discovery/CodexDiscovery.swift:913-920 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/Discovery/ClaudeDiscovery.swift:285\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/ClaudeDiscovery.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d37c070f476891f9efe051c4cd892e414bf326496c2c7433e44c75abaf11c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/CodeIsland/MascotView.swift:56-64 | ios/CodeIslandCompanion/Shared/SharedMascotView.swift:85-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/MascotView.swift:56\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, \u0060Sources/CodeIsland/MascotView.swift:55\u0060 calls \u0060MiMoView\u0060 and \u0060ios/CodeIslandCompanion/Shared/SharedMascotView.swift:84\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":"Sources/CodeIsland/MascotView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9ea44813f981a11eddbb201f3363ee204d00023477ede3fe8aa726e3e2b2c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/CodeIsland/NotchAnimation.swift:115-123 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1346-1354 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/NotchAnimation.swift:115\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":"Sources/CodeIsland/NotchAnimation.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8078be718636ce5f8731ea1b4fbbd386c4d9d92dc97b7683e312b2b7c55fd1c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:414-422 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:230-238 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:414\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:228\u0060 calls \u0060minimumScaleFactor\u0060 and \u0060ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:413\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":"ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f10f689729f84e2ff68164e1befcf454e7cf9b0b6da0362bac130e688040bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:559-567 | ios/CodeIslandCompanion/CodeIslandWatchWidget/CodeIslandWatchStatusWidget.swift:131-139 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"2938f9911d17a74ed3a2df3321443f670b9002ff8ce7fee9b1ed79c07570aef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 15): Sources/CodeIsland/AiWorkView.swift:272-278 | Sources/CodeIsland/BuddyView.swift:241-247 | Sources/CodeIsland/ClineView.swift:221-227 | Sources/CodeIsland/CopilotView.swift:237-243 | Sources/CodeIsland/CursorView.swift:243-249 | Sources/CodeIsland/DexView.swift:254-260 | Sources/CodeIsland/DroidView.swift:219-225 | Sources/CodeIsland/GeminiView.swift:214-220 | Sources/CodeIsland/KimiView.swift:203-209 | Sources/CodeIsland/MiMoView.swift:237-239 | Sources/CodeIsland/OpenCodeView.swift:235-241 | Sources/CodeIsland/PixelCharacterView.swift:299-306 | Sources/CodeIsland/QoderView.swift:216-222 | Sources/CodeIsland/QwenView.swift:224-230 | Sources/CodeIsland/TraeView.swift:213-219 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AiWorkView.swift\u0060 and \u0060Sources/CodeIsland/BuddyView.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 99 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 \u0060Sources/CodeIsland/AiWorkView.swift:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/MiMoView.swift:235\u0060 calls \u0060CGFloat\u0060, \u0060truncatingRemainder\u0060, \u0060lerp\u0060 and \u0060Sources/CodeIsland/AiWorkView.swift:272\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"8844dc8709c5472ee73fd13645d3fbf4f3037eae9be91ad30498dbadc24c8c6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 12): Sources/CodeIsland/BuddyView.swift:282-288 | Sources/CodeIsland/ClineView.swift:257-263 | Sources/CodeIsland/CopilotView.swift:282-289 | Sources/CodeIsland/CursorView.swift:283-289 | Sources/CodeIsland/DexView.swift:301-308 | Sources/CodeIsland/DroidView.swift:260-266 | Sources/CodeIsland/GeminiView.swift:251-258 | Sources/CodeIsland/KimiView.swift:239-246 | Sources/CodeIsland/OpenCodeView.swift:271-277 | Sources/CodeIsland/QoderView.swift:252-258 | Sources/CodeIsland/QwenView.swift:260-267 | Sources/CodeIsland/TraeView.swift:249-256 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/BuddyView.swift\u0060 and \u0060Sources/CodeIsland/ClineView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 116 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 \u0060Sources/CodeIsland/BuddyView.swift:282\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":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c35cc2d6763274f0b52b6fe2846b878c85b8fdcb91e4871e198042c15aa10a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 11): Sources/CodeIsland/AiWorkView.swift:281-283 | Sources/CodeIsland/AiWorkView.swift:287-289 | Sources/CodeIsland/ClineView.swift:231-238 | Sources/CodeIsland/CopilotView.swift:246-248 | Sources/CodeIsland/CursorView.swift:252-254 | Sources/CodeIsland/GeminiView.swift:224-231 | Sources/CodeIsland/KimiView.swift:213-220 | Sources/CodeIsland/OpenCodeView.swift:252-254 | Sources/CodeIsland/QoderView.swift:233-235 | Sources/CodeIsland/QwenView.swift:234-241 | Sources/CodeIsland/TraeView.swift:223-230 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AiWorkView.swift\u0060 and \u0060Sources/CodeIsland/ClineView.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 100 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 \u0060Sources/CodeIsland/AiWorkView.swift:281\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/AiWorkView.swift:285\u0060 calls \u0060sin\u0060 and \u0060Sources/CodeIsland/AiWorkView.swift:290\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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f39a72827ddf34c7d3d4c88be8c23ad04708ece41fe6ea68ae6a70edf96b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 5): Sources/CodeIsland/DebugHarness.swift:120-127 | Sources/CodeIsland/DebugHarness.swift:325-331 | Sources/CodeIsland/DebugHarness.swift:411-417 | Sources/CodeIsland/DebugHarness.swift:426-432 | Sources/CodeIsland/DebugHarness.swift:508-515 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/DebugHarness.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f463649124235bf30ec80f2f64b1e9e3d2ebd63105fccd1da977337291d65eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 5): Sources/CodeIsland/Discovery/ClaudeDiscovery.swift:275-282 | Sources/CodeIsland/Discovery/CopilotDiscovery.swift:114-120 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:93-99 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:133-139 | Sources/CodeIsland/Discovery/KimiDiscovery.swift:186-192 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift\u0060 and \u0060Sources/CodeIsland/Discovery/CursorDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/ClaudeDiscovery.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0900fcb36fd78cb2799d806a31d03b43c4120119d98ecd4e14681e38c831400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): Sources/CodeIsland/AntiGravityView.swift:105-111 | Sources/CodeIsland/HermesView.swift:113-119 | Sources/CodeIsland/StepFunView.swift:101-108 | Sources/CodeIsland/WorkBuddyView.swift:97-103 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/HermesView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 108 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 \u0060Sources/CodeIsland/AntiGravityView.swift:105\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac24424c217049da65c05aa8a62bd1bde880b78145bc191665f9159d699b81c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 2): windows/CodeIsland.Windows/SettingsWindow.xaml.cs:65-69 | windows/CodeIsland.Windows/SettingsWindow.xaml.cs:75-82 \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 \u0060windows/CodeIsland.Windows/SettingsWindow.xaml.cs:75\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc77448a2fc2e552fd49322985a5972d19a35a448efddc18c0da55be658d2ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIsland/AppState.swift:3971-3978 | Sources/CodeIsland/AppState.swift:4761-4768 \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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":3971}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ecadc25b96d6c1557e1f91580b7770f24f4031d8a767430b7e299cf71f1d594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIsland/ConfigInstaller.swift:1678-1685 | Sources/CodeIsland/ConfigInstaller.swift:1822-1829 \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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6408d126470ea2026acf9e3a76493aeaa4f3abd7c3635952ae98b7cb125118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIsland/Discovery/GeminiDiscovery.swift:103-110 | Sources/CodeIsland/Discovery/SessionDiscovery.swift:222-229 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/Discovery/GeminiDiscovery.swift:103\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":"Sources/CodeIsland/Discovery/GeminiDiscovery.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"94566891e4189234bad5ac837438b97b68f955b4a6e18ae0ab3ef9a351b9c66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:1504-1511 | Sources/CodeIsland/NotchPanelView.swift:1521-1528 \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 \u0060Sources/CodeIsland/NotchPanelView.swift:1504\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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"791ff882b8302ed64d4876686b437361670904819199e196470e7af66c50c2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIsland/TerminalActivator.swift:1517-1524 | Sources/CodeIsland/TerminalVisibilityDetector.swift:555-562 \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":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f831ebf1d402b8b51b64239f0dbf73d3365061f87e9033203c2fe774c48746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIslandCore/AiWorkWatchClient.swift:336-343 | Sources/CodeIslandCore/CodexAppServerClient.swift:336-343 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIslandCore/AiWorkWatchClient.swift:336\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":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffabf339bb5b5d80938ca3ccd82992db0534284cb8cca9f0c542637d1bf22ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIslandCore/HostHarness.swift:317-324 | Sources/CodeIslandCore/HostHarness.swift:362-369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/HostHarness.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a96439b3366bc38305c48e1e4e1bf2389cd786ea02ccd76b4fc4c8a18654519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:266-273 | ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:309-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cc94eba40e8a793f7b5ea967ad88a40f5152a7501fff64e0bb9b8f3e246d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): Sources/CodeIsland/DebugHarness.swift:100-106 | Sources/CodeIsland/DebugHarness.swift:118-124 | Sources/CodeIsland/DebugHarness.swift:182-188 | Sources/CodeIsland/DebugHarness.swift:254-260 | Sources/CodeIsland/DebugHarness.swift:285-291 | Sources/CodeIsland/DebugHarness.swift:304-310 | Sources/CodeIsland/DebugHarness.swift:323-329 | Sources/CodeIsland/DebugHarness.swift:382-388 | Sources/CodeIsland/DebugHarness.swift:409-415 | Sources/CodeIsland/DebugHarness.swift:424-430 | Sources/CodeIsland/DebugHarness.swift:439-445 | Sources/CodeIsland/DebugHarness.swift:506-512 \u2014 all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/DebugHarness.swift:107\u0060 calls \u0060recordTool\u0060 and \u0060Sources/CodeIsland/DebugHarness.swift:125\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":"Sources/CodeIsland/DebugHarness.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c360746cde83ebca8d79317aec07ad51d8a99c7c83e3df4c57aeb6464d9c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 15): Sources/CodeIsland/AiWorkView.swift:280-281 | Sources/CodeIsland/BuddyView.swift:250-255 | Sources/CodeIsland/ClineView.swift:229-230 | Sources/CodeIsland/CopilotView.swift:245-246 | Sources/CodeIsland/CursorView.swift:251-252 | Sources/CodeIsland/DexView.swift:263-268 | Sources/CodeIsland/DroidView.swift:228-233 | Sources/CodeIsland/GeminiView.swift:222-223 | Sources/CodeIsland/KimiView.swift:211-212 | Sources/CodeIsland/MiMoView.swift:242-247 | Sources/CodeIsland/OpenCodeView.swift:244-249 | Sources/CodeIsland/PixelCharacterView.swift:309-315 | Sources/CodeIsland/QoderView.swift:225-230 | Sources/CodeIsland/QwenView.swift:232-233 | Sources/CodeIsland/TraeView.swift:221-222 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AiWorkView.swift\u0060 and \u0060Sources/CodeIsland/BuddyView.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 99 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 \u0060Sources/CodeIsland/BuddyView.swift:250\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/BuddyView.swift:259\u0060 calls \u0060sin\u0060 and \u0060Sources/CodeIsland/OpenCodeView.swift:252\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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32e571a5c659897d5a1a123ea5410541c7770c0dd8ec77f65ee94efe1cada4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Sources/CodeIsland/AiWorkView.swift:243-249 | Sources/CodeIsland/BuddyView.swift:215-221 | Sources/CodeIsland/CursorView.swift:217-223 | Sources/CodeIsland/DroidView.swift:193-199 | Sources/CodeIsland/OpenCodeView.swift:209-215 | Sources/CodeIsland/QoderView.swift:190-196 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AiWorkView.swift\u0060 and \u0060Sources/CodeIsland/BuddyView.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 99 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 \u0060Sources/CodeIsland/AiWorkView.swift:243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"780639245c12682f26aca8b13b72c28cfb2f50a98ba7fb52e7fc36de8973acaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Sources/CodeIsland/ClineView.swift:194-200 | Sources/CodeIsland/CopilotView.swift:207-213 | Sources/CodeIsland/GeminiView.swift:188-194 | Sources/CodeIsland/KimiView.swift:177-183 | Sources/CodeIsland/QwenView.swift:198-204 | Sources/CodeIsland/TraeView.swift:187-193 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/ClineView.swift\u0060 and \u0060Sources/CodeIsland/CopilotView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 141 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 \u0060Sources/CodeIsland/ClineView.swift:194\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, \u0060Sources/CodeIsland/ClineView.swift:204\u0060 calls \u0060drawLegs\u0060 and \u0060Sources/CodeIsland/KimiView.swift:187\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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc52ecf01a04dae905de61c9d6a493cf842af27ae5d2c93c4f811098f1c243fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20137 lines \u00D7 9): Sources/CodeIsland/AntiGravityView.swift:133-134 | Sources/CodeIsland/BuddyView.swift:199-205 | Sources/CodeIsland/CursorView.swift:201-207 | Sources/CodeIsland/DroidView.swift:177-183 | Sources/CodeIsland/HermesView.swift:141-142 | Sources/CodeIsland/OpenCodeView.swift:193-199 | Sources/CodeIsland/QoderView.swift:174-180 | Sources/CodeIsland/StepFunView.swift:133-134 | Sources/CodeIsland/WorkBuddyView.swift:125-126 \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 9 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/AntiGravityView.swift:133\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/BuddyView.swift:205\u0060 calls \u0060abs\u0060 and \u0060Sources/CodeIsland/AntiGravityView.swift:134\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bb85025e5b52128dcae915a6190cec7f189f69f831367a0a77cb069a692d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/CodeIsland/ConfigInstaller.swift:806-812 | Sources/CodeIsland/ConfigInstaller.swift:891-897 | Sources/CodeIsland/ConfigInstaller.swift:913-919 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/ConfigInstaller.swift:806\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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d4b380dd9a03b64ab9d0429fe220729ec1a9e1771e0c905f2fac92f8901206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/CodeIsland/Discovery/CopilotDiscovery.swift:25-31 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:40-46 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:67-73 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift\u0060 and \u0060Sources/CodeIsland/Discovery/CursorDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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 \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift:25\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":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5b0ea2a71643ff73ee60c8da397c71130ff3718a7a0eb93187ea37c04f7f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 5): Sources/CodeIsland/Discovery/CopilotDiscovery.swift:92-94 | Sources/CodeIsland/Discovery/CopilotDiscovery.swift:124-130 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:102-108 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:143-149 | Sources/CodeIsland/Discovery/KimiDiscovery.swift:111-113 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift\u0060 and \u0060Sources/CodeIsland/Discovery/CursorDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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 \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift:92\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":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a745c51117c8fdd33b2fa3ea4a8265824a235b5651fe8d7bf6debc7dd030116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:649-655 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:670-676 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:692-698 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:649\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":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"870ba9a15544567bb71e4c8df149b4acf996c7c9b0e34f71a40dea8f4dbbf2f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1578-1584 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchContentView.swift:558-564 | ios/CodeIslandCompanion/CodeIslandWatchWidget/CodeIslandWatchStatusWidget.swift:130-136 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1578\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":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c7dbe4d2a407b2e47979ce5b421e252cd3baf7fb3921c87b4da4fdf46eefee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CodeIsland/ConfigInstaller.swift:2925-2931 | Sources/CodeIsland/ConfigInstaller.swift:3185-3191 \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 \u0060Sources/CodeIsland/ConfigInstaller.swift:2925\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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":2925}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f0757204a4b808a84b46fdae88622a06237ae761cc553eb934332c10c0dff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CodeIsland/KiroView.swift:95-101 | Sources/CodeIsland/StepFunView.swift:115-121 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/KiroView.swift:95\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":"Sources/CodeIsland/KiroView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2ace99c27407cedab181daceb6f7dd44341567e2adf4e7e180553db469cb5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CodeIsland/MascotView.swift:35-41 | ios/CodeIslandCompanion/Shared/SharedMascotView.swift:68-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/MascotView.swift:32\u0060 calls \u0060GrokView\u0060 and \u0060ios/CodeIslandCompanion/Shared/SharedMascotView.swift:67\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":"Sources/CodeIsland/MascotView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c678a3f282ac011ac6fbdac2a1a3376a7365360e51e0a23bf3e054651408f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:1188-1195 | Sources/CodeIsland/NotchPanelView.swift:1362-1369 \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 \u0060Sources/CodeIsland/NotchPanelView.swift:1188\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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b6733e28a2f4fe0161b3105812440a5bd21568614a6e5f6e091d32f2d5650a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:5261-5267 | Sources/CodeIsland/NotchPanelView.swift:5277-5283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/NotchPanelView.swift:5284\u0060 calls \u0060help\u0060, \u0060String\u0060 and \u0060Sources/CodeIsland/NotchPanelView.swift:5268\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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":5261}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b6848124d7600a2e10de5d9f4e1983ac88320a34a5b9deb345ce69c60f3311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Sources/CodeIsland/SettingsView.swift:2884-2890 | Sources/CodeIsland/SettingsView.swift:2979-2984 \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 \u0060Sources/CodeIsland/SettingsView.swift:2884\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":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":2884}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf9769ae250d89822134cce7c83e5d63a8abbde4ab0a4ca3d97bb4285c27eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CodeIsland/TerminalActivator.swift:1190-1197 | Sources/CodeIsland/TerminalVisibilityDetector.swift:467-474 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e367e111d84dc9370fbd3490c221a497ee28fcc4266b41442cd4053e4f5b666"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CodeIslandCore/SessionSnapshot.swift:1691-1697 | Sources/CodeIslandCore/SessionSnapshot.swift:2528-2534 \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 \u0060Sources/CodeIslandCore/SessionSnapshot.swift:1691\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":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"67964c165365be9ec87197f07274466f2fdd08fb7c653e42379ffa6955d4a39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CodeIslandCore/SessionSnapshot.swift:2362-2368 | Sources/CodeIslandCore/SessionSnapshot.swift:2397-2403 \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 \u0060Sources/CodeIslandCore/SessionSnapshot.swift:2362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"044b8bd47856cc62bb98ccc4b8c3735e9300df81ca927d59e9b1cc147ce1ba7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 16): Sources/CodeIsland/AiWorkView.swift:178-184 | Sources/CodeIsland/BuddyView.swift:155-161 | Sources/CodeIsland/ClineView.swift:131-137 | Sources/CodeIsland/CopilotView.swift:134-140 | Sources/CodeIsland/CursorView.swift:157-163 | Sources/CodeIsland/DexView.swift:140-146 | Sources/CodeIsland/DroidView.swift:129-135 | Sources/CodeIsland/GeminiView.swift:119-125 | Sources/CodeIsland/KimiView.swift:112-118 | Sources/CodeIsland/MiMoView.swift:169-175 | Sources/CodeIsland/OpenCodeView.swift:150-156 | Sources/CodeIsland/PiView.swift:115-121 | Sources/CodeIsland/QoderView.swift:130-136 | Sources/CodeIsland/QwenView.swift:130-136 | Sources/CodeIsland/StepFunView.swift:105-111 | Sources/CodeIsland/TraeView.swift:122-128 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AiWorkView.swift\u0060 and \u0060Sources/CodeIsland/BuddyView.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 99 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 \u0060Sources/CodeIsland/AiWorkView.swift:178\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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac59c6e7cba4964f350655971d57075eae78659719b41916f118d75c614474f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 13): Sources/CodeIsland/AiWorkView.swift:240-247 | Sources/CodeIsland/BuddyView.swift:212-219 | Sources/CodeIsland/ClineView.swift:191-198 | Sources/CodeIsland/CopilotView.swift:204-211 | Sources/CodeIsland/CursorView.swift:214-221 | Sources/CodeIsland/DexView.swift:219-226 | Sources/CodeIsland/DroidView.swift:190-197 | Sources/CodeIsland/GeminiView.swift:185-192 | Sources/CodeIsland/KimiView.swift:174-181 | Sources/CodeIsland/OpenCodeView.swift:206-213 | Sources/CodeIsland/QoderView.swift:187-194 | Sources/CodeIsland/QwenView.swift:195-202 | Sources/CodeIsland/TraeView.swift:184-191 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AiWorkView.swift\u0060 and \u0060Sources/CodeIsland/BuddyView.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 99 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/BuddyView.swift:209\u0060 calls \u0060drawLegs\u0060 and \u0060Sources/CodeIsland/ClineView.swift:188\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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51a95efb11828245d6cd945c3fa2452780e8f3b7c6bf133e224e6476edee487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): Sources/CodeIsland/CopilotView.swift:146-151 | Sources/CodeIsland/DexView.swift:152-157 | Sources/CodeIsland/GeminiView.swift:131-136 | Sources/CodeIsland/KimiView.swift:124-129 | Sources/CodeIsland/KiroView.swift:95-100 | Sources/CodeIsland/OpenClawView.swift:113-118 | Sources/CodeIsland/QwenView.swift:142-147 | Sources/CodeIsland/StepFunView.swift:115-120 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/CopilotView.swift\u0060 and \u0060Sources/CodeIsland/DexView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 133 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 \u0060Sources/CodeIsland/CopilotView.swift:146\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":"Sources/CodeIsland/CopilotView.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce350047cdb6a47a68947e7e59d03fb517934c2b88904ca9f99745efee77ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 17): Sources/CodeIsland/AiWorkView.swift:222-224 | Sources/CodeIsland/AntiGravityView.swift:126-128 | Sources/CodeIsland/BuddyView.swift:198-203 | Sources/CodeIsland/ClineView.swift:178-183 | Sources/CodeIsland/CopilotView.swift:179-181 | Sources/CodeIsland/CursorView.swift:197-199 | Sources/CodeIsland/DroidView.swift:176-181 | Sources/CodeIsland/GeminiView.swift:166-168 | Sources/CodeIsland/HermesView.swift:134-136 | Sources/CodeIsland/KimiView.swift:159-164 | Sources/CodeIsland/MiMoView.swift:194-196 | Sources/CodeIsland/OpenCodeView.swift:192-197 | Sources/CodeIsland/QoderView.swift:173-178 | Sources/CodeIsland/QwenView.swift:177-179 | Sources/CodeIsland/StepFunView.swift:126-128 | Sources/CodeIsland/TraeView.swift:169-174 | Sources/CodeIsland/WorkBuddyView.swift:118-120 \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 17 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/BuddyView.swift:198\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/BuddyView.swift:197\u0060 calls \u0060sin\u0060 and \u0060Sources/CodeIsland/AiWorkView.swift:222\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fab5c419cd397b0011e3e9d5796873632433fb5e7c16f9cdf9ed49d60fc28d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Sources/CodeIsland/AntiGravityView.swift:93-100 | Sources/CodeIsland/HermesView.swift:101-108 | Sources/CodeIsland/PiView.swift:99-106 | Sources/CodeIsland/StepFunView.swift:89-96 | Sources/CodeIsland/WorkBuddyView.swift:85-92 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/HermesView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 108 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 \u0060Sources/CodeIsland/AntiGravityView.swift:93\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea71d14fdce6cf759c27eb1684d4ccaf74fd1399b4896c83201148c3f79030f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/CodeIsland/AntiGravityView.swift:170-175 | Sources/CodeIsland/HermesView.swift:178-183 | Sources/CodeIsland/PiView.swift:173-178 | Sources/CodeIsland/StepFunView.swift:173-178 | Sources/CodeIsland/WorkBuddyView.swift:162-167 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/HermesView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 108 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 \u0060Sources/CodeIsland/AntiGravityView.swift:170\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb9d9e29a83fda82194730abec151e7084d263a3b75a0bfd26d3d71a269962f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/CodeIsland/Discovery/CopilotDiscovery.swift:27-32 | Sources/CodeIsland/Discovery/CursorDiscovery.swift:42-47 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:69-74 | Sources/CodeIsland/Discovery/KimiDiscovery.swift:25-30 | Sources/CodeIsland/Discovery/OpenCodeDiscovery.swift:77-82 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift\u0060 and \u0060Sources/CodeIsland/Discovery/CursorDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 50 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 \u0060Sources/CodeIsland/Discovery/CopilotDiscovery.swift:27\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":"Sources/CodeIsland/Discovery/CopilotDiscovery.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27f64df772a3eac8c443d4ec1ffda43701383e55916dc040b3142ca3e6fa0a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20136 lines \u00D7 6): Sources/CodeIsland/AntiGravityView.swift:143-148 | Sources/CodeIsland/HermesView.swift:151-156 | Sources/CodeIsland/PiView.swift:147-147 | Sources/CodeIsland/PiView.swift:148-148 | Sources/CodeIsland/StepFunView.swift:145-150 | Sources/CodeIsland/WorkBuddyView.swift:135-140 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/HermesView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 108 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 \u0060Sources/CodeIsland/AntiGravityView.swift:143\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060dy\u0060 to \u0060CGFloat = 0\u0060 in one and \u0060CGFloat\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"24315b2809cf8ae31d826cccb914ea8798d759ab042c545d5e0db06185e5386b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/CodeIsland/BuddyView.swift:171-179 | Sources/CodeIsland/CursorView.swift:173-181 | Sources/CodeIsland/OpenCodeView.swift:166-174 | Sources/CodeIsland/QoderView.swift:146-154 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/BuddyView.swift\u0060 and \u0060Sources/CodeIsland/CursorView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 139 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 \u0060Sources/CodeIsland/BuddyView.swift:171\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":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c136e1107915792e20d694b3bc992c85aa233846e9423a7bd5ce776acad1c616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/CodeIsland/ConfigInstaller.swift:798-803 | Sources/CodeIsland/ConfigInstaller.swift:818-823 | Sources/CodeIsland/ConfigInstaller.swift:917-922 | Sources/CodeIsland/ConfigInstaller.swift:938-943 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"09798894c301f3689acbc751125d4010a2995039db0b143970ffd45e4bae3b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/CodeIsland/ConfigInstaller.swift:796-801 | Sources/CodeIsland/ConfigInstaller.swift:893-898 | Sources/CodeIsland/ConfigInstaller.swift:915-920 | Sources/CodeIsland/ConfigInstaller.swift:936-941 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecde9feff35f629790fd2cdc47e050656ad8cbf3cfb4031329330602136f8b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/CodeIsland/Discovery/CodexDiscovery.swift:887-892 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:193-198 | Sources/CodeIsland/Discovery/FlatStoreDiscovery.swift:228-233 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/Discovery/CodexDiscovery.swift:887\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":"Sources/CodeIsland/Discovery/CodexDiscovery.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"5628a214e8e0c31c635748c30a74046a11423252bf250f098bee254ced3469b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/AntiGravityView.swift:117-122 | Sources/CodeIsland/WorkBuddyView.swift:109-114 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/WorkBuddyView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 119 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 \u0060Sources/CodeIsland/AntiGravityView.swift:117\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3e7cd7303c211baa94676086435703849ef5e9d5fb4e017d78e0eb2167e275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/AppState.swift:4515-4521 | Sources/CodeIsland/AppState.swift:4621-4626 \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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":4515}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d4f6cfcff3dc98332242c15a5ea42e66b1c5d599cbc7e70b9a5d35cb3e134d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/CodeIsland/ClineView.swift:57-72 | Sources/CodeIsland/KimiView.swift:57-72 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/ClineView.swift\u0060 and \u0060Sources/CodeIsland/KimiView.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 192 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 \u0060Sources/CodeIsland/ClineView.swift:57\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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8065e09b9354b3eb78875de60f2bc817e28a09f27593c34b3f30051dcdb162dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/DeepSeekView.swift:98-103 | Sources/CodeIsland/DeepSeekView.swift:130-135 \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 \u0060Sources/CodeIsland/DeepSeekView.swift:98\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":"Sources/CodeIsland/DeepSeekView.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0b2301fd4d92fafa6b81810c3b4bb9f0618d160c5757c7d20a8c03e7cf1270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/DexView.swift:192-197 | Sources/CodeIsland/PixelCharacterView.swift:178-185 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/DexView.swift:192\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":"Sources/CodeIsland/DexView.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd622a832e7bf433d33f577d7e783e06b63386e29f702288baee7d90167288cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/DexView.swift:207-212 | Sources/CodeIsland/PixelCharacterView.swift:213-218 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/DexView.swift:207\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Sources/CodeIsland/DexView.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2e3158a057b2b5df278dc54dcf901bb35833d50581a18d18b92a7fe8d922f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CodeIsland/GeminiView.swift:138-148 | Sources/CodeIsland/QwenView.swift:149-159 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/GeminiView.swift\u0060 and \u0060Sources/CodeIsland/QwenView.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 192 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 \u0060Sources/CodeIsland/GeminiView.swift:138\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":"Sources/CodeIsland/GeminiView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe89bacd7169d68b51d4e36bf15d66b3ee7f9589f7ad370b6017e9d641f0748"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:1432-1442 | Sources/CodeIsland/NotchPanelView.swift:1443-1453 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.leading\u0060 in one and \u0060.top\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d312731ea981f7e39a153ea99ea44170505b1d09ab2f2b9a344ed2be4fa6736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/ScreenDetector.swift:230-235 | Sources/CodeIsland/ScreenDetector.swift:246-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"Sources/CodeIsland/ScreenDetector.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91c275ed140a6701b459828bea95ad49ccf6e1f1e3a5485435a7274cff76c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 24): Sources/CodeIsland/AiWorkView.swift:64-69 | Sources/CodeIsland/AntiGravityView.swift:34-39 | Sources/CodeIsland/BuddyView.swift:34-39 | Sources/CodeIsland/ClineView.swift:34-39 | Sources/CodeIsland/CopilotView.swift:37-42 | Sources/CodeIsland/CursorView.swift:35-40 | Sources/CodeIsland/DeepSeekView.swift:36-41 | Sources/CodeIsland/DexView.swift:35-40 | Sources/CodeIsland/DroidView.swift:34-39 | Sources/CodeIsland/GeminiView.swift:34-39 | Sources/CodeIsland/HermesView.swift:33-38 | Sources/CodeIsland/KimiView.swift:33-38 | Sources/CodeIsland/KiroView.swift:36-41 | Sources/CodeIsland/MiMoView.swift:34-39 | Sources/CodeIsland/MinimaxView.swift:39-44 | Sources/CodeIsland/OpenClawView.swift:38-43 | Sources/CodeIsland/OpenCodeView.swift:34-39 | Sources/CodeIsland/PiView.swift:38-43 | Sources/CodeIsland/PixelCharacterView.swift:44-49 | Sources/CodeIsland/QoderView.swift:33-38 | Sources/CodeIsland/QwenView.swift:34-39 | Sources/CodeIsland/StepFunView.swift:33-38 | Sources/CodeIsland/TraeView.swift:35-40 | Sources/CodeIsland/WorkBuddyView.swift:33-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 24 call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060svgH\u0060 to \u0060CGFloat = 14\u0060 in one and \u0060CGFloat = 10\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a438360551b9fc8965bb4c2d422ea2f59afe35bffa098bbcdf23057c0288ca0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 20): Sources/CodeIsland/AiWorkView.swift:75-85 | Sources/CodeIsland/AntiGravityView.swift:45-55 | Sources/CodeIsland/BuddyView.swift:45-55 | Sources/CodeIsland/ClineView.swift:45-55 | Sources/CodeIsland/CopilotView.swift:48-58 | Sources/CodeIsland/CursorView.swift:49-59 | Sources/CodeIsland/DexView.swift:47-57 | Sources/CodeIsland/DroidView.swift:45-55 | Sources/CodeIsland/GeminiView.swift:45-55 | Sources/CodeIsland/HermesView.swift:44-54 | Sources/CodeIsland/KimiView.swift:44-54 | Sources/CodeIsland/MiMoView.swift:48-58 | Sources/CodeIsland/OpenCodeView.swift:45-55 | Sources/CodeIsland/PiView.swift:50-60 | Sources/CodeIsland/PixelCharacterView.swift:287-297 | Sources/CodeIsland/QoderView.swift:44-54 | Sources/CodeIsland/QwenView.swift:45-55 | Sources/CodeIsland/StepFunView.swift:44-54 | Sources/CodeIsland/TraeView.swift:46-56 | Sources/CodeIsland/WorkBuddyView.swift:44-54 \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 20 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f34a348ac530a58893e5167d5f9df54d9a78e4a7c8c7962d12e5ebda765de93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): Sources/CodeIsland/BuddyView.swift:284-294 | Sources/CodeIsland/ClineView.swift:259-269 | Sources/CodeIsland/CopilotView.swift:285-295 | Sources/CodeIsland/CursorView.swift:285-295 | Sources/CodeIsland/DexView.swift:304-314 | Sources/CodeIsland/DroidView.swift:262-272 | Sources/CodeIsland/GeminiView.swift:254-264 | Sources/CodeIsland/KimiView.swift:242-252 | Sources/CodeIsland/OpenCodeView.swift:273-283 | Sources/CodeIsland/PixelCharacterView.swift:381-391 | Sources/CodeIsland/QoderView.swift:254-264 | Sources/CodeIsland/QwenView.swift:263-273 | Sources/CodeIsland/TraeView.swift:252-262 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/BuddyView.swift\u0060 and \u0060Sources/CodeIsland/ClineView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 116 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 \u0060Sources/CodeIsland/BuddyView.swift:284\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":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae7c1d06e0102044be7448c4e620f6d391ec229a5e4cf7766270e3ece9e0ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): Sources/CodeIsland/ClineView.swift:182-186 | Sources/CodeIsland/CopilotView.swift:192-197 | Sources/CodeIsland/DexView.swift:207-212 | Sources/CodeIsland/GeminiView.swift:173-178 | Sources/CodeIsland/KimiView.swift:163-167 | Sources/CodeIsland/PixelCharacterView.swift:213-218 | Sources/CodeIsland/QwenView.swift:184-188 | Sources/CodeIsland/TraeView.swift:173-177 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/ClineView.swift\u0060 and \u0060Sources/CodeIsland/CopilotView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 141 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 \u0060Sources/CodeIsland/ClineView.swift:182\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/CopilotView.swift:201\u0060 calls \u0060drawLegs\u0060 and \u0060Sources/CodeIsland/ClineView.swift:191\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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffff2997988f445814cd2b20f5cae796c72148b7a03ed06e5f0ddade49bbd13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 15): Sources/CodeIsland/AiWorkView.swift:184-186 | Sources/CodeIsland/BuddyView.swift:161-163 | Sources/CodeIsland/ClineView.swift:138-142 | Sources/CodeIsland/CopilotView.swift:141-145 | Sources/CodeIsland/CursorView.swift:163-165 | Sources/CodeIsland/DexView.swift:147-151 | Sources/CodeIsland/DroidView.swift:135-137 | Sources/CodeIsland/GeminiView.swift:126-130 | Sources/CodeIsland/KimiView.swift:119-123 | Sources/CodeIsland/MiMoView.swift:175-177 | Sources/CodeIsland/OpenCodeView.swift:156-158 | Sources/CodeIsland/QoderView.swift:136-138 | Sources/CodeIsland/QwenView.swift:137-141 | Sources/CodeIsland/StepFunView.swift:111-113 | Sources/CodeIsland/TraeView.swift:129-133 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AiWorkView.swift\u0060 and \u0060Sources/CodeIsland/BuddyView.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 99 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"36101f81845f82fe53be6d6e7642ce5eef8a6a57c349ffab9f94c942ecdda0a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 14): Sources/CodeIsland/AntiGravityView.swift:161-162 | Sources/CodeIsland/BuddyView.swift:274-278 | Sources/CodeIsland/ClineView.swift:249-250 | Sources/CodeIsland/CursorView.swift:273-277 | Sources/CodeIsland/DroidView.swift:252-256 | Sources/CodeIsland/GeminiView.swift:243-244 | Sources/CodeIsland/HermesView.swift:169-170 | Sources/CodeIsland/KimiView.swift:231-232 | Sources/CodeIsland/OpenCodeView.swift:264-268 | Sources/CodeIsland/QoderView.swift:245-249 | Sources/CodeIsland/QwenView.swift:252-253 | Sources/CodeIsland/StepFunView.swift:164-165 | Sources/CodeIsland/TraeView.swift:241-242 | Sources/CodeIsland/WorkBuddyView.swift:153-154 \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 14 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/BuddyView.swift:274\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/BuddyView.swift:274\u0060 calls \u0060color\u0060, \u0060opacity\u0060, \u0060max\u0060 and \u0060Sources/CodeIsland/AntiGravityView.swift:161\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6ab86d3d21a6efe96ac029dd3ff56535a6f83d7759ed56a5c913e3cf13ed56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/CodeIsland/ClineView.swift:154-160 | Sources/CodeIsland/GeminiView.swift:144-150 | Sources/CodeIsland/KimiView.swift:135-141 | Sources/CodeIsland/QwenView.swift:155-161 | Sources/CodeIsland/TraeView.swift:145-151 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/ClineView.swift\u0060 and \u0060Sources/CodeIsland/GeminiView.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 162 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 \u0060Sources/CodeIsland/ClineView.swift:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/GeminiView.swift:142\u0060 calls \u0060truncatingRemainder\u0060, \u0060sin\u0060 and \u0060Sources/CodeIsland/ClineView.swift:153\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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a231c56e571cc0b1b191e1f685bf15a6a0d813e8bb5f0a861e93aa1542060f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sources/CodeIsland/ConfigInstaller.swift:3456-3461 | Sources/CodeIsland/ConfigInstaller.swift:3476-3480 | Sources/CodeIsland/ConfigInstaller.swift:3522-3526 | Sources/CodeIsland/RemoteInstaller.swift:383-391 | Sources/CodeIsland/RemoteInstaller.swift:395-403 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/ConfigInstaller.swift:3456\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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3456}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f65b773e548c5ae15086c9c958c82d5932f0903c9901af56068bffb0bc4074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/CodeIsland/AntiGravityView.swift:150-154 | Sources/CodeIsland/HermesView.swift:158-162 | Sources/CodeIsland/PiView.swift:154-158 | Sources/CodeIsland/WorkBuddyView.swift:142-146 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/HermesView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 108 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 \u0060Sources/CodeIsland/AntiGravityView.swift:150\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec676305601135efcd7e3e402ec1699ab9238c1c0c9e06b6c41038ac72c6859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): windows/CodeIsland.Windows/SettingsWindow.xaml.cs:44-56 | windows/CodeIsland.Windows/SettingsWindow.xaml.cs:65-69 | windows/CodeIsland.Windows/SettingsWindow.xaml.cs:75-82 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060windows/CodeIsland.Windows/SettingsWindow.xaml.cs:44\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/SettingsWindow.xaml.cs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"139d864efaa0ffd50342b8ecfcda7faf4a99af51b81b69feef3b7a3fe4d8c234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/CodeIsland/AntiGravityView.swift:117-121 | Sources/CodeIsland/MinimaxView.swift:119-123 | Sources/CodeIsland/WorkBuddyView.swift:109-113 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/WorkBuddyView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 119 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 \u0060Sources/CodeIsland/AntiGravityView.swift:117\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7edfb8949ddc4bde62b496a88c70cebbc74667e3f5d8f2d97b501b9874be19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/CodeIsland/HostHarnessSupport.swift:69-73 | Sources/CodeIsland/ProcessTable.swift:27-31 | Sources/CodeIslandBridge/main.swift:81-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/HostHarnessSupport.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e37a6f480bea4e4864964d774496ba5bb8d72ac050d1799485aef12bf60712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/CodeIsland/ProcessTable.swift:98-102 | Sources/CodeIsland/TerminalActivator.swift:448-452 | Sources/CodeIslandBridge/main.swift:88-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ProcessTable.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f044a3432aa2bca6a6ca951a602ea3185a0625fa13dd36e09b5c8571c439762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/CodeIsland/ScreenDetector.swift:230-234 | Sources/CodeIsland/ScreenDetector.swift:246-250 | Sources/CodeIsland/TerminalVisibilityDetector.swift:287-292 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/TerminalVisibilityDetector.swift:287\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ScreenDetector.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad26a0e8eeb10407bd43e960d675c30d9658b98c772e5c959344631d64929692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/AiWorkView.swift:194-198 | Sources/CodeIsland/MiMoView.swift:152-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/AiWorkView.swift:194\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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ede6e37e74f6b432e12dbb1cdc058a4f5b88dbc2d8d96d82e2c3e26a145313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/AiWorkView.swift:229-234 | Sources/CodeIsland/MiMoView.swift:200-204 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/AiWorkView.swift:229\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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc146a4ad51226d614bbd49be2185d2a1084653384685c7518844463501810c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 4): Sources/CodeIsland/ClineView.swift:160-164 | Sources/CodeIsland/KimiView.swift:141-145 | Sources/CodeIsland/QwenView.swift:160-161 | Sources/CodeIsland/TraeView.swift:150-151 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/ClineView.swift\u0060 and \u0060Sources/CodeIsland/KimiView.swift\u0060 as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 192 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 \u0060Sources/CodeIsland/ClineView.swift:160\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/ClineView.swift:160\u0060 calls \u0060drawLegs\u0060 and \u0060Sources/CodeIsland/QwenView.swift:160\u0060 does not \u2014 after which the two agree again for 5 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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8632c3f59c793d19a5088b27e4229e2801b58a4ed4434a91a3feaf023bff5ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/CodexPermissionRules.swift:386-391 | Sources/CodeIsland/NotchPanelView.swift:1630-1635 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/CodexPermissionRules.swift:386\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"42515b002fd9074bf1cb192bfa9d6bc9d5be72c7810a34ccdd538bfb4213c847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CodeIsland/ConfigInstaller.swift:206-212 | Sources/CodeIsland/ConfigInstaller.swift:265-271 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a973dd5e2c3cbc2bb6c3714b2a25852f225cb718094eb8c642bdac6d0dd2c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/ConfigInstaller.swift:1780-1784 | Sources/CodeIsland/ConfigInstaller.swift:1796-1800 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"d500ab7f239890456c44d3598bdcfaf491866fd72c7dd3dc60b405a7c8775acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 3): Sources/CodeIsland/CopilotView.swift:274-278 | Sources/CodeIsland/DexView.swift:292-298 | Sources/CodeIsland/PixelCharacterView.swift:352-353 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/CopilotView.swift\u0060 and \u0060Sources/CodeIsland/DexView.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 133 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 \u0060Sources/CodeIsland/CopilotView.swift:274\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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CodeIsland/CopilotView.swift:274\u0060 calls \u0060color\u0060, \u0060opacity\u0060 and \u0060Sources/CodeIsland/PixelCharacterView.swift:352\u0060 does not \u2014 after which the two agree again for 5 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":"Sources/CodeIsland/CopilotView.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"4261901443f23f0f4f246373a5092eeea3e2f4941653a948caef2c1ce0152007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/KiroView.swift:104-109 | Sources/CodeIsland/MinimaxView.swift:126-131 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/KiroView.swift:104\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":"Sources/CodeIsland/KiroView.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0b8de9ee5715bb360b315e77a55fd0b1dcae8ff38f83210165d33259d77e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): Sources/CodeIsland/NotchPanelView.swift:1402-1406 | Sources/CodeIsland/NotchPanelView.swift:1433-1436 | Sources/CodeIsland/NotchPanelView.swift:1443-1446 | Sources/CodeIsland/NotchPanelView.swift:1491-1495 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/NotchPanelView.swift:1402\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.top\u0060 in one and \u0060.leading\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CodeIsland/NotchPanelView.swift:1406\u0060 calls \u0060Text\u0060 and \u0060Sources/CodeIsland/NotchPanelView.swift:1446\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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b79571e453ae157cf29135da86a78161194d5a419a644f96e59c64d51870fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CodeIsland/NotchPanelView.swift:4807-4812 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1234-1239 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":4807}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b72a869f05c18d4d4f3490927bf0f4741b358a1767209182bd1dc9cac0948f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/SettingsView.swift:2800-2804 | Sources/CodeIsland/SettingsView.swift:2822-2826 \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":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":2800}}}],"partialFingerprints":{"codehealthFindingId/v1":"44033331ebf14f696bd353919fd711eac6b8c21afb3e1e9b8214ff9065326766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): Sources/CodeIsland/SettingsView.swift:2907-2911 | Sources/CodeIsland/SettingsView.swift:2947-2950 | Sources/CodeIsland/SettingsView.swift:2994-2998 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/SettingsView.swift:2907\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":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":2907}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd63621518d5793abf80938daff5e836946d21284457fdf357c27ade3d06557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIslandCore/SessionSnapshot.swift:2456-2460 | Sources/CodeIslandCore/SessionSnapshot.swift:2480-2484 \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 \u0060Sources/CodeIslandCore/SessionSnapshot.swift:2456\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, \u0060Sources/CodeIslandCore/SessionSnapshot.swift:2455\u0060 calls \u0060Date\u0060 and \u0060Sources/CodeIslandCore/SessionSnapshot.swift:2479\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":2456}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e4e34acda06320309819d99dbc40f2d04182531708adcb209c7b10d9623263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift:289-293 | ios/CodeIslandCompanion/CodeIslandWatchApp/WatchConnection.swift:181-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift:289\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":"ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf60fae432749bdf19536561e059e906247fa9f949d6f31a2f267ee9fccf9976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:272-276 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:295-299 \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 \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:272\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:278\u0060 calls \u0060overlay\u0060, \u0060RoundedRectangle\u0060, \u0060stroke\u0060 and \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:301\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":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b0d8f6b53fbe99b13977bd689eeaa14bdc1aaad4d057abd20c48a7acef0b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:394-399 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1291-1296 \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 \u0060ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:394\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":"ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"10de9ab69d56681977e5f27ef7a933ee084f72077d6eb4abc99e3105cde8e595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 21): Sources/CodeIsland/AiWorkView.swift:48-58 | Sources/CodeIsland/AntiGravityView.swift:19-29 | Sources/CodeIsland/BuddyView.swift:19-29 | Sources/CodeIsland/ClineView.swift:20-30 | Sources/CodeIsland/CopilotView.swift:20-30 | Sources/CodeIsland/CursorView.swift:20-30 | Sources/CodeIsland/DeepSeekView.swift:19-29 | Sources/CodeIsland/DexView.swift:18-28 | Sources/CodeIsland/DroidView.swift:19-29 | Sources/CodeIsland/GeminiView.swift:19-29 | Sources/CodeIsland/HermesView.swift:18-28 | Sources/CodeIsland/KimiView.swift:19-29 | Sources/CodeIsland/MiMoView.swift:19-29 | Sources/CodeIsland/OpenCodeView.swift:19-29 | Sources/CodeIsland/PiView.swift:19-32 | Sources/CodeIsland/PixelCharacterView.swift:17-27 | Sources/CodeIsland/QoderView.swift:18-28 | Sources/CodeIsland/QwenView.swift:19-29 | Sources/CodeIsland/StepFunView.swift:18-28 | Sources/CodeIsland/TraeView.swift:20-30 | Sources/CodeIsland/WorkBuddyView.swift:18-28 \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 21 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b72b2a456eab51d5700a3b1684a0e970b2b50e3023a7a118a8914ff0e35d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 14): Sources/CodeIsland/AiWorkView.swift:166-175 | Sources/CodeIsland/BuddyView.swift:143-152 | Sources/CodeIsland/ClineView.swift:119-128 | Sources/CodeIsland/CopilotView.swift:122-131 | Sources/CodeIsland/CursorView.swift:145-154 | Sources/CodeIsland/DexView.swift:128-137 | Sources/CodeIsland/DroidView.swift:117-126 | Sources/CodeIsland/GeminiView.swift:107-116 | Sources/CodeIsland/KimiView.swift:100-109 | Sources/CodeIsland/MiMoView.swift:141-150 | Sources/CodeIsland/OpenCodeView.swift:138-147 | Sources/CodeIsland/QoderView.swift:118-127 | Sources/CodeIsland/QwenView.swift:118-127 | Sources/CodeIsland/TraeView.swift:110-119 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AiWorkView.swift\u0060 and \u0060Sources/CodeIsland/BuddyView.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 99 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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e846db1a29e11ac32be5c216523cfc3b0a812e2fd025a8f4f7e76da5e9f1b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CodeIsland/AppleCompanionPublisher.swift:213-219 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift:499-505 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppleCompanionPublisher.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"b805b8f2896b77bf69abb6099c177bb03efe3b5bc334094bcb4cffbd15a0d217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): Sources/CodeIsland/ClineView.swift:211-219 | Sources/CodeIsland/CopilotView.swift:227-235 | Sources/CodeIsland/CursorView.swift:233-241 | Sources/CodeIsland/DexView.swift:244-252 | Sources/CodeIsland/DroidView.swift:209-217 | Sources/CodeIsland/GeminiView.swift:204-212 | Sources/CodeIsland/KimiView.swift:193-201 | Sources/CodeIsland/OpenCodeView.swift:225-233 | Sources/CodeIsland/QoderView.swift:206-214 | Sources/CodeIsland/QwenView.swift:214-222 | Sources/CodeIsland/TraeView.swift:203-211 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/ClineView.swift\u0060 and \u0060Sources/CodeIsland/CopilotView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 141 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":"Sources/CodeIsland/ClineView.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fe3b198302444df0c647cc10ea392633e3ae92e342ee3bc694df07955278b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/NotchAnimation.swift:24-32 | ios/CodeIslandCompanion/CodeIslandCompanion/ContentView.swift:1562-1566 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/NotchAnimation.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96086a8ff52c2baa6745dfea0e5affa4be06a08ffdeab5bab8db8103dd91ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/CodeIslandCore/AppleCompanionPayload.swift:10-18 | Sources/CodeIslandCore/ESP32Protocol.swift:278-286 \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":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e320823ce56518fe9d233c3693295387fa3ea10c1c435f7d406e2a7a3257c83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIslandCore/HookIntake.swift:711-715 | Sources/CodeIslandCore/SubsessionRouter.swift:359-363 \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":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"142f956c2a393ffe26cbdc4b3d238628b268ae38aa9fdf23024cc4eed76f61b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/PushNotifier.swift:243-247 | Sources/CodeIsland/SoundManager.swift:165-169 \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":"Sources/CodeIsland/PushNotifier.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcd8747bf3b2c2ceb69a6cb48822e8438f645c7bf6439b38ffb9c95e394a31a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/SessionTitleStore.swift:147-151 | Sources/CodeIslandCore/CoworkAuditLog.swift:180-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SessionTitleStore.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cb7ec1c141fc978cec323759f0603eef0d176fb5852fec629f60377b2d5d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/CodeIsland/AntiGravityView.swift:163-168 | Sources/CodeIsland/HermesView.swift:171-176 | Sources/CodeIsland/StepFunView.swift:166-171 | Sources/CodeIsland/WorkBuddyView.swift:155-160 \u2014 before extracting anything, compare \u0060Sources/CodeIsland/AntiGravityView.swift\u0060 and \u0060Sources/CodeIsland/HermesView.swift\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 108 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 \u0060Sources/CodeIsland/AntiGravityView.swift:163\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":"Sources/CodeIsland/AntiGravityView.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f356626d92283b1e5f06d4c06176ae60313d5ba11c818a7dcc84ff993ee8d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/CodeIsland/AppState\u002BClaudeTerminalMetadata.swift:55-59 | Sources/CodeIsland/Discovery/SessionDiscovery\u002BConfigRoots.swift:42-46 | Sources/CodeIsland/HostHarnessSupport.swift:76-80 | Sources/CodeIsland/ProcessTable.swift:56-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. 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":"Sources/CodeIsland/AppState\u002BClaudeTerminalMetadata.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"987266f56422582ae1ddefcec4874523ef931d3ad6bb55f7e2742954fd729c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/BuddyView.swift:102-106 | Sources/CodeIsland/BuddyView.swift:112-116 \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 \u0060Sources/CodeIsland/BuddyView.swift:102\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":"Sources/CodeIsland/BuddyView.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"480304e08903e312e0a38a565ed5aee0c7651986cb4310397638abf86a2a0b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIsland/KiroView.swift:87-91 | Sources/CodeIsland/MinimaxView.swift:111-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CodeIsland/KiroView.swift:87\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":"Sources/CodeIsland/KiroView.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ab605f3690b5ca6375095d54fe7c6a5bd8479b04f1d85ea4fb7327b41177e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIslandCore/AppleCompanionPayload.swift:176-180 | ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift:245-249 \u2014 before extracting anything, compare \u0060Sources/CodeIslandCore/AppleCompanionPayload.swift\u0060 and \u0060ios/CodeIslandCompanion/CodeIslandCompanion/CompanionModels.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AppleCompanionPayload.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6043ca7f9c139a7dcc0dd4d03745a16189ad17d171de8dbf0daaa890cc1d2a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CodeIslandCore/SessionSnapshot.swift:976-980 | Sources/CodeIslandCore/SessionSnapshot.swift:1015-1019 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94a466503c826821eec1874af890ff2841bde437d1cd50f20bcf06897cf38a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:174-178 | ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:431-435 \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 \u0060ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00605\u0060 in one and \u00601\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanionWidget/CodeIslandLiveActivityWidget.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf69d1411f9e5abce7eb35cd5adac40ae829dc755dd54af2e01706dc6c40d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): ios/CodeIslandCompanion/Shared/CodeIslandActivityAttributes.swift:17-25 | ios/CodeIslandCompanion/Shared/CodeIslandActivityAttributes.swift:47-55 | ios/CodeIslandCompanion/Shared/CodeIslandActivityAttributes.swift:61-69 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/Shared/CodeIslandActivityAttributes.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5066cffb499584955ca6bceb6c4f55ce07f0ff840ac54ad2eb60ea07088e6dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 10): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:137-149 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:259-271 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:351-363 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:425-437 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:503-515 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:575-587 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:644-656 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:706-718 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:772-784 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:833-845 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:365\u0060 calls \u0060sin\u0060 and \u0060android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:589\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":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"782d8ed8b66b13b25e83d674fed98300fd643e80057284d11aa11db0adc26f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:378-383 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:529-534 \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 \u0060android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:378\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":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"2780a3e7c2d6ebb184bf216460c337b8b18ed16605fefe1104ebc26ec4ffc67b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:301-307 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:380-386 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:531-537 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:301\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":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd67d2504e4f77325affb550adf6cfaeb6b4a999bd6c19d669f11c2c1285d59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:310-314 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:464-468 \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":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca139f19d319fa4061c82e6af8883e2fd256714c10a71f55c0462bf755173c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:540-545 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:612-617 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:675-680 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:740-745 | android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt:801-806 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android-watch/app/src/main/java/com/codeisland/buddywatch/BuddyMascotView.kt"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb48aa813d3f9ca2f466246e1450c37582b633f1072af9151d42e3badfb12ed"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: CodeIslandCore: CodeIslandCore: abstractness 0.01, instability 0.00, distance 0.99 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"99273a6ea8298b21ed609094c9adae97110dfe23187ea5d22628f0b728d8094f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppState (LCOM4 6): AppState\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29a13d9dce0e5fd4d0f35de41eadc5f6427f79e4b8d9602d3c11ccbce9532c4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainWindow (LCOM4 4): MainWindow\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/MainWindow.xaml.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa33d3f4d51620f7d041b6464b3e43ed24a20a05a3ed9a7150ea4adb0b81ac65"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppleCompanionPublisher (LCOM4 4): AppleCompanionPublisher\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppleCompanionPublisher.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e225774895be625b22ad341b3cf4f4f0b700ac0f66ae17a8fd9b6395d7899dbe"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StatusItemController (LCOM4 4): StatusItemController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/StatusItemController.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"4873cb1f2c81dc94f0b5885474fa4962f32cf6846a29d2ef48ca068edaf9d1ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandCore/SessionSnapshot.swift: Sources/CodeIslandCore/SessionSnapshot.swift changed 48 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 163 in SessionSnapshot.swift.applyHookEvent at line 1229. 28 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/SessionSnapshot.swift\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":"Sources/CodeIslandCore/SessionSnapshot.swift"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d45277cf98514ea2efb3982ccdfe31626012088ed8f877adf4f145e91cb77c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/AppState.swift: Sources/CodeIsland/AppState.swift changed 118 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in AppState.handleEvent at line 1664. 70 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppState.swift\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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"02422adb8ba8f026af743f89de7117d5a9dff8aec11cec684ac4745cb890800f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/NotchPanelView.swift: Sources/CodeIsland/NotchPanelView.swift changed 68 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in NotchPanelView.body at line 255. 35 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/NotchPanelView.swift\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":"Sources/CodeIsland/NotchPanelView.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1a290b60c11de21712788e50d71981d1955efd24aa4fc6aadbfa8d6747c8f7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/ConfigInstaller.swift: Sources/CodeIsland/ConfigInstaller.swift changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in ConfigInstaller.installExternalHooks at line 1753. 31 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/ConfigInstaller.swift\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":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63deb6034ca62de8bee39766bc7052101f5e3fc51d75e980173d7da3881080e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandCore/Models.swift: Sources/CodeIslandCore/Models.swift changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in CLIProcessResolver.sourceMatchesExecutablePath at line 62. 15 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/Models.swift\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":"Sources/CodeIslandCore/Models.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a562c40945acc88f30ba8ef88d9230315332f8ce3d58b574f454e562b9c642"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/TerminalActivator.swift: Sources/CodeIsland/TerminalActivator.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in TerminalActivator.activateTerminal at line 218. 9 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/TerminalActivator.swift\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":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4498eff846c5dc7c65275d741d93f3915edd39c62ce7346167549b83b62d439"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/HookServer.swift: Sources/CodeIsland/HookServer.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in HookServer.processRequest at line 534. 21 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/HookServer.swift\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":"Sources/CodeIsland/HookServer.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"d495b2543a3645ee51605ac8644e6ba48743df3dd77ced9f4129d53a875956f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/SettingsView.swift: Sources/CodeIsland/SettingsView.swift changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in HooksPage.body at line 827. 12 of those changes were fix/bug commits, and the other 25 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/SettingsView.swift\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":"Sources/CodeIsland/SettingsView.swift"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"320c9755fbe3406d69114cd84df845c7b665a138e7e5edc3a46f59508259ed97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/AppState\u002BCoworkWatch.swift: Sources/CodeIsland/AppState\u002BCoworkWatch.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in AppState.applyCoworkUpdate at line 239. 9 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppState\u002BCoworkWatch.swift\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":"Sources/CodeIsland/AppState\u002BCoworkWatch.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"019c3941090720f8c33cf3facb22e3fb40944cf04f46cbd64b6142a899eacb60"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandBridge/main.swift: Sources/CodeIslandBridge/main.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in main.swift.top-level code at line 28. 12 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandBridge/main.swift\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":"Sources/CodeIslandBridge/main.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c8a93164a9a08d4db582ede53d6365b0815cbd9be409dc5d0441562e785554"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandCore/HookIntake.swift: Sources/CodeIslandCore/HookIntake.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 83 in HookIntake.init at line 225. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/HookIntake.swift\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":"Sources/CodeIslandCore/HookIntake.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78fcb0aa8718cbbc47974adba22305a7c0485a5970960f94d16cbc89626d672"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/Resources/codeisland-omp.ts: Sources/CodeIsland/Resources/codeisland-omp.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in codeisland-omp.codeislandExtension at line 494. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/Resources/codeisland-omp.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1fcf4030f666536b883db6e507e59e6c8c1e7f63818e9ab12cfe9848042c8a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/AppDelegate.swift: Sources/CodeIsland/AppDelegate.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in AppDelegate.applicationDidFinishLaunching at line 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppDelegate.swift\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":"Sources/CodeIsland/AppDelegate.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1feaba2d1f764f5ae9a8c40af744dee86582260167e347c5eb4157fdfa087a38"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/AppState\u002BTranscriptTailer.swift: Sources/CodeIsland/AppState\u002BTranscriptTailer.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in AppState.attachTranscriptTailerIfNeeded at line 23. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppState\u002BTranscriptTailer.swift\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":"Sources/CodeIsland/AppState\u002BTranscriptTailer.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c314419b8b4253954dcf16000c3621311ea654d91e5a42fafda20fc59bfb0ef9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/Resources/codeisland-remote-hook.py: Sources/CodeIsland/Resources/codeisland-remote-hook.py changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in codeisland-remote-hook.main at line 669. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/Resources/codeisland-remote-hook.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"a923233af20cbe3fba578df3c8babb67ffe6a47107f4b49fb0b809fb0bd0e983"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandCore/JSONLTailer.swift: Sources/CodeIslandCore/JSONLTailer.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in JSONLTailer.apply at line 537. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/JSONLTailer.swift\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":"Sources/CodeIslandCore/JSONLTailer.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5aef2bb63f20d6352c06610584c388841858ae0eef50991cbff49fc383da551"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/AppState\u002BAiWorkWatch.swift: Sources/CodeIsland/AppState\u002BAiWorkWatch.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in AppState.handleAiWorkStreamEvent at line 324. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppState\u002BAiWorkWatch.swift\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":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f538839b689d5da9d3e909984b41542828f3bf5a543425f49caf2c50e5759a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/Resources/codeisland-pi.ts: Sources/CodeIsland/Resources/codeisland-pi.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in codeisland-pi.codeislandExtension at line 366. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/Resources/codeisland-pi.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-pi.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7cc3b12519af5200a6f4823d1972a9a487b92a05ce96b248bb422546fcff53"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/TerminalVisibilityDetector.swift: Sources/CodeIsland/TerminalVisibilityDetector.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in TerminalVisibilityDetector.liveIsSessionTabVisible at line 147. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/TerminalVisibilityDetector.swift\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":"Sources/CodeIsland/TerminalVisibilityDetector.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddf0cce0527071e3c1641a4bd0b2e34a2dcac8005fd8aa4688b22d8b6ea0876"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/AppState\u002BCodexAppServer.swift: Sources/CodeIsland/AppState\u002BCodexAppServer.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in AppState.applyCodexRequestUserInput at line 273. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppState\u002BCodexAppServer.swift\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":"Sources/CodeIsland/AppState\u002BCodexAppServer.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabb60cb3b70b0806d8813b6696305edf233ef7a43de2fcc19f115680c1e3fc9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandCore/AgentTaskList.swift: Sources/CodeIslandCore/AgentTaskList.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in AgentTaskList.apply at line 333. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/AgentTaskList.swift\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":"Sources/CodeIslandCore/AgentTaskList.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"18493dda967f55da04c7b015292584850f1ae16d9b1b10c90b618ff0e22653fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandCore/SubsessionRouter.swift: Sources/CodeIslandCore/SubsessionRouter.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SubsessionRouter.placement at line 102. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/SubsessionRouter.swift\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":"Sources/CodeIslandCore/SubsessionRouter.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c6c4d1445099cec505b411eb2b02b553cd8665da24906081ca277b070ba4a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/PushNotifier.swift: Sources/CodeIsland/PushNotifier.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in PushNotifier.decide at line 298. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/PushNotifier.swift\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":"Sources/CodeIsland/PushNotifier.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b58f34f6810662bd1ae79e69da17f710bd59a62d8068971591c3bb7f6649c13"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandCore/PushNotification.swift: Sources/CodeIslandCore/PushNotification.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in PushMessageFormatter.lines at line 297. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/PushNotification.swift\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":"Sources/CodeIslandCore/PushNotification.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b898e82ca7852f9be6113cbff34b786bd08a274afe6dfa7d0343edae150dee9a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIslandCore/CodexThreadSubsession.swift: Sources/CodeIslandCore/CodexThreadSubsession.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in CodexThreadSubsession.link at line 128. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/CodexThreadSubsession.swift\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":"Sources/CodeIslandCore/CodexThreadSubsession.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9354296ea6d328654e3d18795e2eb66f45316a17a13f97fab50dd9caee19150c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CodeIsland/AppState\u002BSessionMetadata.swift: Sources/CodeIsland/AppState\u002BSessionMetadata.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AppState.maybeBackfillSubagentModel at line 44. 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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppState\u002BSessionMetadata.swift\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":"Sources/CodeIsland/AppState\u002BSessionMetadata.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d8011890fda66c70b02ef91d6264cc4c5ac636da045317cee4d768bbb1bd96"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/RemoteInstaller.swift: Sources/CodeIsland/RemoteInstaller.swift changed 20 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 8 (its worst body is RemoteInstaller.installAll 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(remote): the socket check waits for the forward, and a healthy host never fails it\u201D; \u201Cfix(remote): the shared socket gets its mode on Linux hosts before glibc 2.32\u201D; \u201Cfix(remote): nothing in a host\u0027s name, id or socket path runs on the host\u201D; \u201Cfix(remote): ssh never reads a host\u0027s fields as options of its own\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/RemoteInstaller.swift\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":"Sources/CodeIsland/RemoteInstaller.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e8d8a7189179f38385bacd6e65c59abea758b857750bdd6cab0f10baf88479"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/HookSocket.swift: Sources/CodeIsland/HookSocket.swift changed 11 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 10 (its worst body is HookConnection.readAvailable at line 662), 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(hooks): a second island leaves the first its socket and quits\u201D; \u201Cfix(remote): a remote host gets a bounded share of the island\u0027s sockets\u201D; \u201Cfix(remote): each remote host\u0027s hooks arrive on a socket of its own, which names the host\u201D; \u201Cfix(hooks): the listener checks its path before removing anything\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/HookSocket.swift\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":"Sources/CodeIsland/HookSocket.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"848a6e5307d36d1f02eb5f3b0e006ae6d13eb74e94920b4a7f944429a72592ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/PanelWindowController.swift: Sources/CodeIsland/PanelWindowController.swift changed 11 times in last 90 days and 8 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 PanelWindowController.setupHorizontalDragMonitor at line 619), 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(question): a half-typed answer survives the island moving to another display\u201D; \u201Cfix(panel): the island changes display only through a rebuild for that display\u201D; \u201Cfix(display): a pinned display is remembered by its identity, not its place\u201D; \u201Cfix(shortcuts): a shortcut brings the island to the user before it acts\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/PanelWindowController.swift\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":"Sources/CodeIsland/PanelWindowController.swift"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a7ebbe49479cd0ad0c39bdc670ec024ef6249e3a0bfb257d4f0ebcb3eef08f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/FollowUpReminderController.swift: Sources/CodeIsland/FollowUpReminderController.swift changed 11 times in last 90 days and 8 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 FollowUpReminderController.perform at line 398), 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(reminders): every session\u0027s failed-turn reminder rings\u201D; \u201Cfix(aiwork): an aborted stream is no longer chased as finished\u201D; \u201Cfix(sound): keep event sounds on while only the displays sleep\u201D; \u201Cfix(reminders): follow up a failed turn with the error sound, not \u0022done\u0022\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/FollowUpReminderController.swift\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":"Sources/CodeIsland/FollowUpReminderController.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c47233e632dd5aed4df56a6d564c55a995cf27f4a74ba747da61a93a66a850"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/RemoteManager.swift: Sources/CodeIsland/RemoteManager.swift changed 8 times in last 90 days and 8 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 RemoteManager.connectInternal at line 166), 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(remote): the socket check waits for the forward, and a healthy host never fails it\u201D; \u201Cfix(remote): ssh never reads a host\u0027s fields as options of its own\u201D; \u201Cfix(remote): a host without an id never connects, and its socket stamps nothing\u201D; \u201Cfix(remote): the hosts\u0027 sockets on this Mac live in the user\u0027s own temporary folder\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/RemoteManager.swift\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":"Sources/CodeIsland/RemoteManager.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e33da3ac21d2aeb361faa6cf44f77b1e1acb05a08a1243a7f1a73c7852de2a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIslandCore/SubsessionLink.swift: Sources/CodeIslandCore/SubsessionLink.swift changed 9 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is SubsessionCards.samePidCard at line 181), 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(remote): a remote session\u0027s pid, transcript and terminal never act on this Mac\u201D; \u201Cfix(subsessions): a process id is only matched on the hook\u0027s own host\u201D; \u201Cfix(reducer): a \u0060_ppid\u0060 past pid_t\u0027s range is ignored, never trapped on\u201D; \u201Cfix(codex): a grandchild filed under its parent thread joins the card its parent is on\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/SubsessionLink.swift\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":"Sources/CodeIslandCore/SubsessionLink.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"624f6c8f05895b0c11f4a19672d3a0ac2f8f28afe4f38a1df427c99f6ddd4520"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/AppState\u002BToolUseCache.swift: Sources/CodeIsland/AppState\u002BToolUseCache.swift changed 8 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is AppState.step at line 175), 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(approval): Codex \u0022Always\u0022 holds for the session it was clicked in\u201D; \u201Cfix(permission): a request answered in the Claude app goes when its call finishes (#389)\u201D; \u201Cfix(approvals): a tool_use_id names a request only within its own card\u201D; \u201Cfix(approvals): a session ending drops its requests without deciding them\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppState\u002BToolUseCache.swift\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":"Sources/CodeIsland/AppState\u002BToolUseCache.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3572d82d4529b9ca7979feaedacce9a3760d770e833d76079e4a4582a4358c13"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/MarkdownReplyView.swift: Sources/CodeIsland/MarkdownReplyView.swift changed 8 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is MarkdownBlockView.body at line 430), 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(reply): links in any session\u0027s reply open only on the web\u201D; \u201Cfix(remote): links in a remote session\u0027s reply open only on the web\u201D; \u201Cfix(a11y): lift dim panel text to WCAG AA contrast\u201D; \u201Cfix(question): scroll a long option list so the buttons stay reachable\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/MarkdownReplyView.swift\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":"Sources/CodeIsland/MarkdownReplyView.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf06d1a766bba9c1a7367900999019c2fedfea87815f0d02bbc49f6825a2eb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIslandCore/CursorSessionFolding.swift: Sources/CodeIslandCore/CursorSessionFolding.swift changed 8 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 13 (its worst body is CursorSubsessionRouter.choosePpidFallbackParentId at line 222), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(remote): a remote session\u0027s pid, transcript and terminal never act on this Mac\u201D; \u201Cfix(subsessions): a process id is only matched on the hook\u0027s own host\u201D; \u201Cfix(reducer): a \u0060_ppid\u0060 past pid_t\u0027s range is ignored, never trapped on\u201D; \u201Cfix(cursor): show the Claude Code hooks Cursor runs as Cursor\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/CursorSessionFolding.swift\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":"Sources/CodeIslandCore/CursorSessionFolding.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e804152b08e02e4983e1fb91e71f06a03a06949b8ee5f8506b463bba4dd6d558"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/Models.swift: Sources/CodeIsland/Models.swift changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is AskUserQuestionState.accepts at line 62), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(question): a half-typed answer survives the island moving to another display\u201D; \u201Cfix(approval): Codex \u0022Always\u0022 holds for the session it was clicked in\u201D; \u201Cfix(hooks): a hook that goes takes only its own request\u201D; \u201Cfix(reminders): key a waiting item\u0027s reminders to its request\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/Models.swift\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":"Sources/CodeIsland/Models.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b1f43a85f043a132cdf57a35dcf9b10e8b11b69bfc021ad8702f5ed3242527"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIslandCore/FollowUpReminderScheduler.swift: Sources/CodeIslandCore/FollowUpReminderScheduler.swift changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is FollowUpReminderScheduler.collectDue at line 361), 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(sound): keep event sounds on while only the displays sleep\u201D; \u201Cfix(reminders): follow up a failed turn with the error sound, not \u0022done\u0022\u201D; \u201Cfix(reminders): let a reminder kept off the Mac still reach the phone when away\u201D; \u201Cfix(reminders): postpone a reminder the user is in front of instead of silencing it\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/FollowUpReminderScheduler.swift\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":"Sources/CodeIslandCore/FollowUpReminderScheduler.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"035ce779a43713cce09542c863b47d35d4e28ed46e872be2d054630553372ddd"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/SSHForwarder.swift: Sources/CodeIsland/SSHForwarder.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is SSHForwarder.startTunnel at line 68), 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(remote): nothing in a host\u0027s name, id or socket path runs on the host\u201D; \u201Cfix(remote): ssh never reads a host\u0027s fields as options of its own\u201D; \u201Cfix(remote): the island\u0027s socket on a host sits in a folder only the SSH user can enter\u201D; \u201Cfix(remote): the island\u0027s socket on a host is the SSH user\u0027s alone, unless its agents run as other users\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/SSHForwarder.swift\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":"Sources/CodeIsland/SSHForwarder.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fe7007cfdcfa41efab42f5e460d78e9989002a9cc7322b76326a041ec651e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIslandCore/HookEdgeFacts.swift: Sources/CodeIslandCore/HookEdgeFacts.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is HookEdgeFacts.delivery at line 45), 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(remote): each remote host\u0027s hooks arrive on a socket of its own, which names the host\u201D; \u201Cfix(edge): an \u0060_edge\u0060 is never taken for this Mac\u201D; \u201Cfix(remote): a blank remote cwd no longer fails the host\u0027s cwd allow-list\u201D; \u201Cfix(remote): nobody-waits hooks are never held, and no blank cwd from OpenCode\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/HookEdgeFacts.swift\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":"Sources/CodeIslandCore/HookEdgeFacts.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8229620f66dad4f812bbde58250c092a6aef00d19488d810b7901b2e271ae416"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/AppState\u002BAgentTasks.swift: Sources/CodeIsland/AppState\u002BAgentTasks.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is AppState.finishAgentTaskBackfill 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(session): find subagent models in nested and far-back transcripts, off the main thread\u201D; \u201Cfix(tailer): treat a replaced transcript\u0027s history as history, not news\u201D; \u201Cfix(tailer): start the live tail where the attach backfill stopped\u201D; \u201Cfix(tasks): don\u0027t let an attach-time scan wipe a checklist it cannot rebuild\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AppState\u002BAgentTasks.swift\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":"Sources/CodeIsland/AppState\u002BAgentTasks.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"282472067dba321e3ae9fa0168e4a8abf6e99307ba8870b8a1f3ad1250d318c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIslandCore/ExtraConfigDirs.swift: Sources/CodeIslandCore/ExtraConfigDirs.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is ExtraConfigDirs.inspect at line 365), 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-dirs): skip paused dirs in discovery and place unknown processes in one root\u201D; \u201Cfix(config-dirs): refuse the home folder and folders that hold the primary\u201D; \u201Cfix(config-dirs): never install or remove hooks through a file the primary owns\u201D; \u201Cfix(config-dirs): compare config paths by realpath identity and memoize root lists\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIslandCore/ExtraConfigDirs.swift\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":"Sources/CodeIslandCore/ExtraConfigDirs.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ddb8a91d7fd463b498514743fdee56b40161c5efd6a877b7974c1a0134d5f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/RemoteHost.swift: Sources/CodeIsland/RemoteHost.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is RemoteHost.unsafeSSHField at line 76), 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(remote): ssh never reads a host\u0027s fields as options of its own\u201D; \u201Cfix(remote): the island\u0027s socket on a host sits in a folder only the SSH user can enter\u201D; \u201Cfix(remote): the island\u0027s socket on a host is the SSH user\u0027s alone, unless its agents run as other users\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/RemoteHost.swift\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":"Sources/CodeIsland/RemoteHost.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dce44966103bbe053e3aca5cb5af79599759edf5e897bfdb0c0f839bb40b210"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/AgentTaskProgressView.swift: Sources/CodeIsland/AgentTaskProgressView.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is AgentTaskProgressView.compactRow at line 114), 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(a11y): lift dim panel text to WCAG AA contrast\u201D; \u201Cfix(island): fit the completion card\u0027s reply to the room the card leaves\u201D; \u201Cfix(tasks): retire a plan the agent stopped updating, and show no \u0022doing X\u0022 while idle\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/AgentTaskProgressView.swift\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":"Sources/CodeIsland/AgentTaskProgressView.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e204e4ac2646c40b5162f77f03a29330c2ed26d46ae24ab6ca18715114de741"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/CodeIsland/PushSettingsView.swift: Sources/CodeIsland/PushSettingsView.swift changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is PushFieldSpec.fields at line 95), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(push): mask device keys, topics and webhook URLs in settings\u201D; \u201Cfix(push): refuse redirects to another host or from https to http\u201D; \u201Cfix(push): redact more credential shapes and send team chats headlines only\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-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 21:01:29 \u002B08:00\u0027 --until=\u00272026-10-28 21:01:29 \u002B08:00\u0027 --full-history --no-merges -- Sources/CodeIsland/PushSettingsView.swift\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":"Sources/CodeIsland/PushSettingsView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd2360098d6f0448d849bb373e59566cb80c8411a229f30b4ef35f9107c2c9c"}},{"ruleId":"D17","level":"error","message":{"text":"WriteOnlyPrivateField: private HookFileStore _store \u2014 assigned 1 time(s), read never \u2014 this field is written and never read anywhere its type can be reached from, so the state it keeps answers no question: every assignment to it computes a value that nothing observes, on every instance, for the lifetime of each one. It reads as a flag the code branches on, and nothing branches on it. Delete the field and its assignments \u2014 or, if the value was MEANT to be consulted, the missing read is the defect this row is pointing at, and the branch that should have depended on it is not there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Hooks/HookManager.cs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"18151a0c2354c8e29c67805a375169423328dfe161ffd6e49f3208fbbac87769"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Ipc/PipeServer.cs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"12620c29fa33567a4061171ef1465df11c33d2b554971bcd78dfc1632c788046"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/App.xaml.cs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb73ec1a10a331ad894556cd9f759a68e16d557acc39d23d7fd55702539075d"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/AppLogger.cs"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"845c8386a9e45e26e15426b0520c3815490ffa9fba8abd7710bb954a4f85d0c8"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/CodexSessionTailer.cs"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02f4ffcf83f3ee65d68791cf53773897caed872008e59030efd60b120ef08eb"}},{"ruleId":"D17","level":"error","message":{"text":"EmptyCatchBlock: empty catch block \u2014 the error is discarded with nothing recorded, so a failure here leaves no trace anywhere. Record it through whatever this codebase already uses to report problems, or let it propagate. Where swallowing one specific failure really is correct \u2014 as it often is on a teardown/dispose path where throwing would mask the original failure \u2014 catch exactly that exception type and write down WHY in a comment on the catch. Both are needed: a comment on a catch-all still swallows every failure nobody anticipated, and a note that only restates the swallow (\u0022ignored\u0022, \u0022do nothing\u0022) is read as no explanation at all."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/MainWindow.xaml.cs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b27bb0bec6db4a17e1ca4a327cfaa509b7c416ac5cf163b5d793cf85edebed"}},{"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 \u0060windows/CodeIsland.Bridge/CodeIsland.Bridge.csproj\u0060 makes this repository a deployable product (line 10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Bridge/CodeIsland.Bridge.csproj"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4629e7e4ceb6be7a319454f58e34e8afdf289363210bee31bf66d7f193730b7"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060peerID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060peerId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/AppleCompanionPublisher.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"71570ee89513549b747418d526dbc4091f7944aa06495897f6ab92efa2232b83"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060serverID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060serverId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b4d6677e08edaf48aa7ba87144f9f976b6b1e73eb666e1d8eda41ffc58fc59"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060declaredMCPServerID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060declaredMCPServerId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"74581121d3397117ac93e1b88a6a9df93d2e31acf054fd5da9d725cedb122063"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060serverID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060serverId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/CodexPermissionRules.swift"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"27526a775d3476dc50549fb9c972a0dd1374fd744169c029f4c84988e36cc387"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060nextID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060nextId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/GlobalHotKeyManager.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6eb89f8a4b5e785109c724289b45e2f6eb6707e2f8b7e060f37dd920330b34"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060CodexRequestID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060CodexRequestId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/CodexAppServerClient.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d5e6f8241cfbcfcebfd2748517d8ca91979bf0f71d8cba1066bd9b8cb89007"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060MascotID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060MascotId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/ESP32Protocol.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ba5d317f7cc068e724132308306ab436aa8434923b5290074915972b5cb119"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060peerID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060peerId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/CompanionConnection.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfa2a325aca6365112fc0e988b19180bedfa4a35223f1b42d6c8309e4ce5e1c"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060activityID\u0060 spells \u0060ID\u0060 where 470 names in the project spell it \u0060Id\u0060: 470 of 479 names in project CodeIsland spell the token \u0060Id\u0060 (470 of 479; unit: names in project CodeIsland containing \u0060Id\u0060). Peers: AppState.startAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:28); AppState.finishAgentTaskBackfill(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:54); AppState.applyAgentTaskTranscriptEvents(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:110); AppState.replayAgentTaskHistory(sessionId) (Sources/CodeIsland/AppState\u002BAgentTasks.swift:125); AppState.startAiWorkWatchClient(agentId) (Sources/CodeIsland/AppState\u002BAiWorkWatch.swift:249). Rename to \u0060activityId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/CodeIslandCompanion/CodeIslandCompanion/LiveActivityController.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6b48306143e50b4db5062854213d2e1f9eb6774458f758f7655c67f00e05c5"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022where theme specific resource dictionaries are located\u0022 is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/AssemblyInfo.cs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc52008c0b352be8e50046c200f540d1083d0b0b335d275aefce707a3b83a40"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022(used if a resource is not found in the page, or application resource dictionaries)\u0022 is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/AssemblyInfo.cs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8cac24fdd721cb21565239f907a8075bd829ebcea180919fc4718b68445435"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022where the generic resource dictionary is located\u0022 is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/AssemblyInfo.cs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9e717d51eaed6a0dd365f3ecfc8376e10468a030e47bf5d50f0301a1af6a6d"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022(used if a resource is not found in the page, app, or any theme specific resource dictionaries)\u0022 is Visual Studio AssemblyInfo template text, left in place. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/AssemblyInfo.cs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe7f6872fe69ed02fce7966186d12a694ebb4d5b162da6917a6fb23fff2d3a8"}},{"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":"7fb6217fc0f2005ae4708a8da8eac17100758e2836715994320f6be04b1a5e22"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1096e3c25b6dac76c577b901a72f88a5e306f934f04775dfbf1e4eb9c0bc68f"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad929d33774724ce11f4e61f097f2289315adbdb04886d00116709f97f6d2e27"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b045f06583c9b465f808666ab807bb301b75e163408a0670ffe050a381f461f6"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"d40ca5f6448da5ab58da77f158ca164f9f772997ce1c9e783cfd31deca6343f9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f794baa89eda20ca3f0038cf5795d216207e62150eab1d58e27cfa8fce57f560"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"44c81bd8c82bb9322574d911008a162096bbe8097644197119d9df1ab1f8d749"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3665108d1c5fb80cd0577f458a1ae22aa22a1197fa595b3a6de3ad5f4e40321f"},"taxa":[{"id":"CWE-88","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"62b929d6da6577526896556e800453033a0786c3b33b82a1b5a827de5e6693c3"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.9.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ConfigInstaller.swift \u2194 EventNormalizer.swift: \u0060Sources/CodeIsland/ConfigInstaller.swift\u0060 and \u0060Sources/CodeIslandCore/EventNormalizer.swift\u0060 change together 90% of the time (9 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u00604acf0236\u0060 fix(hermes): remove the card when the session really ends; \u006065214f64\u0060 fix(hermes): keep cards across turns and show prompt, reply and title\u2026; \u006030441c10\u0060 fix(jump): reach Orca worktree terminals and Zed\u0027s integrated terminal \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0286774f262b3f493e7cfe9bfa1a38a88a6bc0761bd8c4d19449af822e5af4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: main.swift \u2194 EventNormalizer.swift: \u0060Sources/CodeIslandBridge/main.swift\u0060 and \u0060Sources/CodeIslandCore/EventNormalizer.swift\u0060 change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006065214f64\u0060 fix(hermes): keep cards across turns and show prompt, reply and title\u2026; \u006030441c10\u0060 fix(jump): reach Orca worktree terminals and Zed\u0027s integrated terminal; \u006048f2ef7f\u0060 feat(grok): add Grok CLI integration (#281) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandBridge/main.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9243469790602b481f62bfe84dd2c97e824bed75c32d38d41e6278304b8e65c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ConfigInstaller.swift \u2194 MascotView.swift: \u0060Sources/CodeIsland/ConfigInstaller.swift\u0060 and \u0060Sources/CodeIsland/MascotView.swift\u0060 change together 67% of the time (14 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u006089dd65fb\u0060 feat(mimo): support MiMo Code and the Xiaomi MiMo desktop app (#355); \u006023440f00\u0060 feat(minimax): add MiniMax Code CLI support (#360); \u00606fc538d4\u0060 feat(aiwork): add AiWork GUI and CLI/TUI support (#336) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"684a5987618d653efc39999fe4e315bbb47b2a59be7668b4df011d7c739c70c4"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 2/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/windows.yml"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060windows/CodeIsland.Core.Tests/CodeIsland.Core.Tests.csproj\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Core.Tests/CodeIsland.Core.Tests.csproj"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1201fe52cca58acbcf963bf8ff1dc68a4d0d6ef071ca1a8b1260ca25bf65ae55"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: 2 blocking call(s) on async work (.Wait()/.GetAwaiter().GetResult()) \u2014 these waste a thread and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2dedb76432d7d4f359386b5c37564c0f3de368182a77e31aa8af9ba73f9a4def"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060.GetAwaiter().GetResult()\u0060 blocks this thread until the async work completes \u2014 it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/App.xaml.cs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf17f550590adb533a40e350b35d05b7eaa587ca7297f183562ed22ac215b493"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060.GetAwaiter().GetResult()\u0060 blocks this thread until the async work completes \u2014 it wastes a thread-pool thread for as long as the work runs and can deadlock wherever a synchronization context is in play (a UI thread, or a caller that has one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/App.xaml.cs"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb62a024116894327286795ff62b0d3f6ddd47981bf9d356f69845a17e07af1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (148 matched lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:52 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:77 \u2014 the two spans are one implementation copied and then locally edited \u2014 894 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c4a8cf15ab952a68a6f3a1ce0676645ff59356bf6bdf22b260582c0777aa9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (91 matched lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-openclaw/index.ts:139 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:207 \u2014 the two spans are one implementation copied and then locally edited \u2014 526 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-openclaw/index.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabf1a1a1f234d023fa0555266b3839b862087417f14d96136cfc391ca6e420d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 3 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:188 \u00B7 Sources/CodeIsland/Resources/codeisland-openclaw/index.ts:139 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:207 \u2014 the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a7fa7b992a463ef653484f00f20c9f6be7ab0821420b0106086060d41b5966"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:352 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:334 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cb9d2765f42dcbcb6bbfdf0a692ab98feb4e06ad4c2ea6fd0773663083402b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:280 \u00B7 Sources/CodeIsland/Resources/codeisland-openclaw/index.ts:210 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:278 \u2014 the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"034599cefd4bb16dde4c1763c1a31087717f955c8f0f62df7160cfe0040d5794"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:1066 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:672 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3e607a1934fc35443ca6613f44989844b1f713713f8ab68ea002c37b3b691a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:558 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:414 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8784988c28d5deb17974b2be4b51a2f1eb6c02c6ac834324e1bbb63a7b216384"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:1044 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:638 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd865a72e955b46820a4497ed6c79071f8dc8b0cbf8b45826347c1e48f3f7f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:1002 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:583 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"7843793c80fe658a0fa4e197a086abb02898bc3652f87235f32cf6d57fdd8852"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-omp.ts:728 \u00B7 Sources/CodeIsland/Resources/codeisland-omp.ts:735 \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":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6a8eae17ce48cb01ef4051403ff97512b4c04007c352ac505a054ee8bd516a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-pi.ts:730 \u00B7 Sources/CodeIsland/Resources/codeisland-pi.ts:740 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-pi.ts"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d8dfe71cc547da3765474fc7d1297a249e5018956a3e0b71074f70d238fc11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): Sources/CodeIsland/Resources/codeisland-openclaw/index.ts:505 \u00B7 Sources/CodeIsland/Resources/codeisland-openclaw/index.ts:515 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-openclaw/index.ts"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"e899d770791360af1fdee4eb49d01d9ccca653b0da718b667fdb33532243e5b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 22): (anonymous) has cyclomatic complexity 16 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-pi.ts"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3e57b016a242350fa8c33d9b0067e9fc404d55ea7b607826e3f1b4b41269ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 14): (anonymous) has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-openclaw/index.ts"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"04eda620dc387c4954a7cc3994647564911bbcc172e28ceb03c2e5791fd85d38"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 17): (anonymous) has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9d3f370119f05162536c6956a8b1cf3f248749674a7d9961dca654f66a5891"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function classifyCodeIslandAskResponse (cyclomatic 13, cognitive 12): classifyCodeIslandAskResponse has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac2264d7b724370ecd9571fe1556fa8c6717de28c4718ef7b52d6d21d51a6d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4885a8d140367c30ca724194aeced11aaad90baadaf61112dab66bb4acc6b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ompAgentIdentity (cyclomatic 11, cognitive 10): ompAgentIdentity has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"453ddc08f6190d2be6c91f99623bde6a9dfb2a3c866dd5351b5a422b2da4e7cc"}},{"ruleId":"R3","level":"warning","message":{"text":"Sources/CodeIsland/Resources/codeisland-omp.ts: 1018 lines of code: Sources/CodeIsland/Resources/codeisland-omp.ts has 1018 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8045e9eff142b513327bd8d33b1d899be73f2699839dd6baf235eebf0ffbdfc8"}},{"ruleId":"R3","level":"warning","message":{"text":"Sources/CodeIsland/Resources/codeisland-pi.ts: 673 lines of code: Sources/CodeIsland/Resources/codeisland-pi.ts has 673 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-pi.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7d21ee5c3835edb27e7bff6367c37f1c22bc8757f953981b35e4e23cbe609d"}},{"ruleId":"R3","level":"warning","message":{"text":"Sources/CodeIsland/Resources/codeisland-openclaw/index.ts: 489 lines of code: Sources/CodeIsland/Resources/codeisland-openclaw/index.ts has 489 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-openclaw/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bb46675d59a9824687da0b52d41a1a6c22d7474834d767c1462bcb26e28b9f"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"SC1","level":"warning","message":{"text":"NuGet dependencies are not locked: No packages.lock.json and no central package management \u2014 restores aren\u0027t reproducible or pinned (SSDF PW.4.4). Enable \u003CRestorePackagesWithLockFile\u003Etrue\u003C/RestorePackagesWithLockFile\u003E (commit the lockfile) or adopt Directory.Packages.props. Advisory \u2014 never scored."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0a97b4f69ccac509400ece7eedefb06d3ede0522cd4d8bcb5c068bea719545a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!existsSync(BRIDGE_PATH) || !socketIsOwnedByUser(SOCKET_PATH)\u0060 appears character-identically in 3 files \u2014 Sources/CodeIsland/Resources/codeisland-omp.ts, Sources/CodeIsland/Resources/codeisland-openclaw/index.ts, Sources/CodeIsland/Resources/codeisland-pi.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1473e07859dce61ef164912c96c84113d6307abad6629d2c3fdca73f7458c67"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060env.HERDR_ENV !== \u00221\u0022 || !pane || !socket\u0060 appears character-identically in 2 files \u2014 Sources/CodeIsland/Resources/codeisland-omp.ts, Sources/CodeIsland/Resources/codeisland-pi.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d62ee06b60ce1b1c25699bc8e0b62a3de74eda5db077b3cc9779c13a36679f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.toolName === \u0022bash\u0022 \u0026\u0026 typeof event.input.command === \u0022string\u0022 \u0026\u0026 isDangerous(event.input.command)\u0060 appears character-identically in 2 files \u2014 Sources/CodeIsland/Resources/codeisland-omp.ts, Sources/CodeIsland/Resources/codeisland-pi.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"29682bbd61005b31f8fac39ad088cd1c4e57ebff380affa5424164290f4bfb4e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.toolName === \u0022edit\u0022 || event.toolName === \u0022write\u0022\u0060 appears character-identically in 2 files \u2014 Sources/CodeIsland/Resources/codeisland-omp.ts, Sources/CodeIsland/Resources/codeisland-pi.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-omp.ts"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"25462af9176f7348100faed6ab3a207bbd8ed52c15541b40079a8eacd6817d1f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.Type == PipeMessageType.Event \u0026\u0026 message.Event is not null\u0060 appears character-identically in 2 files \u2014 windows/CodeIsland.Bridge/Program.cs, windows/CodeIsland.Windows/App.xaml.cs. 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":"windows/CodeIsland.Bridge/Program.cs"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d2a20f15ad16a3bf1f5769a6b22859141c9765abb98ca0c5deae076a6ff822"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cwd.contains(\u0022/.claude/worktrees/agent-\u0022) || cwd.contains(\u0022/.git/worktrees/agent-\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/CodeIsland/Discovery/ClaudeDiscovery.swift, Sources/CodeIsland/Discovery/SessionDiscovery.swift. 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":"Sources/CodeIsland/Discovery/ClaudeDiscovery.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd43091ed034c8e4283c44a4addb08063429e636b36dfedd551ba178544535e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kind == .permission || kind == .question\u0060 appears character-identically in 2 files \u2014 Sources/CodeIsland/PushNotifier.swift, Sources/CodeIslandCore/PushPolicy.swift. 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":"Sources/CodeIsland/PushNotifier.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"de965f9724417929c2d918468fe947710dae8ccd6b8a536c7245bf0bab88de69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lower.contains(\u0022wezterm\u0022) || lower.contains(\u0022wez\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/CodeIsland/TerminalActivator.swift, Sources/CodeIsland/TerminalVisibilityDetector.swift. 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":"Sources/CodeIsland/TerminalActivator.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"60daff1ba81829a530e9b17ee7612b838d4f3648a4c33e00a3a6d0c222d42987"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pct \u003E 0.03 \u0026\u0026 pct \u003C 0.55 \u0026\u0026 sin(pct * 25) \u003E 0\u0060 appears character-identically in 3 files \u2014 Sources/CodeIsland/AiWorkView.swift, Sources/CodeIsland/BuddyView.swift, Sources/CodeIsland/CursorView.swift. 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":"Sources/CodeIsland/AiWorkView.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"db84170df29dcedfc1db353e9a5a3d0a1c3aced101223ff445eef09fca06e9aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session == nil || session?.status == .idle\u0060 appears character-identically in 2 files \u2014 Sources/CodeIslandCore/BackgroundCompactionFilter.swift, Sources/CodeIslandCore/SessionSnapshot.swift. 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":"Sources/CodeIslandCore/BackgroundCompactionFilter.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ac37c9abfa915f39300251afa0317bfc66aee473e63e1480f4f2ffe13fbca0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session.source == \u0022cursor\u0022 || session.source == \u0022cursor-cli\u0022\u0060 appears character-identically in 2 files \u2014 Sources/CodeIsland/AppState\u002BTranscriptTailer.swift, Sources/CodeIsland/AppState.swift. 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":"Sources/CodeIsland/AppState\u002BTranscriptTailer.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c01a65998cacee7daf9d474b333ef2f8860a80ce60d5e825dda9de8ba507420"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060source == \u0022aiwork\u0022 || source == \u0022aiwork-cli\u0022\u0060 appears character-identically in 3 files \u2014 Sources/CodeIsland/AppState\u002BAiWorkWatch.swift, Sources/CodeIsland/ConfigInstaller.swift, Sources/CodeIsland/SettingsView.swift. 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":"Sources/CodeIsland/AppState\u002BAiWorkWatch.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"79867f7676a059d1ad42f518a8c158e0ccf133f5b9137d4ab4b9c7a6e771aa69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060source == \u0022cursor\u0022 || source == \u0022cursor-cli\u0022\u0060 appears character-identically in 2 files \u2014 Sources/CodeIsland/AppState.swift, Sources/CodeIslandCore/SessionSnapshot.swift. 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":"Sources/CodeIsland/AppState.swift"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01996a5720095082c7d58664adeb90971b5425779846748a5b2a9e99834174b"}},{"ruleId":"X5","level":"note","message":{"text":"Null-forgiving operator (\u0060!\u0060) suppressions override nullable warnings: ~1.0 \u0060!\u0060 suppressions per 1k syntax nodes \u2014 34 suppression(s) across the 34205 syntax node(s) in code where nullable warnings are ENABLED, which is the only code a \u0060!\u0060 can suppress anything in (a \u0060!\u0060 under \u0060#nullable disable\u0060 is inert and is not counted, and its file\u0027s nodes are not in the denominator). Each one tells the compiler to trust you about null, suppressing the very safety NRTs provide. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ae9a4afaefbfeb512a0b9a87d1bd44cd285ab1e804e4b89c8cf80f255687dfd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060ParseLine\u0060 falls back to \u0060DateTimeOffset.UtcNow\u0060 when \u0060DateTimeOffset.TryParse(String(root, \u0022timestamp\u0022), out var parsed)\u0060 is false, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer to the test rather than a stand-in for a value that could not be read, this is not a silent default: say so in a comment on the member and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Protocol/CodexTranscriptParser.cs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c566687c6443ef4601d6b28cf5fa2f648c47cec65cca2bc47c6af5c333594a6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060Load\u0060 swallows \u0060JsonException\u0060 into \u0060return new AppSettings();\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let validation throw."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"windows/CodeIsland.Windows/SettingsStore.cs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"889e8197ffe5f7af2717831b44c9b5cee5681987ef3cbf56f2fb6b3dd844ebe6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_scan_session_jsonl\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"40431c919908e783c36c37ea9b9adaeaa6ad309e3cdfe1d3ba46c5c5e77cdefd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_scan_codex_jsonl\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1cfb2a357ea7ed3769176d262f084a96d2ea26f3ac9d8334bce3b6dba58134"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_read_stdin\u0060 swallows every exception into \u0060return b\u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Resources/codeisland-remote-hook.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8cb4f63231bd99ab8ae613aa3aa4a7a91a0299052d51fe4c95b930e7c427c9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060load\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/SessionPersistence.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"657bcbe4d2c542dde19a4561e5d84c49bebcfa75ccd5528dc089ada67f605a16"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060grokDirectorySessionCandidates\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/Discovery/GrokDiscovery.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d32cbad8dee327db63af633c38f46e12f201b96e20bf10124c947528ae4547"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoverReadyDaemons\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/AiWorkWatchClient.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fd3e4aa6c0584e010c9e68863442b5ba6f5acefef7adcd500554dc76667081"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060encodeList\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIslandCore/PushChannel.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf7792ecf071a88f96c0d2f0d8ba2b4e255f37da68d66ab99a73a05ea7179e5"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060trimmed.hasPrefix(\u0022[[\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060trimmed.hasPrefix(\u0022[[\u0022)\u0060 also satisfies \u0060trimmed.hasPrefix(\u0022[\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3042}}}],"partialFingerprints":{"codehealthFindingId/v1":"70add105ef2b272df1c68a7c83c7d1d72ec1c7e29483b05fde38055f34e305a4"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060trimmed.hasPrefix(\u0022[[\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060trimmed.hasPrefix(\u0022[[\u0022)\u0060 also satisfies \u0060trimmed.hasPrefix(\u0022[\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CodeIsland/ConfigInstaller.swift"},"region":{"startLine":3111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5f5e34a081164ee47ff33a1133ce8629517bb1dc34f4e8817d02bdc6f48c20"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-668","guid":"e2cb99db-6d24-b056-b0d0-885a733ec403","name":"Exposure of Resource to Wrong Sphere","shortDescription":{"text":"Exposure of Resource to Wrong Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/668.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-88","guid":"32dec161-013d-ac58-8599-1309e12e67f5","name":"Improper Neutralization of Argument Delimiters in a Command (\u0027Argument Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Argument Delimiters in a Command (\u0027Argument Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/88.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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":14,"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."]}]}