{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"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":"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":"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":"ED1","name":"Handler temporal coupling","shortDescription":{"text":"Handler temporal coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/ED1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"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":"AgentEngine.processInput (cyclomatic 163): AgentEngine.processInput 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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4095dd1eff7609d8c937c01de75a6c00eceb7db25ea81a9dcf3e0989324b88c6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.executeToolChain (cyclomatic 131): AgentEngine.executeToolChain has cyclomatic complexity 131 (threshold 15). Of this number, 124 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df2f0a095c786b1c2807cf58687ced0444c5881a493f98406249e138e6b2f7d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.executePlannedSkillChainIfPossible (cyclomatic 80): AgentEngine.executePlannedSkillChainIfPossible has cyclomatic complexity 80 (threshold 15). Of this number, 70 points are the body\u0027s own statements and 10 belong to 5 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":"Agent/Engine/Planner.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf55f23e4fd637a9bada27ff569bf438fe939bf0daade5e019eef3df2aa84d13"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveModeEngine.processAudio (cyclomatic 53): LiveModeEngine.processAudio 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":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06cb5f31728e7920a295de23e122d1b3ce9c1aa882df493264c2bce63877f16"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillCardView.statusTitle (cyclomatic 47): SkillCardView.statusTitle 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":"UI/ResponseUI.swift"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"1511158da728f087b33e3d4d71afdf4beabe11f62e5e888b5d595d3506df10bc"}},{"ruleId":"D1","level":"warning","message":{"text":"JapaneseFallbackLocalization.dynamicText (cyclomatic 38): JapaneseFallbackLocalization.dynamicText has cyclomatic complexity 38 (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":"Shared/LanguageService.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"584b4ea1cbd26b6a2f4c77af72f0869cab1ee4a47cda00b8616c32febd1bccd4"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveModeEngine.startLegacy (cyclomatic 38): LiveModeEngine.startLegacy has cyclomatic complexity 38 (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":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50ca3cc857965a0666a5d4da06382eed59e9f8ea3597cb511b05443a64c35eb"}},{"ruleId":"D1","level":"warning","message":{"text":"MLXLocalLLMService.generateStream (cyclomatic 36): MLXLocalLLMService.generateStream has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d874e598371f5aa8295baac9020f74dbe248f8b445d29bf769e52fe94751b3ad"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptBuilder.build (cyclomatic 34): PromptBuilder.build has cyclomatic complexity 34 (threshold 15). Of this number, 33 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":"LLM/PromptBuilder.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fa26cace7a7d10d07749bec445ae270be5b1ede700df27b03725b819370b47"}},{"ruleId":"D1","level":"warning","message":{"text":"AssistantTextBlock.parseStablePrefix (cyclomatic 34): AssistantTextBlock.parseStablePrefix has cyclomatic complexity 34 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 8 belong to 3 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":"UI/ResponseUI.swift"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"75649b2a2a36deb5fa2c5f542c271649b59454d67030149e64ff21ea791386c6"}},{"ruleId":"D1","level":"warning","message":{"text":"ResumableAssetDownloader.transfer (cyclomatic 33): ResumableAssetDownloader.transfer 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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a428ac25f96ab34afbe683cbea63d8d067ea214b010770728d1935a92aea470"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatModels.swift.buildDisplayItems (cyclomatic 30): ChatModels.swift.buildDisplayItems has cyclomatic complexity 30 (threshold 15). Of this number, 29 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":"UI/ChatModels.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a354838ca48ada8475fc13056fb96b82b1cbe230fcd778eb7a3b7529cc9741f8"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillDetailCard.body (cyclomatic 28): SkillDetailCard.body 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":"UI/SkillsManagerView.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d601ad9ce574a1c653c37f0da59fa0d408ca6abafa5389cdd852bd9e97b4ffe4"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniCPMVBackend.runLiveTransactionBody (cyclomatic 27): MiniCPMVBackend.runLiveTransactionBody has cyclomatic complexity 27 (threshold 15). Of this number, 25 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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f7c9dc7a84e75c63f7f31425d3d24b280fc00d4b2860b454092eeee8c8a749"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.latestPriorContextArtifact (cyclomatic 25): AgentEngine.latestPriorContextArtifact 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":"Agent/Engine/Router.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"738faf199b6bb29bef5e429819f5c06f669dc67fcf41071ecd3d37c8049e3519"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveModelDownloader.downloadAll (cyclomatic 24): LiveModelDownloader.downloadAll 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":"LLM/MLX/Installation/LiveModelDownloader.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb7d44b4ac4dac8b8cb3a2466d7916990d6d8432093a6b1e01d69e3c32f9f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRTLMEngine.conversationSendStreaming (cyclomatic 23): LiteRTLMEngine.conversationSendStreaming 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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa061137b3af34695e349b9ae83b55d678ba6dbc1c74e6ed18a19b6b07f539b"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.handleImportedFile (cyclomatic 23): ContentView.handleImportedFile 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":"UI/ContentView.swift"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3f8f0961d22018d59e3d1cbd6f4e3cd675d7914f7cebc8399421c5f941267d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.streamLLM (cyclomatic 22): AgentEngine.streamLLM 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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"863af65f441ee37ab4fbdb9f8c1fae536164250b51461a79377c1062d7bd571b"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRTBackend._generateMultimodalUnchecked (cyclomatic 22): LiteRTBackend._generateMultimodalUnchecked 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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1dd4e0f414b62bf3b19d4dc097f60956545d553a1405ce2fa0fe920bdbd12ad"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteInferenceService.streamChat (cyclomatic 21): RemoteInferenceService.streamChat 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":"LLM/Backends/Remote/RemoteInferenceService.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ec0195542a6c282e37ad55c5c634dc4ee567b63d9c44e4ba39735acd00e8e5"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalCLIProvider.runCodexStreaming (cyclomatic 20): LocalCLIProvider.runCodexStreaming has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c46f08b6163c602ba181942f42b9d83e4a87497068a631d97d02d6276f4e140"}},{"ruleId":"D1","level":"warning","message":{"text":"AssistantTextBlock.parseLines (cyclomatic 20): AssistantTextBlock.parseLines has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 8 belong to 3 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":"UI/ResponseUI.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e377cfa8134d454fe64f4147c2f092a5544ec40f910caca84d333ec7655b00"}},{"ruleId":"D1","level":"warning","message":{"text":"MLXLocalLLMService.downloadModel (cyclomatic 20): MLXLocalLLMService.downloadModel 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":"LLM/MLX/Installation/ModelDownloader.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"360b594667a54a9ff6c20ac768245d9d9b93e47e7bafa3ab3e32fa40ea0125a6"}},{"ruleId":"D1","level":"warning","message":{"text":"ASRService.initialize (cyclomatic 20): ASRService.initialize 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":"Shared/Audio/ASRService.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64a0fda55e1bd9eb3e514a3a3a0450938e3dda29fa3aa2a60ab1101a9ee5471"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRTBackend.generate (cyclomatic 20): LiteRTBackend.generate 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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"124d5df43f3e1a5e925695236a6732264c6dadc3a7b60bacfccf11297301eab0"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalCLIProvider.runCodexStreaming (cyclomatic 20): LocalCLIProvider.runCodexStreaming has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"3761b63ce478f753de53b0e5f12f3fc6a6e38996a079a3801be5d3ec26119de6"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.executingSkillActivityDetail (cyclomatic 19): AgentEngine.executingSkillActivityDetail has cyclomatic complexity 19 (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":"Agent/AgentEngine.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9ecaedb8582e201e131bc84640c2dfc60e2fddd2b401040a7f5d0389637f07"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.extractToolCallForLoadedSkills (cyclomatic 19): AgentEngine.extractToolCallForLoadedSkills 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefef0c4c554f0aba7f3d3789ec270931aad6180682a781b71edde972aaa9ef9"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.sourceURLs (cyclomatic 19): AgentEngine.sourceURLs 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef971e036ce286f2a7570cb6f8f4416397458c6cdd2eda6a111ba5b1ac661d52"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveCameraService.start (cyclomatic 19): LiveCameraService.start 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":"Live/Camera/LiveCameraService.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef707d8394349d0615c2bc0918f6db58ee9dfc0b5855474d62d780ef31d12878"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRTBackend.load (cyclomatic 19): LiteRTBackend.load has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"566197b8423d93e703a707e3ae0ca6cdbb6ac3b5fe1951d1b1e9aea83e585294"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.loadSystemPrompt (cyclomatic 18): AgentEngine.loadSystemPrompt has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/EngineLifecycle.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c02f843711bde3c3ddd281d1b9f42746960b4a3bcc7e6a2c050c5cfae30c37d"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.validateExecutionPlan (cyclomatic 18): AgentEngine.validateExecutionPlan 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":"Agent/Engine/Planner.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d867a763579173bc94c0eba340406c87e867a59d4ad4f2c6da900455b9224575"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.validatePhoneGroundPayload (cyclomatic 18): AgentEngine.validatePhoneGroundPayload 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b13558010c2b5835976b697f75c85794035cf2beb02374ab58666687cbcd431"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveAudioIO.start (cyclomatic 18): LiveAudioIO.start 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":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4484cc1782dee060651b0954bc4511ca1cfd1d481f9886521ca20d707434d04"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayModel.validateAndNormalizeConfigs (cyclomatic 17): GatewayModel.validateAndNormalizeConfigs 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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c9cead584870047652f3d7192b575fd22960ed0dfdf50ef713bcc1c0faa358"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.init (cyclomatic 17): AgentEngine.init 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":"Agent/AgentEngine.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba72253e25a5370ef25b30084322b171037c02c7d7d75b88a3ac364de7ab4ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.body (cyclomatic 17): ContentView.body 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":"UI/ContentView.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d152a32e37163aed95aa8bf74950e41da863217e3c8e1a88ca683463294d4d"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillCardView.skillKind (cyclomatic 17): SkillCardView.skillKind 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":"UI/ResponseUI.swift"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"29299158661968e656e72ddbbce8259a6c9484203cd23ea03ef29ef254ce7fd1"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillCardView.iconName (cyclomatic 17): SkillCardView.iconName 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":"UI/ResponseUI.swift"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"132d2bf0749db20638f1c173b97b297bcfb6ab62f7419017af75c2303b739b8c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationMemoryPolicy.nextTrimmedPriorHistory (cyclomatic 17): ConversationMemoryPolicy.nextTrimmedPriorHistory 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":"Agent/Engine/ConversationMemoryPolicy.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"192dab64d15f9d4cf2fe324b4265b51d97db656b7e8fe67ac8f5914593889407"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniCPMVBackend.generate (cyclomatic 17): MiniCPMVBackend.generate 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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0668450370e6e46992e7e3af2e47394a7cabc03de4459f73733df6b6002e189"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniCPMVBackend._runMultimodalStream (cyclomatic 17): MiniCPMVBackend._runMultimodalStream 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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"39deb07fce6f027dfeb82fabab0968fc7f11285c1a1ff8e5cf79c1e98f3ce619"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRTLMEngine.runConversationInferenceStreaming (cyclomatic 16): LiteRTLMEngine.runConversationInferenceStreaming 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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d2a3902b37be2bbe8711a6c4a9713e8862fe189234fafeff86cb804131c90b"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.recentActiveSkillId (cyclomatic 16): AgentEngine.recentActiveSkillId 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":"Agent/Engine/Router.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cf97e611b9b4e1a1348607f49695b7b1a753f51766745f5381c494b3d45d96"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentEngine.validateGroundedWebAnswer (cyclomatic 16): AgentEngine.validateGroundedWebAnswer 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a302b88a613b37d10cbdbd0c490b1d72521393e5673f175e0dbae90d89b033"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptBuilder.buildCompactToolAnswerPrompt (cyclomatic 16): PromptBuilder.buildCompactToolAnswerPrompt 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":"LLM/PromptBuilder.swift"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e0e8f1911d5da0684a21d32fd53bee018f7f01247679b109cfe636b5d594f6"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveLandAudioIO.startEngine (cyclomatic 16): LiveLandAudioIO.startEngine 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":"LiveLand/Audio/LiveLandAudioIO.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a061150a3f9875a33069296a4c6a1b0d67721958603e035275b0efc7fe930f"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteRTBackend.generateLive (cyclomatic 16): LiteRTBackend.generateLive 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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"f713e15da29b8e5171a4a9aef8cee6a66bfc8d9e1c9d09fc97d903fcc2072a24"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.executeToolChain (cognitive 293): AgentEngine.executeToolChain has cognitive complexity 293 (threshold 15). Drivers by points: if/else 101 (235 pts), ternaries 10 (26 pts), boolean chains 22, loops 3 (7 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 155). Of this number, 286 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2dbdf81f5ba3065c963e16a9b30a8f3d186b031f70f5b97e802ecc61cea49f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.processInput (cognitive 244): AgentEngine.processInput has cognitive complexity 244 (threshold 15). Drivers by points: if/else 80 (139 pts), boolean chains 62, ternaries 17 (31 pts), match/switch 4 (10 pts), loops 1 (2 pts) (nesting depth added 80). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd119b025ef1197987bec2da241c1b9026d4aec48b14199a0e3964cdb9642164"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.executePlannedSkillChainIfPossible (cognitive 177): AgentEngine.executePlannedSkillChainIfPossible has cognitive complexity 177 (threshold 15). Drivers by points: if/else 62 (144 pts), boolean chains 14, ternaries 4 (13 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 94). Of this number, 167 points are the body\u0027s own statements and 10 belong to 5 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/Planner.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"77137f481a3dcb46b2a98fe2ca5919cc60d0adb95d4d123d9ff56e4964c03896"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveModeEngine.processAudio (cognitive 91): LiveModeEngine.processAudio has cognitive complexity 91 (threshold 15). Drivers by points: if/else 28 (60 pts), boolean chains 14, match/switch 2 (7 pts), loops 2 (6 pts), error handling 2, ternaries 1 (2 pts) (nesting depth added 42). 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":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b23c2c2a7ece4cb20c0beacfec8b56470b6188d24bc614588e0ecf2b7b56cf"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.handleImportedFile (cognitive 73): ContentView.handleImportedFile has cognitive complexity 73 (threshold 15). Drivers by points: ternaries 8 (34 pts), if/else 12 (28 pts), error handling 2 (6 pts), loops 1 (4 pts), match/switch 1 (nesting depth added 49). 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":"UI/ContentView.swift"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cb1e09a7d1f3b1e95d23a5c3fab724656840b22fbc2aa71cdeb515c4bf3c03"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXLocalLLMService.generateStream (cognitive 69): MLXLocalLLMService.generateStream has cognitive complexity 69 (threshold 15). Drivers by points: if/else 27 (43 pts), ternaries 7 (21 pts), error handling 3, boolean chains 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8287a37c6bb9671838c79b1f6442dfc4f38b615cd9d1fe7399eab36f10c0b3"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveModelDownloader.downloadAll (cognitive 69): LiveModelDownloader.downloadAll has cognitive complexity 69 (threshold 15). Drivers by points: if/else 13 (42 pts), loops 6 (15 pts), error handling 4 (12 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/Installation/LiveModelDownloader.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1467758babde1deb59312abebe2da805989aa1e8143e8b2ca4a24b58d4f4793c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatModels.swift.buildDisplayItems (cognitive 61): ChatModels.swift.buildDisplayItems has cognitive complexity 61 (threshold 15). Drivers by points: if/else 19 (50 pts), boolean chains 8, match/switch 1 (2 pts), loops 1 (nesting depth added 32). Of this number, 60 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":"UI/ChatModels.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff90983a5c5dbaab875920c02c57db395e0fc55f8f15850a82fd147a82cb59df"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillDetailCard.body (cognitive 58): SkillDetailCard.body has cognitive complexity 58 (threshold 15). Drivers by points: if/else 13 (26 pts), ternaries 12 (26 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/SkillsManagerView.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adf863333fc8363c69a2ffa399e3e0bf69f5c75e955fe607acd73e31b331e61"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillCardView.statusTitle (cognitive 51): SkillCardView.statusTitle has cognitive complexity 51 (threshold 15). Drivers by points: if/else 32 (48 pts), match/switch 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ResponseUI.swift"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9b31a1801260115f9296ff4b97830684b25d1d06744a5441f9934ba6839793"}},{"ruleId":"D2","level":"warning","message":{"text":"AssistantTextBlock.parseStablePrefix (cognitive 49): AssistantTextBlock.parseStablePrefix has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (31 pts), ternaries 7 (12 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 16). Of this number, 43 points are the body\u0027s own statements and 6 belong to 3 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":"UI/ResponseUI.swift"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62cec9bc1642292097fc2f0723c17824f165e12d45d3be2db9b178a3ce7ffa6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.latestPriorContextArtifact (cognitive 48): AgentEngine.latestPriorContextArtifact has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 2 (8 pts), match/switch 2 (5 pts), boolean chains 3, loops 1 (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":"Agent/Engine/Router.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5f438fc19fcf14728e6c6d20795b399fb37d10de94bcc88016310fc17caf2a"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptBuilder.build (cognitive 48): PromptBuilder.build has cognitive complexity 48 (threshold 15). Drivers by points: if/else 22 (34 pts), boolean chains 7, loops 3 (4 pts), match/switch 1 (2 pts), ternaries 1 (nesting depth added 14). Of this number, 47 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":"LLM/PromptBuilder.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1c23c9582db172cd88ffdb615480b5247c581902b67bac9dbc50ebb2fefc9b"}},{"ruleId":"D2","level":"warning","message":{"text":"MLXLocalLLMService.downloadModel (cognitive 47): MLXLocalLLMService.downloadModel has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (32 pts), error handling 4 (10 pts), loops 2 (5 pts) (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":"LLM/MLX/Installation/ModelDownloader.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb49b2f9ed5f26795a1ce3345e6465a3fec163fdca9645031bfb496c21eb9e60"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveModeEngine.startLegacy (cognitive 47): LiveModeEngine.startLegacy has cognitive complexity 47 (threshold 15). Drivers by points: if/else 32 (37 pts), loops 2 (4 pts), error handling 3, boolean chains 2, match/switch 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da6beb23370a9c1cfc726bd2177a8ee5eaaf1511cd9f7ed185d8e3be40088ae"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTBackend._generateMultimodalUnchecked (cognitive 43): LiteRTBackend._generateMultimodalUnchecked has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 4 (11 pts), loops 3 (7 pts), boolean chains 3, error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"4337ce8dec14827d6be31100a3e25e791245e7e80759a5881ff0c5b79825d18e"}},{"ruleId":"D2","level":"warning","message":{"text":"JapaneseFallbackLocalization.dynamicText (cognitive 38): JapaneseFallbackLocalization.dynamicText has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (24 pts), boolean chains 14 (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":"Shared/LanguageService.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"164995eb82161007ade8eff7d8de99d8f2737fc368c1d2e5305a2195c72cb3ee"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCPMVBackend.runLiveTransactionBody (cognitive 37): MiniCPMVBackend.runLiveTransactionBody has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 4, error handling 2 (4 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 11). Of this number, 35 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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0857067c8d6f7b38c890ee6bc3d43b3a893fadc2125b49fc73c6b6177090a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"ResumableAssetDownloader.transfer (cognitive 37): ResumableAssetDownloader.transfer has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 13, ternaries 4, error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d809a8fe78b9556907fcd165503956be98378caea2bef2e5512921c3837c96"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteInferenceService.streamChat (cognitive 36): RemoteInferenceService.streamChat has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 6, loops 1 (2 pts), error handling 1, ternaries 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":"LLM/Backends/Remote/RemoteInferenceService.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"064dadfa81a717411fd20dbb299b2f6b9e04b53ab079f8b6ff99fb1a724c72b5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.extractToolCallForLoadedSkills (cognitive 35): AgentEngine.extractToolCallForLoadedSkills has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 6 (nesting depth added 17). 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"244dfda844a22f956595db5174007a930a4d4f7dc57598e226cad549f6ef0e90"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTLMEngine.conversationSendStreaming (cognitive 34): LiteRTLMEngine.conversationSendStreaming has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (26 pts), loops 2 (4 pts), boolean chains 2, error handling 1, ternaries 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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bdc0423617c12c23a6d6a6724d9383f5235ee27986dc020bb01f8a963dedb9"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptBuilder.buildCompactToolAnswerPrompt (cognitive 34): PromptBuilder.buildCompactToolAnswerPrompt has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 10 (22 pts), if/else 9 (12 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96fecfd8e7a88c3890d9c6d69203b1add07cd2da6a565b2182484d4f5f15f8b"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundDownloadSession.storeColdDownloadedFile (cognitive 32): BackgroundDownloadSession.storeColdDownloadedFile has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (23 pts), error handling 3 (8 pts), boolean chains 1 (nesting depth added 19). 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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03e88cbc8db9c4146fac84e034bb68eded0c2c41972edacaa04038c383595b1"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTLMEngine.runConversationInferenceStreaming (cognitive 30): LiteRTLMEngine.runConversationInferenceStreaming has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d43e4138186d4ebca88745d7c767221ce17e1dc37beefa0054cbaacd7f87d7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.sourceURLs (cognitive 30): AgentEngine.sourceURLs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 5, loops 2 (4 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bd8658cc92ed542d084c3c29b99eb7732241f6830faeb4601e096f7133c293"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTBackend.generate (cognitive 29): LiteRTBackend.generate has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b7ac31bf8e04bc82ced62970e6b68f8cbb61b57096538c5e8b137452587b1f"}},{"ruleId":"D2","level":"warning","message":{"text":"AssistantTextBlock.parseLines (cognitive 28): AssistantTextBlock.parseLines has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 10). Of this number, 22 points are the body\u0027s own statements and 6 belong to 3 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":"UI/ResponseUI.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab47454c27a6fa3aad8aa5b1a1e71737fa9f29d842a26aa0cab982bf996a7f3e"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTBackend.load (cognitive 28): LiteRTBackend.load has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 3 (5 pts), boolean chains 4, match/switch 1 (2 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1697858084598c416058f0e9176fe22f179578c8f699723fe428f7343e79167"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayModel.validateAndNormalizeConfigs (cognitive 27): GatewayModel.validateAndNormalizeConfigs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 5, 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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba107a21e86b58d288da7c91902330298126df3b081aad0d22247cd29c6184c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.init (cognitive 27): AgentEngine.init has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/AgentEngine.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b608804dfdb4c46a432011b9bf086554cd69fb7dffe932119e8dbd7985e5b7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.streamLLM (cognitive 27): AgentEngine.streamLLM has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 5, 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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"be82da763e46fc85f4ca3f0a63e20a00e1464e4d8be77f1e096396628c6f5576"}},{"ruleId":"D2","level":"warning","message":{"text":"ProbeView.runGuardedMatrixTest (cognitive 26): ProbeView.runGuardedMatrixTest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 1 (4 pts), loops 1 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcb8a764112547e85bd9fda1f392ce0978ca58d67e2c62a4c4f6d26cc6b9328"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.validatePhoneGroundPayload (cognitive 26): AgentEngine.validatePhoneGroundPayload has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/ToolChain.swift"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9ef7297e8b57d5630a24970847ba3a52018bd678828db607f0bdd5e03f8fca"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTLMEngine.runSessionInferenceStreaming (cognitive 24): LiteRTLMEngine.runSessionInferenceStreaming has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58cf04edc5822fff11e59cf8beae980cad755886a777c2777d7dd694dd34730"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTBackend.generateLive (cognitive 24): LiteRTBackend.generateLive has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cb363aa05e3b60b93e3f25f37163de2cc8c129fcd9cb58ab7085697e409964"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCPMVBackend._runMultimodalStream (cognitive 24): MiniCPMVBackend._runMultimodalStream has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 2 (4 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08ea314f89a922565aa64bbdd4adb0fce78ca147e30905a03fb2fc1a2ced41e"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalCLIProvider.runCodexStreaming (cognitive 23): LocalCLIProvider.runCodexStreaming has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 3, ternaries 2 (3 pts) (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea69c8630bdab5153a5602b23bcdc9d1f817b209229771139513582c6c564848"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTModelStore.performInstall (cognitive 23): LiteRTModelStore.performInstall has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (3 pts), ternaries 2 (3 pts), error handling 1 (2 pts), loops 2, 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":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c452824db2f83d48440244bb5caa825af669b1a8566cb56e749085dcb58a665c"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalCLIProvider.runCodexStreaming (cognitive 23): LocalCLIProvider.runCodexStreaming has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 3, ternaries 2 (3 pts) (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"089a55d1472249ff27a30a731a55fec604691d00512cc5cd6468a9f7c07e80cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Processor.prepare (cognitive 23): Gemma4Processor.prepare has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (23 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":"LLM/MLX/Gemma4/Gemma4Processor.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c52347085e5e7e60efc85b120c033edbe186f565b2affb19258823baca74b35"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTLMEngine.load (cognitive 22): LiteRTLMEngine.load has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 2 (3 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9c944c02c7c8919cf877e0755ea21ec4efb9059fa1e81874fa275bc54c282a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.validateExecutionPlan (cognitive 22): AgentEngine.validateExecutionPlan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 8, 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":"Agent/Engine/Planner.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ab76029b1e63e75455b3d7f49671e4f193f72c9ece2f32cd7b4143362eb534"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.latestPriorToolObservation (cognitive 22): AgentEngine.latestPriorToolObservation has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/Router.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"03aaef9beda679540962dbc39209b77aa9a18fb16513f5a5d7a3a943958e8409"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveAudioIO.start (cognitive 22): LiveAudioIO.start has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, error handling 1 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2fa7d59b661e20b68e7a2b3cea0cd6697d4e3b34554a94c094b3fb466e422c"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCPMVBackend.generate (cognitive 22): MiniCPMVBackend.generate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2 (4 pts), boolean chains 2, 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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ad1fff1db26a1f66a19ff54178a52fd0f87a97e9789743f007dd7cfb0bed05"}},{"ruleId":"D2","level":"warning","message":{"text":"ProbeView.runRouteMatrixTest (cognitive 21): ProbeView.runRouteMatrixTest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 1 (4 pts), loops 1 (3 pts), boolean chains 2, error handling 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":"Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"93118f602f58b7f6577ef061d1caf2f1c2ca6193c17f9f8eedc328478768cd80"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanningPromptBuilder.extractFirstJSONObject (cognitive 21): PlanningPromptBuilder.extractFirstJSONObject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1, 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":"Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/PlanningPromptBuilder.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c9a26256501f49d70925c1fd5a03e02a64e4b9036113643a4b9baaf30c31db"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTLMEngine.openConversation (cognitive 21): LiteRTLMEngine.openConversation has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (20 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b09e79f7c38efb96f32a149916752348e9780bcfa8d16094a1865cd5a641a15"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.recentActiveSkillId (cognitive 21): AgentEngine.recentActiveSkillId has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 9, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/Router.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd35e4bb800cec55e03c34c2ec04110904d0e9fda805dce547008c5b04a917b6"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationMemoryPolicy.nextTrimmedPriorHistory (cognitive 21): ConversationMemoryPolicy.nextTrimmedPriorHistory has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/ConversationMemoryPolicy.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa8f0d9f58c71e3c855ad4e6f071fa89b3aead4ac5605d3024c265a085294a8"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveCameraService.start (cognitive 21): LiveCameraService.start has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3, error handling 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Camera/LiveCameraService.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d236521cbff4689457c592db7aca8722de4c3fe3c38014468c8219d1a5136b"}},{"ruleId":"D2","level":"warning","message":{"text":"ASRService.initialize (cognitive 21): ASRService.initialize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 6, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shared/Audio/ASRService.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"975fe2f56522957b383c0ae9b4d05bb6a951f0a14237fc64dc2ff6da173e3a5c"}},{"ruleId":"D2","level":"warning","message":{"text":"ResumableAssetDownloader.downloadFile (cognitive 21): ResumableAssetDownloader.downloadFile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 1 (3 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"88803ce2b4a19e247c6c2b05ad9e7196c2d037e14bb9c3840d2af24ed1847f58"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.loadSystemPrompt (cognitive 20): AgentEngine.loadSystemPrompt has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (9 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":"Agent/Engine/EngineLifecycle.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff74682159978b19ce1201cf1270b4fdc326c3b73cb6f9959c3e82fbf67a48ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationsView.modelRuntimeLabel (cognitive 20): ConfigurationsView.modelRuntimeLabel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 4 (8 pts), match/switch 1 (nesting depth added 9). 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":"UI/ConfigurationsView.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a86d7613f839851d90cd7e9d150ab81441844d12f5675a4a1badb475c1af9f"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveLandAudioIO.startEngine (cognitive 20): LiveLandAudioIO.startEngine has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, error handling 1 (3 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LiveLand/Audio/LiveLandAudioIO.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c707c9abc5b1ecf7cef2f1be20d6508ca56239ecd10c63890b39bccd585778f"}},{"ruleId":"D2","level":"warning","message":{"text":"FoundationModelsInferenceService.streamText (cognitive 20): FoundationModelsInferenceService.streamText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, loops 1 (2 pts), error handling 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e623afb98ee036f95eeba4cecc687baaea657feeabe6c271a726e6170e9cce2"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCompletionsLanguageModelExecutor.respond (cognitive 20): ChatCompletionsLanguageModelExecutor.respond has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 5, 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":"LLM/Backends/Remote/RemoteInferenceService.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c62f468084208a2fcd3d55da67f83fe2a3dcda34faa410f03b9c9a24ca6b984"}},{"ruleId":"D2","level":"warning","message":{"text":"ProbeView.extractFirstJSONObject (cognitive 19): ProbeView.extractFirstJSONObject has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 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":"Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed284a25eeaa0e0341e446ad7e9ac442fe8e57960272d4a8cb8d4a2e5e479b69"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeSetupGuide.resolve (cognitive 19): RuntimeSetupGuide.resolve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, 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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba4d6473e5a6e27742f9f3204abeb752bb231555b53032b6f822c645e10a7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.latestRefreshablePriorToolArtifact (cognitive 19): AgentEngine.latestRefreshablePriorToolArtifact has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, 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":"Agent/Engine/Router.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2a799fe616edb8495314f8f8aa4f6f6baef36820a589b878cd89eed36bc10a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.body (cognitive 19): ContentView.body has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ContentView.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efb1f03c8151deb59b31fe79e56a70f28c4aba7a81f1aeb9c0c0324951a97f0"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTModelStore.cleanupObsoleteCoreMLV46 (cognitive 19): LiteRTModelStore.cleanupObsoleteCoreMLV46 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 3 (7 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac55ec98a30f9ef5e5e1a0bee5a77477f15b178a8f5b9c4b3a1aa68990f6cb83"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveModeEngine.extractSpeakableSegments (cognitive 19): LiveModeEngine.extractSpeakableSegments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, 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":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a91f913476f42637c803d807df3067a4d0b97375359e063c3532dc9e7db7631"}},{"ruleId":"D2","level":"warning","message":{"text":"ResumableAssetDownloader.resumePlan (cognitive 19): ResumableAssetDownloader.resumePlan has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4b5e03a46bf02ba3f0287b5823eae07b9363c6e6cd699e9ee59c8828ebc7e0"}},{"ruleId":"D2","level":"warning","message":{"text":"BackgroundDownloadSession.inferContext (cognitive 19): BackgroundDownloadSession.inferContext has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"03809470f57792891931c91fd832623f9ec1b48b6d8634569014217486efe0b3"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteRTLMEngine.conversationSend (cognitive 18): LiteRTLMEngine.conversationSend has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts), error handling 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ae15da4cc77c27a788fe36ae09f6c3de1cac8c1bedb7f900fb5f65d74b05ae"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.finishTurn (cognitive 18): AgentEngine.finishTurn has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"443cad80285d27febeed270dafefbc05768b9ebae063e3440737a7c9e36cc749"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.canonicalToolName (cognitive 18): AgentEngine.canonicalToolName has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/ToolCallParser.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd478117fafbc7ecd7f445b9e48fceac943d1b755e7053e92fb07bd46140c0ab"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.significantQuestionConcepts (cognitive 17): AgentEngine.significantQuestionConcepts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2454}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7481e29d7d724089343805be7207a7550a89c0611799ec030b7ef9add2294ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationsView.modelInstallLabel (cognitive 17): ConfigurationsView.modelInstallLabel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (5 pts), 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":"UI/ConfigurationsView.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f86909dcb053eba4da6a9f5c495116d4bebb8effe2035cf96000220c4da959"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectableAssistantTextView.attributedText (cognitive 17): SelectableAssistantTextView.attributedText has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 1 (2 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ResponseUI.swift"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd686ba5d4b8a52aa897ea71f978dec39fa9646e2a67a38c14a64d94a1c63e00"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveModeEngine.enqueueForPlayback (cognitive 17): LiveModeEngine.enqueueForPlayback has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a573f7fa800bcfdd91149e281e7b6a62839ff39599ac383a79c2cf6fb9899900"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.rawParseToolCalls (cognitive 16): AgentEngine.rawParseToolCalls has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/ToolCallParser.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3417ca3d7240b3baf6fe12304c74ff39b3562d0ec918f3fb7b8382d7e580a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentEngine.validateGroundedWebAnswer (cognitive 16): AgentEngine.validateGroundedWebAnswer 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":1696}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d435c351dbd05e9218fdd16adc48ca9ede320733441f4285462d33ec6eace23"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillCardView.skillKind (cognitive 16): SkillCardView.skillKind has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 6. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ResponseUI.swift"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"336cf3dd098f99cb0bdbe02a33032f587d98481a11c97c24e6259ccefd6460d8"}},{"ruleId":"D2","level":"warning","message":{"text":"WebFreshness.embeddedDate (cognitive 16): WebFreshness.embeddedDate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 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":"LLM/Core/WebFreshness.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2b37204d92754be27320b5118ba8d0ed9d4d89377918a0c889bb1d1750beaa"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveTurnProcessor.makeEventStream (cognitive 16): LiveTurnProcessor.makeEventStream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (7 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Turn/LiveTurnProcessor.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b09de6929660646898d8ba1e0a47b72a9b48b35bf0a21fb99f5fb849bcd6d40"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4LanguageModel.newCache (cognitive 16): Gemma4LanguageModel.newCache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, 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":"LLM/MLX/Gemma4/Gemma4LanguageModel.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12b57f05675c77efd39416ab0b26df7d45ba2b38f43c52d805770c529843378"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentEngine: TooManyMethods \u2014 255 methods, declared across 10 files: Engine/ToolChain.swift (102), Engine/EngineLifecycle.swift (37), Engine/Router.swift (32), Engine/ProcessInput.swift (18), \u002B6 more file(s). The bar is 30 methods; this is 225 over it, 8.50\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/AgentEngine.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad81b237015448800d1a03ee07f153fa379efb5ee2a5b9ec5dafa0606fc025bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentEngine.executeToolChain: MethodTooLong \u2014 executeToolChain runs 589 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 489 over it, 5.89\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5d6c29eda8700ff7b94a139580430118a85b9b2606b5d1ddf9bf76c33f2fb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PhoneClawGateway/GatewayApp.swift: FileTooLong \u2014 2832 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2332 over it, 5.66\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71f46b59e75861f4e2fd66e93fc7e7f78991746d2e7519371f3d7253ca8e03a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentEngine.processInput: MethodTooLong \u2014 processInput runs 556 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 456 over it, 5.56\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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"912c53bfd42d373b026f8be9fc8d543e5ccdc20d6a1b4ec50bc463ec0cfaa2a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PromptBuilder: ClassTooLong \u2014 2200 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 1800 over it, 5.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":"LLM/PromptBuilder.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0778f338792fb0aae696e6022d6653d1aa73178b47dccf54dfe1b0c9c67b80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Engine/ToolChain.swift: FileTooLong \u2014 2391 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1891 over it, 4.78\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b904173b1ff4274b42d0235cd85f78bcd52283d5a454a23a6fcc9add2f05676"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LLM/PromptBuilder.swift: FileTooLong \u2014 2201 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PromptBuilder (10-2856). The bar is 500 significant lines; this is 1701 over it, 4.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":"LLM/PromptBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9495abd0fb2330a7376c5c6174663348686ef96083bcb2ea360a872c05d886"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentEngine.executePlannedSkillChainIfPossible: MethodTooLong \u2014 executePlannedSkillChainIfPossible runs 386 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 286 over it, 3.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/Planner.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af75610c85d0180d5ee6dc927108d58b6447728cb0b2c4b88ad9611cb94a591"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ContentView: ClassTooLong \u2014 1494 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 1094 over it, 3.74\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":"UI/ContentView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e699787f89e766437edc915a2107a5eb7b1df6be064fe0dc51c7b3e70d84fb8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ContentView.swift: FileTooLong \u2014 1860 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: ContentView (73-2250). The bar is 500 significant lines; this is 1360 over it, 3.72\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":"UI/ContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e9e6a1a763f442d7816f40b1c81a8e9c0a37b3c49bd17f34adb909662033bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Audio/SherpaOnnx.swift: FileTooLong \u2014 1570 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1070 over it, 3.14\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":"Shared/Audio/SherpaOnnx.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"190d48ae1011f88a47e323737b4bbb1513f604c6d8ecac7418ea5785a72fd188"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ConfigurationsView.swift: FileTooLong \u2014 1510 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: ConfigurationsView (8-1731). The bar is 500 significant lines; this is 1010 over it, 3.02\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":"UI/ConfigurationsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46d5c8091e913c0056c365a72ef8da057a0d339218133102a6b9f935500d7dc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConfigurationsView: ClassTooLong \u2014 1204 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 804 over it, 3.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ConfigurationsView.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"134719aed29b4c9f731e56eddb598bfe8eb1d5c1ebe83ec6b14262b4e4f5cc14"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiteRTLMEngine: ClassTooLong \u2014 1066 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 666 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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b540fd6dee6e858e6facc65428d8ebfc6296d6046b1766aac2e73941f8588a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Download/ResumableAssetDownloader.swift: FileTooLong \u2014 1228 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 728 over it, 2.46\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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cb14bb612f6f7446d15a825ac2566bc8ac1e8debd10cc8ab4ea0304436d65e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ResponseUI.swift: FileTooLong \u2014 1163 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 663 over it, 2.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ResponseUI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d518932d31b48154a81092cae713e0297b5eb286cd84ca6247a7d40f0a78f64a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PhoneClawEngine/PhoneClawEngine.swift: FileTooLong \u2014 1137 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: LiteRTLMEngine (161-1959). The bar is 500 significant lines; this is 637 over it, 2.27\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef28aa129c097335243f2c8901d26673ba6fcdd73e92814b97cfd7aa63af51ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SkillDetailCard.body: MethodTooLong \u2014 body runs 212 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 112 over it, 2.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":"UI/SkillsManagerView.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26951febaa2d27ccf67af539592c7ffe838a921bedfa76d4ec75379aa06f0db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveModeEngine.startLegacy: MethodTooLong \u2014 startLegacy runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db148886c313a68c52d9615d8d1c5079b05478ee7776cdce4a788c7c06468f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResumableAssetDownloader.transfer: MethodTooLong \u2014 transfer runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b2107996ed118d96990ca9a8ee9415e69cd4f20ced200b068e1cef8144a4e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MLXLocalLLMService.generateStream: MethodTooLong \u2014 generateStream runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe2ef96584a44a66aafb80018fa8b6c9ffd395f16ec8bc5ab5d354d4899c548"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveModeEngine: ClassTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 333 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e14e538c63a0aa9c768ef132a12f515376fec009dc16693aaec62e18c3d0a4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveModeEngine.processAudio: MethodTooLong \u2014 processAudio runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\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":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7022fce0995d2fb083fb4bfb9f418010682c890634f6cfa284584140bc58c7f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MLXLocalLLMService: TooManyMethods \u2014 51 methods, declared across 5 files: MLX/MLXLocalLLMService.swift (30), MLX/MLXLocalLLMService\u002BKVReuse.swift (6), Core/GPULifecycle.swift (5), Installation/ModelDownloader.swift (5), \u002B1 more file(s). The bar is 30 methods; this is 21 over it, 1.70\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":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"654862f3499a79e73da84a851875c48efcec660d21245f488f54f2024bbdbe9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Engine/ProcessInput.swift: FileTooLong \u2014 815 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 315 over it, 1.63\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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85471092d68993902a3b9c5a66b727d4670f0dee9eeffde314263f9ed05ef11"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/LiveModeEngine.swift: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: LiveModeEngine (115-1274). The bar is 500 significant lines; this is 298 over it, 1.60\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97aec1180bdeba5dfed306ea91867b83f14d6cd07e32f1b627af365bccaea09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PromptBuilder.buildDialogueActPrompt: MethodTooLong \u2014 buildDialogueActPrompt runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"LLM/PromptBuilder.swift"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfb690feaac46bac3a4a3b68f2281bb82156e3123f7752498904308e8e309ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Engine/Router.swift: FileTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 264 over it, 1.53\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":"Agent/Engine/Router.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b15696ad2f670cd65200b95a5bf287196741ec5ae3573a85d5302a2e254c310"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PromptBuilder: TooManyMethods \u2014 45 methods, declared across 2 files: LLM/PromptBuilder.swift (43), LiveVoice/PromptBuilder\u002BLiveVoice.swift (2). The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"489d5e6aa774616de62747d82c237478fa1ac391a53666083d3e33fe9dd574bf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigurationsView: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 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":"UI/ConfigurationsView.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c85e6f795334e345606829a767034c937bcf09814caa6d2f6901731866f968"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveLandVoiceRuntime: ClassTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 196 over it, 1.49\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LiveLand/Runtime/LiveLandVoiceRuntime.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90a17d600ef8211b5cfee7f868940dba6b77189f20f7345eae8fe626517501e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PromptBuilder.build: MethodTooLong \u2014 build runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d64f1fe089a0cf3f3b7f504f18b5fb139a1f54019446c971a245db5dda1e59f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MLXLocalLLMService: ClassTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 184 over it, 1.46\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b79a4a883afbf6d96809f04eff4c7068f9467ae1da57e1f56fc022f92425f3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MiniCPMVBackend: ClassTooLong \u2014 580 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 180 over it, 1.45\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b560adbeb97a3241c12232094ec2760c2e2a3103f3d9221e1a5f5213010919c1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveLandVoiceRuntime: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LiveLand/Runtime/LiveLandVoiceRuntime.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"740627b5ff7d8b8fc08facbd3bc5abe23a455e574b6a4390105afbc1ddf1cb28"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiteRTBackend: ClassTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 168 over it, 1.42\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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af6f79157d8270f2ab32235f079f863455dc94ff8219cc0742e50d4393f2859"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MiniCPMVBackend.runLiveTransactionBody: MethodTooLong \u2014 runLiveTransactionBody runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"03aeff85a6e89f7c038dd0188e8225b35a399e80741f843029d730c508e538e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Remote/GatewayProviders.swift: FileTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 189 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4712a8a84d21c4a54f60e8c99664e527ef82ee65763313e18c01098eda453a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PhoneClawGateway/GatewayProviders.swift: FileTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 189 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2bf91b8ef848b7a3088f17a149227435aa13261d9cfa35bb7bd638bf1d1ca2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContentView: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"UI/ContentView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd091115b2ed86fd7e4b447ce7f23d4b4c27d78e089b015110b3aeddd8d4ef04"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PromptBuilder.buildPreviousContextArtifactReplyPrompt: MethodTooLong \u2014 buildPreviousContextArtifactReplyPrompt runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68d90a14ae386d3d530505b0b66038c81cf0511019ff478bf3bb5ae7934bc68"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PromptBuilder.buildCompactToolAnswerPrompt: MethodTooLong \u2014 buildCompactToolAnswerPrompt runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfbd7e853743f5d172a5e3c7a4c0f250026d7952985007afcbd90351de712fd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiteRTLMEngine: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb58a4bdb590e09b619b69dd0765a5ee125505e24f2ac667404dd9847f032c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentEngine.latestPriorContextArtifact: MethodTooLong \u2014 latestPriorContextArtifact 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":"Agent/Engine/Router.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"901b95fbc6b63477af36ee16e49ee8842bb6febb9dd08f40202548c458ccef5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MiniCPMV/MiniCPMVBackend.swift: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: MiniCPMVBackend (53-1268). The bar is 500 significant lines; this is 114 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"447b4d5c3c846f061141ab99f72d2500aab2a21e3170053b17f298b25a979ff5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MLX/MLXLocalLLMService.swift: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MLXLocalLLMService (40-1006). The bar is 500 significant lines; this is 106 over it, 1.21\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":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"868edfe38f5f02b8e31a86445af7334bcf208460af5242ce15a48929541f9525"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Runtime/LiveLandVoiceRuntime.swift: FileTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: LiveLandVoiceRuntime (4-793). The bar is 500 significant lines; this is 98 over it, 1.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LiveLand/Runtime/LiveLandVoiceRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5706c9dc9e533f5f0f72743efa3e14afd7d0620572cb80ffe93d964dea0216"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveModelDownloader.downloadAll: MethodTooLong \u2014 downloadAll runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/Installation/LiveModelDownloader.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1dd0252274fb0f8e8d47dd0239edc5ce06f16eedc916d946e4dd4cb1cb4889e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LiteRT/LiteRTBackend.swift: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: LiteRTBackend (22-1006). The bar is 500 significant lines; this is 72 over it, 1.14\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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2961605009ae57b0fe4e7bea6fbb1a2ae0287053b9217ecb3565928c6b33fc2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResumableAssetDownloader.downloadFile: MethodTooLong \u2014 downloadFile 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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2248d1357afbbf7c16545f5885a08b3e4f536f36664b000fa13de8596824aaf2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Engine/Planner.swift: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/Planner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b575fa72fa4c27aa635b740c10562e144b95108aebcf92cda2f1ba2fb350894c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiteRTLMEngine.conversationSendStreaming: MethodTooLong \u2014 conversationSendStreaming runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b7060710534d80baa1e5c1880f0bef1f09d320f36cab8c39593dc110abdaca"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiteRTModelStore: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 32 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2c19cca227272553aa3a34ac7c0191d9c114e7ea85a41d088251f5589fc640"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiteRTModelStore: 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":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f07a2cadc8563f05af2c5831c37c153491f24e1d46bd1655f3572cecd54f6e0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GatewayModel: 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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f1a99358d4f44fcae9929c817204479099f6b0d2f33198c28b49209dd8631d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProbeView: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 23 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0d26a69dea8a2144665885a8241e27698d30ac3fe36117007f0d867dac647e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: TTS/TTSService.swift: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: TTSService (21-566). The bar is 500 significant lines; this is 22 over it, 1.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":"Live/TTS/TTSService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"657766d82eecb2d763515a7f73cc3dbe8159f4b278f7d0d1b620270e5268337c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FoundationModels/IOS27FoundationModelsInferenceService.swift: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: FoundationModelsInferenceService (9-459). The bar is 500 significant lines; this is 12 over it, 1.02\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":"LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e96a79a7663cd1d535a400fabc68c1f8933d381979d44af539b60273c92451e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiteRTBackend.load: MethodTooLong \u2014 load 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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a01f063119a802ecfbb27372fd1d5f18f96e5750de24a9f264066f1680efbb4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MLXLocalLLMService.downloadModel: MethodTooLong \u2014 downloadModel 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":"LLM/MLX/Installation/ModelDownloader.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c168550ce5a19e0fadcf8a6e99a996b28623c3a7716d0b3233095f12a3aec13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Widget/PhoneClawLiveActivityWidget.swift: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3 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":"LiveLand/Widget/PhoneClawLiveActivityWidget.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fee36956afd77a3c3babddd01d758b3ef9cbd85f343d3c767d21d7f07fd7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 16 shared lines): LLM/Backends/Remote/GatewayProviders.swift:580-597 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1928-1950 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:580-597 \u2014 These 3 members are variants of one another: a block of 16 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 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4017af6df3ca9727953fb88e2c9578d359508e27b00128ed6b2c534141e4289"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): LLM/PromptBuilder.swift:1704-1785 | LLM/PromptBuilder.swift:1787-1866 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"LLM/PromptBuilder.swift"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c9ee68a8bcd1addf8e39a1d5eaa737c2129d62d7656d55ed7167136d6d79d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): LLM/PromptBuilder.swift:1787-1866 | LLM/PromptBuilder.swift:1874-1958 \u2014 These two members are one piece of code written twice and then edited apart: 71 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":"LLM/PromptBuilder.swift"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"269e854ebfc3e390336189ac1c2bc5fd52825265286ab23fcf66b03291edb07e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): UI/ConfigurationsView.swift:204-244 | UI/ConfigurationsView.swift:474-505 \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":"UI/ConfigurationsView.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83fe3c9a6a22351efbc96b186011f6bff7d6be621182b33ef9f45da425d71e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): LLM/Backends/Remote/GatewayProviders.swift:350-367 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:350-367 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8f33b7487b88da1504489edc1c610f365a7c262a8508e7c478299cafabc26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/PlanningPromptBuilder.swift:53-96 | Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift:541-577 \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":"Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/PlanningPromptBuilder.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"768c0aa09afbee9674f1d19d744f2d98bbb8d4c3925d68aee883ca30ae8e21e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Agent/Engine/ToolChain.swift:2220-2278 | Agent/Engine/ToolChain.swift:2454-2504 | Tools/Handlers/Web.swift:1124-1131 | Tools/Handlers/Web.swift:1512-1551 | Tools/Handlers/Web.swift:1684-1732 \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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2220}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d79031bfc18971caaecae9fb40e8acca13e6f57c5d3a52c6b0c2cf895cad2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): LLM/Backends/Remote/GatewayProviders.swift:228-252 | LLM/Backends/Remote/GatewayProviders.swift:258-276 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:228-252 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:258-276 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8149c022a15d366847a02f8ab95caf42c864e589716459489f67b5fe00944ce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): LLM/Backends/Remote/LANBinding.swift:116-130 | LLM/Backends/Remote/MacGateway.swift:114-128 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:446-460 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:114-128 \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":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"57baffb123ea981ac10f3847a73b430791976c39eebe25ce7f6187ae1a43e4d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): LLM/Backends/Remote/MacGateway.swift:310-335 | LLM/Backends/Remote/MacGateway.swift:338-367 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:310-335 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:338-367 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"da48faac32f5fe6fb00829e6d646ef5369a1bd563e35617e3cf57abdfa4bb1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1166-1317 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1356-1426 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1474-1557 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1712-1825 \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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb754393199a91ffcc0b3ba54909bfccafd29e8124d7b59a5a2d17f81f46289a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1093-1120 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1505-1573 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3373-3390 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3695-3711 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bd9a2ee45fd810272057b4388d82e5f766840afb317c52464c05622b0c5981"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): UI/ConfigurationsView.swift:1552-1569 | UI/ConfigurationsView.swift:1571-1588 | UI/ConfigurationsView.swift:2019-2036 | UI/ConfigurationsView.swift:2038-2055 \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":"UI/ConfigurationsView.swift"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"67eacf1ecfdbd69b310c6431712a54f8ebfbb501b17094b804d3b60b1795f4b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (110 corresponding lines): Live/Audio/LiveAudioIO.swift:70-212 | LiveLand/Audio/LiveLandAudioIO.swift:84-193 \u2014 These two members are one piece of code written twice and then edited apart: 110 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":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cf15a4740f5de8de19041c4a8d07e078742056b4d37d5f2fad3b06e05d295b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (146 corresponding lines): LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:469-624 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:689-834 \u2014 These two members are one piece of code written twice and then edited apart: 146 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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63d4314d301fb74909d7e492c15dd5abeccb70cbaff775bc7f96f944cf3ee3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): UI/AudioUI.swift:12-68 | UI/AudioUI.swift:350-415 \u2014 These two members are one piece of code written twice and then edited apart: 57 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":"UI/AudioUI.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6d6f6c37fce4d95b4fb9351590d65fe2beec2e8eee2915178a7e61f4c12aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): LLM/Backends/LiteRT/LiteRTBackend.swift:582-684 | LLM/Backends/LiteRT/LiteRTBackend.swift:857-941 \u2014 These two members are one piece of code written twice and then edited apart: 85 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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbf1109c2565adf04ca870afebb16b7e5c6dac41dfb03b79158ba6c09806b25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:713-767 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:783-838 \u2014 These two members are one piece of code written twice and then edited apart: 55 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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"780a34e3f64469608246708e401a76c120b713aad885c0937aa39aa6e99f8d76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (92 corresponding lines): LLM/PromptBuilder.swift:2369-2460 | LLM/PromptBuilder.swift:2462-2575 \u2014 These two members are one piece of code written twice and then edited apart: 92 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":"LLM/PromptBuilder.swift"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03381bf0ee5eca9148d0b88690e16188c021d34e60ee20e3db5704c03b3509d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): LLM/Installation/LiteRTModelStore.swift:419-453 | LLM/MLX/Installation/LiveModelStore.swift:334-354 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7366c18852803aaa4979ffa77fe8c1377977eecfedb7f8541a944eb45960b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): UI/ContentView.swift:2349-2396 | UI/SkillsManagerView.swift:48-96 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ContentView.swift"},"region":{"startLine":2349}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ca99e0f932a9f77692f4804bc182710b79252cf05300929c77a2f07976a1be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): UI/ContentView.swift:2647-2679 | UI/RemoteMacSettingsView.swift:236-263 \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":"UI/ContentView.swift"},"region":{"startLine":2647}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e7d70a7f8016c54c55e46130184b693955d34b656ee1ca832efa40635c9029"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift:157-187 | LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift:189-219 \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":"LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf8d269fcfa913dd01515f135c1c233c30af3a38e36637faa476cc91ddfb298"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): LLM/PromptBuilder.swift:713-775 | LLM/PromptBuilder.swift:777-834 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"LLM/PromptBuilder.swift"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dea005efe3183e4807c960b4c69ef5858cf3474f0be6e34f76412264167ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): UI/ConfigurationsView.swift:1192-1220 | UI/ConfigurationsView.swift:1495-1518 \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":"UI/ConfigurationsView.swift"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dafd7540e6e489e7bcf48560695f3e90d2b3d2177198e4809490f9d2dab984"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 74\u002B corresponding lines): LLM/PromptBuilder.swift:2207-2280 | LLM/PromptBuilder.swift:2283-2365 | LLM/PromptBuilder.swift:2674-2747 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 74 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":"LLM/PromptBuilder.swift"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8969895aa602192221ecee31a9569e7aa1da3436453fe9fabd5adaadb7e2b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): UI/ResponseUI.swift:382-417 | UI/ResponseUI.swift:515-550 \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":"UI/ResponseUI.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"01870b6b04044cad5e2cb63f8501cbdf256bceeea8d48e4ab0ead16212665b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): LLM/Backends/Remote/GatewayProviders.swift:336-348 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3020-3032 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:336-348 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c41234730aa14d3d024ce87d2bab881f9431dd1bf84fe0fe35324201031a82b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Live/VAD/VADService.swift:83-109 | LiveLand/VAD/LiveLandVADService.swift:83-111 \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":"Live/VAD/VADService.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8fcada07b0563fc766c46e98ba97570bba459a4f2c943efe3cca6f0d063226"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2208-2228 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3450-3471 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62a178445722d2190058502e50d6f92f0cddfcf9dbe5e2f4cc0c3e227dd5fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): LLM/MLX/Gemma4/Gemma4Processor.swift:222-247 | LLM/MLX/Gemma4/Gemma4Processor.swift:258-291 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/Gemma4/Gemma4Processor.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1988f06262ec6df8fd42defb197a8c50c19f3358693fcbda5a3ba172f23faba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): UI/ResponseUI.swift:661-679 | UI/ResponseUI.swift:681-702 \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":"UI/ResponseUI.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d27da747f368c1c81c3c05998f19bfacd58ecfc621e9344a1a9528193de0d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Live/Audio/LiveAudioIO.swift:243-267 | LiveLand/Audio/LiveLandAudioIO.swift:217-244 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea043ef6ec545296e5470c69e8587d3cea2adfdd389d47c97d609b4e80b5c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): LLM/MLX/Gemma4/Gemma4AudioFeatureExtractor.swift:110-123 | Shared/Audio/ASRService.swift:538-552 \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":"LLM/MLX/Gemma4/Gemma4AudioFeatureExtractor.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02a81d2193018d6f4436c2248d29b19c6b6408d70be3cb9989c71194020c7b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:840-858 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:1232-1248 \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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58ed825c22f9bbe89c26faaa25a1e4ff65aa9e173e8eedfa2e1e7beaea1643a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): UI/RemoteMacSettingsView.swift:80-103 | UI/SkillsManagerView.swift:180-204 \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":"UI/RemoteMacSettingsView.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6536dbff2bfc25fc8dd511c605fcfacfebe249fb9e69ab469c09426092bf625e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): LLM/PromptBuilder.swift:533-579 | LLM/PromptBuilder.swift:581-618 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"212dfa40f5df614ac1975caf7fc46f6760a5636ffc37d81d4e240f917847e08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): UI/ConfigurationsView.swift:297-313 | UI/ConfigurationsView.swift:437-452 \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":"UI/ConfigurationsView.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73fc1e60bf5263b69ee7e7a5e1189b5aa2ce4f2be83e9e45fca7e748437f17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): LLM/Core/GenerationTransaction.swift:117-129 | LLM/Core/GenerationTransaction.swift:132-144 | LLM/Core/GenerationTransaction.swift:152-163 | LLM/Core/GenerationTransaction.swift:170-182 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Core/GenerationTransaction.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fbca87af803318bffa4a6b0c16a9a881ce26e378ac399d0c91754a7f0e02e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:546-571 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:639-663 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"056ecf40cb2caa91fd7912dd8207bbe2aa728092213de2bd8e75900516cfe8c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3490-3504 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3510-3524 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3543-3557 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":3490}}}],"partialFingerprints":{"codehealthFindingId/v1":"387331b3c11ad8470ea7a480303c0580f295ce5aa1a96eeb4ed1ee63e9daa3cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): LLM/MLX/Gemma4/Gemma4LanguageModel.swift:329-347 | LLM/MLX/Gemma4/Gemma4Model.swift:264-289 \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":"LLM/MLX/Gemma4/Gemma4LanguageModel.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"5754df2254f047af64750b0f965871e002e95ce7f896430c1ae5a743563a24e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): LLM/MLX/MLXLocalLLMService.swift:253-281 | LLM/MLX/MLXLocalLLMService.swift:283-309 | LLM/MLX/MLXLocalLLMService.swift:311-338 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d15bb40d43c9d85707d3bd8c7c060f0856dc6a46baa9bbe0310045714e79d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): LLM/Core/ModelRuntimeCoordinator.swift:192-206 | LLM/Core/ModelRuntimeCoordinator.swift:213-228 \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":"LLM/Core/ModelRuntimeCoordinator.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5938403116ac2e9421f2e4e706d3f4a559d991a34b9389fb71a4539e9e9a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): Shared/Audio/SherpaOnnx.swift:665-689 | Shared/Audio/SherpaOnnx.swift:1212-1232 | Shared/Audio/SherpaOnnx.swift:1234-1254 | Shared/Audio/SherpaOnnx.swift:1272-1296 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shared/Audio/SherpaOnnx.swift"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d459561c22eaf56d4ddc1be011ec866192a0bc68ffe4e2116fcabf9364383d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Skills/SkillLoader.swift:279-292 | Skills/SkillLoader.swift:294-306 \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":"Skills/SkillLoader.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"405ad502c9baecbbee62d3c59a69599108fb4f9af99f2c6d7b4afcbe6e3cc77f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/MacGateway.swift:394-397 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:394-397 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a5940bbd3f9863a7b0d2cf1c626dbf7069428677a7be7063dc510aa0afd035"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Live/Audio/LiveAudioIO.swift:214-239 | LiveLand/Audio/LiveLandAudioIO.swift:195-213 \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":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"55043b3181b1554539019cc6d8e75817b11c92d44e379be11082d96185910f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Agent/Engine/ConversationMemoryPolicy.swift:20-41 | Agent/Engine/ConversationMemoryPolicy.swift:45-66 \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":"Agent/Engine/ConversationMemoryPolicy.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3639974329107c4c23625b290c376eda8b758d4c09e639dc18aa94ca81802a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2015-2026 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2603-2618 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2857-2872 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"1757cdb3a788f0c7913de1be4627765036490bffec24e71ec22dc5e4d2892f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2453-2461 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3359-3367 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aaea92f4c9114cc24aecf24a1a57ea3d2376e95039a1dc6f5fead359bb10739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3475-3486 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3528-3539 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":3475}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f974baa51bc0d58f9c70989786dc521eb51273ba47b805bab0f700f3cabc48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): LLM/Backends/LiteRT/LiteRTBackend.swift:418-438 | LLM/Backends/LiteRT/LiteRTBackend.swift:475-506 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"081e690d28cd703a9de8acbf6e44a93df13e3e4db2f218841968890c113174da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Agent/Engine/Router.swift:579-599 | Agent/Engine/Router.swift:679-702 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/Router.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed3fb159eb0c1901bf7336ddd05a2236fdd06000facd7bd97c37ad59894ac32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): LLM/MLX/Installation/LiveModelDefinition.swift:53-73 | Tools/ToolRegistry.swift:156-174 \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":"LLM/MLX/Installation/LiveModelDefinition.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"280cfb9529aba4eefa3a846e474e141ae7a3f329c7239e565315e9842743b965"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): LLM/MLX/Installation/LiveModelDefinition.swift:583-592 | LLM/MLX/Installation/ModelPaths.swift:56-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":"LLM/MLX/Installation/LiveModelDefinition.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfe5d29ba1fc788a53d6681a7b17bba3481558c97c20ed272c44c64870f266a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Shared/Audio/SherpaOnnx.swift:1015-1031 | Shared/Audio/SherpaOnnx.swift:1033-1049 \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":"Shared/Audio/SherpaOnnx.swift"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ec83d7540cb109a55e92de5f9bfe74aee81655ae762fba0cbe0577aa521fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): LLM/MLX/Installation/LiveDownloadPlanner.swift:118-131 | LLM/MLX/Installation/LiveDownloadPlanner.swift:228-240 \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":"LLM/MLX/Installation/LiveDownloadPlanner.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"68056c49c3ab0838ac28ce525fce4d7a0731e1887b1fa6cbf4c17ff95ea21537"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2627-2636 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2898-2907 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2627}}}],"partialFingerprints":{"codehealthFindingId/v1":"277117ad26aec507d20de9839263b42a5ecd3af815322e30e6c2d5ad8527a315"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Agent/Engine/EngineLifecycle.swift:523-530 | LLM/Core/WebFreshness.swift:292-299 | LLM/Core/WebFreshness.swift:301-309 \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":"Agent/Engine/EngineLifecycle.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"203b0e2078fea34776451d714eb80879674f22d523ed5d77c0bbb731d7cb843e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDToken.swift:69-81 | LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDToken.swift:98-109 \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":"LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDToken.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da7f130df5239fd514426c665ba841b207151bfbc8194eade8289f90e3e7060"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/MacGateway.swift:399-402 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:399-402 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ef6ff2fb2261b3c1d57deaa382c8c4791bd1e48d5ca586ae9b215509652f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Shared/Audio/SherpaOnnx.swift:604-618 | Shared/Audio/SherpaOnnx.swift:620-634 \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":"Shared/Audio/SherpaOnnx.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d536befbe5e57a9a7d1426b8f74c1731b5273c21bbdf285e84ff4735f72b34f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): LLM/Backends/Remote/LANBinding.swift:138-149 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:468-479 \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":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda73de6d87da0f5cb0a820a1c6ad779f095bda96e8791b2a524f7a804c1da09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): LLM/MLX/Installation/LiveDownloadPlanner.swift:133-139 | LLM/MLX/Installation/LiveDownloadPlanner.swift:242-248 \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":"LLM/MLX/Installation/LiveDownloadPlanner.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"777f3a00f31ebf780b50f20b95f4140979b45a8d80838fa969d0ec0c1fbfb9d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): LiveLand/Widget/PhoneClawLiveActivityWidget.swift:558-568 | LiveLand/Widget/PhoneClawLiveActivityWidget.swift:625-636 \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":"LiveLand/Widget/PhoneClawLiveActivityWidget.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b1054b00ffd24f98ba56d17f84fa534536dbfe0aa7fca9343395f82385b719"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): LLM/Backends/Remote/LANBinding.swift:109-114 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:439-444 \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":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb1cdfc9bd5298ab60d60118a98d4d36f838a61f9c5519e74a99de4bb7b5572"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): LLM/Core/LLMTypes.swift:287-297 | Tools/Handlers/Web.swift:1747-1757 \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":"LLM/Core/LLMTypes.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0c9bf181c89579b3ffd7fb20a23e58944f903808dd1ad838c4b10dbcfb05a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Shared/Audio/SherpaOnnx.swift:1051-1067 | Shared/Audio/SherpaOnnx.swift:2104-2120 \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":"Shared/Audio/SherpaOnnx.swift"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"df544dabccdb863422aebaed9239aaac8ec9b7aa493382c890bbc796cbca9fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:522-531 | LLM/Backends/Remote/RemoteInferenceService.swift:575-581 \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":"LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cee616ec6982bbb66b6b43ccf59e521bbef9029793678862165c987d141cddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): LLM/Core/InferenceService.swift:362-372 | LLM/Core/InferenceService.swift:374-385 \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":"LLM/Core/InferenceService.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3071ac7894d22af81fa6f62931f6529c65449d96197f00b58107e5364834db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1340-1349 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2271-2277 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"66737a6f3029986c339d4f7ac526955a9511279afc5617c3de10e5943e6da645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): LLM/MLX/Gemma4/Gemma4VisionModel.swift:140-145 | LLM/MLX/Gemma4/Gemma4VisionModel.swift:155-159 \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":"LLM/MLX/Gemma4/Gemma4VisionModel.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"514bac5a1065f9c2acac0df6d128686d6c5b0d38ff2bfe511342585e355c120c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): UI/Theme.swift:82-85 | UI/Theme.swift:104-112 | UI/Theme.swift:116-124 \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":"UI/Theme.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0663df5302fffe28127f625bf362f1e58d9c47bc23ec1b5deb88a51391ac21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Shared/Audio/SherpaOnnx.swift:1815-1827 | Shared/Audio/SherpaOnnx.swift:1862-1875 | Shared/Audio/SherpaOnnx.swift:1934-1946 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Shared/Audio/SherpaOnnx.swift"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d33e3b04a191614a0eabbfb6658da341dc6e6e225a57262c6fb9b2fa0275bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): UI/ResponseUI.swift:342-352 | UI/ResponseUI.swift:464-474 \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":"UI/ResponseUI.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ccd553bc89e3bb7c00117909efea560090508280cdbaeec58a0943b1fcc6ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Agent/Engine/ChatAttachments.swift:131-137 | UI/AudioUI.swift:191-197 | UI/AudioUI.swift:321-327 \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":"Agent/Engine/ChatAttachments.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08270c6db3ccce3769f8d22beb0e636e9e8ea725d63915743aa40aca4ffdb68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:595-601 | LLM/Installation/Download/DownloadManifestStore.swift:198-205 \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":"LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"051b21a1cfd39adca5888293939b01da292e2c92d1062556ce46f2b4d04a873c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Agent/Engine/ToolChain.swift:2506-2513 | Tools/Handlers/Web.swift:1734-1741 \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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10cf9a65256ea436f7ab85a70be78b80094d95e4ec4919f44329452f3ec4ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:305-310 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:312-317 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab1e7fc078d5e0d3b47d8c34e53faa0abb956fdb609c9fb79d9d6d3a481c209"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Shared/PCLog.swift:187-196 | Agent/Engine/PromptObservation.swift:45-53 \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":"Shared/PCLog.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2adecc8433bedcb01009fe504f37a97ccb8c13087e353fafdc4fec1e053bf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): LLM/Backends/LiteRT/LiteRTBackend.swift:109-118 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:140-148 \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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"554caa06631a3dc387bcaeb89714ff5dcf345b83eb571e0af5c4cfa46b8eab66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/GatewayProviders.swift:301-304 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:301-304 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebe4ce905d3793ee63ec57368ecabe94e6b5b616acbd4482bfa1d8ebd375b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/MacGateway.swift:389-392 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:389-392 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5fee2d32e4a3605f920c168bb440141d6a73da36a1c772678c8d54337d88ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): LLM/MLX/Installation/LiveModelStore.swift:396-404 | Shared/PCLog.swift:58-67 | Shared/PCLog.swift:115-124 \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":"LLM/MLX/Installation/LiveModelStore.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"8180aead75538e81e2806aa0751150ad32aab8a2bd3856b80bc0f12ca73e9b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:120-125 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:919-928 | LLM/Backends/Remote/RemoteInferenceService.swift:168-176 \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":"LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50aa1e6b72ccb097376b60130895ddfd52d4a6ec507b3a1cf5201f3bb6de810"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/MacGateway.swift:436-439 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:436-439 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e09142a5d70d6351ee0746a6d4010358d447c869cf7cc62806dbd1a58a8877"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): LLM/MLX/Installation/LiveModelDownloader.swift:323-331 | LLM/MLX/Installation/ModelDownloader.swift:107-115 \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":"LLM/MLX/Installation/LiveModelDownloader.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb934d9d5bfb638d7834346b2dbba521b577fb9d5bd9ec1219d144c53e1512b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/MacGateway.swift:88-91 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:88-91 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f40ad46aa7b0e64d723b3f13705060c211e4ef7db1a80c1d055c6d25685cede"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): LLM/Installation/Download/DownloadManifestStore.swift:165-170 | LLM/Installation/Download/ResumableAssetDownloader.swift:1509-1512 | LLM/MLX/Installation/LiveModelInstallFinalizer.swift:74-77 \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":"LLM/Installation/Download/DownloadManifestStore.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68abc23722d66a056e01944cd28cb18fb2da40ea2f5492af555e8ee5ef80abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): UI/ConfigurationsView.swift:154-159 | UI/RemoteMacSettingsView.swift:280-285 \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":"UI/ConfigurationsView.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f219864cb1f36c44f16d60b1a8b2c78d60d723abe4d70f1daf6338c0a03c53a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/Backends/Remote/GatewayProviders.swift:990-992 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:990-992 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc5299c160bde7de41f604da4daedc73f9e8c50ff7cf9078fd70621a02e4ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/Backends/Remote/MacGateway.swift:381-383 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:381-383 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"503a51222fdbda764b0877a634c26eb454b267471084b2fc3e7c4b95747ccbd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): LLM/Backends/BackendDispatcher.swift:127-133 | LLM/MLX/MLXLocalLLMService.swift:551-562 \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":"LLM/Backends/BackendDispatcher.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce84d0233486d7af98aa79215abb2021fb9ea13d51a7dd549b204cdeef88266"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/GatewayProviders.swift:319-322 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:319-322 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90e7c2d2ab02de46fc2696973f624b9944774b232bda1cf369d286e7b5672ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): LLM/Backends/Remote/GatewayProviders.swift:973-975 | LLM/Backends/Remote/RemoteInferenceService.swift:342-344 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:973-975 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d86383311f6128707bf3d4842be0771c023d8121386383ffad297e5bc49307"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/MacGateway.swift:93-96 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:93-96 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1b1764f5a3c003120f3f1653f31920ad5e6efd9157bb3ef346d2b49a8d5f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/Backends/Remote/MacGateway.swift:84-86 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:84-86 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a561cf24b816dab3d9c939f0b982cd1f9a3544e1e96439102933470353d031"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/Backends/Remote/GatewayProviders.swift:914-916 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:914-916 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ef11e66d4ca49f3e76a9fb80b162a5ca8a666e17677e7604ce88a3d4a6a059"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): LLM/Backends/Remote/LANBinding.swift:132-136 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:462-466 \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":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8dca30e6e6be23bd5057c5b949cffe73fa76af921a0f0b4d70a8aa1495ce9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Installation/LiteRTModelStore.swift:33-36 | LLM/MLX/Installation/ModelPaths.swift:19-25 \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":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc37d1827e5847dd74dc14f38157c12110c29ce7d54f04d969dc3bbf246f730"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/Backends/Remote/MacGateway.swift:385-387 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:385-387 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8dc54accf9ef2ca845e2381f3f3674206d08513a834ce1de355477f7d0c55c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): LLM/Backends/Remote/LANDiscovery.swift:163-163 | MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift:163-163 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"LLM/Backends/Remote/LANDiscovery.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fa1c2ac9b93fb3f7c413f8e3db0da6548feb0aa53e15b316f05eec5b740b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Agent/Engine/ToolChain.swift:2515-2517 | Tools/Handlers/Web.swift:1743-1745 \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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2515}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bba41fd9f0650bd501349d1b9d5ec72d2f5adc32c0008ffe9aa963befa33bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): LLM/Backends/Remote/MacGateway.swift:235-238 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:235-238 \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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"515cdfc7f3e9fbca0377270fe6243e2fff7fad3ffa57fca85bd4403fc9ed951c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/Installation/LiteRTModelStore.swift:804-806 | LLM/MLX/Installation/LiveModelStore.swift:421-423 \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":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b14a635b0495a6f71f33032b5ca0cf23a220ca34a24283fc49cace5f03d5ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/MLX/Installation/LiveModelDefinition.swift:559-561 | LLM/MLX/Installation/ModelPaths.swift:31-33 \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":"LLM/MLX/Installation/LiveModelDefinition.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"e904888f6248b7e7c55f67c8cf83f0ce53d3420c1c9387a4402cb70313e58f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Live/UI/LiveModeUI.swift:536-541 | UI/ConfigurationsView.swift:1725-1730 \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":"Live/UI/LiveModeUI.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2820e4b3cb0e2084bdfc6d2ba7b4ef4852a00a861950661334e30fb016728a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): LLM/Backends/Remote/LANDiscovery.swift:43-43 | MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift:43-43 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"LLM/Backends/Remote/LANDiscovery.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dcc6cf74d918dcedfbea6d7b8b402a492386e79c024b706358c510177b5c7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/LLMEngine.swift:24-26 | LLM/MLX/MLXLocalLLMService.swift:514-516 \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":"LLM/LLMEngine.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d15c39bed66d87ca3d9c7c7a129ed6d0b105a06a7d663c52cf6deca0bfa768e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Agent/Engine/GuardedSkillRouter.swift:207-211 | Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift:531-533 \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":"Agent/Engine/GuardedSkillRouter.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad7db07263455bc9d2562afc74603cd148b2f9f31088821df798cb45f005b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/Backends/BackendDispatcher.swift:123-125 | LLM/MLX/MLXLocalLLMService.swift:547-549 \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":"LLM/Backends/BackendDispatcher.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af52993bf4920cd7f1c6c20b57b081951875ae7970f8f0d7e1a733ef804e1ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): LLM/Backends/Remote/GatewayProviders.swift:373-375 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:373-375 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64c61506bf8846e223a6827d337a21cfe747b33d7cac7c51e7f4230c7a3863e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): LLM/MLX/Gemma4/Gemma4AudioModel.swift:37-40 | LLM/MLX/Gemma4/Gemma4TextModel.swift:26-29 | LLM/MLX/Gemma4/Gemma4VisionModel.swift:135-138 \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":"LLM/MLX/Gemma4/Gemma4AudioModel.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe21f49b1b71ffa2e5a2c59f1cdf1947580bac52ee00bdbd740199a2293bf35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (129 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:643-771 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:643-771 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b5cfedcea3517e95c2b9677eede885a744f4bc02b87e79f1bd831f40e8af4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): Live/Audio/LiveAudioIO.swift:110-176 | LiveLand/Audio/LiveLandAudioIO.swift:102-168 \u2014 before extracting anything, compare \u0060Live/Audio/LiveAudioIO.swift\u0060 and \u0060LiveLand/Audio/LiveLandAudioIO.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 101 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 \u0060Live/Audio/LiveAudioIO.swift:110\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":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"113ba330214b521f68b41d7b32403a853a8269483135d26138a288c572f25ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): LLM/PromptBuilder.swift:2370-2434 | LLM/PromptBuilder.swift:2463-2527 \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 \u0060LLM/PromptBuilder.swift:2370\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":"LLM/PromptBuilder.swift"},"region":{"startLine":2370}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b31f9ddd10801b2c7486aec353800988245f8ac545e97033e7b469bd3fe9705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58\u201361 lines \u00D7 2): Agent/AudioCaptureService.swift:229-286 | UI/ContentView.swift:2189-2249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/AudioCaptureService.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"cded47e687f8ddbd2a409931cb16d663cbb9df4c0cbebe6b5febdab92396cad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:857-912 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:857-912 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02f71dc952490975430938166b1037c1a69b2b724d211b4285382ba79dcf38f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 3): LLM/PromptBuilder.swift:859-906 | LLM/PromptBuilder.swift:909-956 | LLM/PromptBuilder.swift:959-1006 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0c7d619d9b57bfe156ad6ab1c40f9704ede32144d0b21b69436436e551aaa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:177-217 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:177-217 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd788e8626647b38451d7985240b12c02788b463000a815e5c0f985502fb91ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): LLM/PromptBuilder.swift:727-766 | LLM/PromptBuilder.swift:786-824 \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. 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":"LLM/PromptBuilder.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d98c795f4ee79929115498a4bf64416bca6e5f6f3da9f2f404802121dd9d4f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:804-841 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:804-841 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbb0ebc6dd2992d7e6610bac8e822c3f745a3a8da5cc3340a5bf992bfa59981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1369-1406 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1493-1530 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1369\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"f904f1ba0fe7244adcb50aa5039468ea7d6202ad86c41c28f5766f273789053e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 3): LLM/PromptBuilder.swift:1538-1579 | LLM/PromptBuilder.swift:1582-1623 | LLM/PromptBuilder.swift:1626-1667 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf03425f29565397fb1c0d54447ba923fea8b5a8ddaaf768d8d81fdeb1c82ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:607-641 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:607-641 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7d98e0abded44154c6134c3c4a93b020ee6765e5fbc0e0ef449f185e3c750a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): LLM/Backends/Remote/LANDiscovery.swift:82-115 | MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift:82-115 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/LANDiscovery.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 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":"LLM/Backends/Remote/LANDiscovery.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"126b155b65d1263e1077c2dbd259647aa23613535321120098c5e05a03202cb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201334 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:727-760 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1099-1129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:724\u0060 calls \u0060inferenceFailure\u0060 and \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1096\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a64de4c40125bf5651be38652ca5dfadc126fcb38df3a54697880df52fd557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): LLM/PromptBuilder.swift:2209-2240 | LLM/PromptBuilder.swift:2284-2316 \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 \u0060LLM/PromptBuilder.swift:2209\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":"LLM/PromptBuilder.swift"},"region":{"startLine":2209}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9b9f74dbba7360c1bea74655a685f0df88e56a04c8c59a227b308478e040cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): UI/ConfigurationsView.swift:117-149 | UI/ConfigurationsView.swift:1789-1821 \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 \u0060UI/ConfigurationsView.swift:117\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, \u0060UI/ConfigurationsView.swift:116\u0060 calls \u0060applySettings\u0060 and \u0060UI/ConfigurationsView.swift:1788\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":"UI/ConfigurationsView.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8785c6f576600ab57a75f20ba63da7ed0ad40422eeda71d9ec169bf05f724db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:255-286 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:255-286 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b31f8133f318c6300e41bba8e3b92dbc008ff0619fb97e35e02f8a57e30bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/PlanningPromptBuilder.swift:63-93 | Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift:544-574 \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":"Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/PlanningPromptBuilder.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"895d57d2d969c694f157b9b63621dd8d375df64fd37c67949b37848eb69e58a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1258-1286 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1759-1789 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1258\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56941d499ccc9f883cc142a33ead02a8b93f28e0e05d98b74bdffa6dd4f25c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): UI/AudioUI.swift:12-42 | UI/AudioUI.swift:350-380 \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 \u0060UI/AudioUI.swift:12\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, \u0060UI/AudioUI.swift:381\u0060 calls \u0060frame\u0060 and \u0060UI/AudioUI.swift:45\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":"UI/AudioUI.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8056a5fb35be07fbfe18525a0d0858952c32a806cc05a249ca834c15f41caa4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Agent/Engine/ProcessInput.swift:441-470 | Agent/Engine/ProcessInput.swift:512-541 \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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29ca0d505902420d22d1e7f0bb2719a37d7ca79bdbb0e411885cc931c761d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): LLM/MLX/Installation/LiveModelDownloader.swift:150-179 | LLM/MLX/Installation/ModelDownloader.swift:234-263 \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 \u0060LLM/MLX/Installation/LiveModelDownloader.swift:150\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":"LLM/MLX/Installation/LiveModelDownloader.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6615dd63d0fc822bb978d92b8e7f6d8ac73ba0ec132f7b75b61427291eba17df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Live/VAD/VADService.swift:212-241 | LiveLand/VAD/LiveLandVADService.swift:214-243 \u2014 before extracting anything, compare \u0060Live/VAD/VADService.swift\u0060 and \u0060LiveLand/VAD/LiveLandVADService.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 126 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":"Live/VAD/VADService.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9befd9063a3d99dfc8e3d3b3ac0c3ce14702f8a69a9101b1e3528e3c8331866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:773-802 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:773-802 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1dbd1c63faab0e0a1ca32d9ba2d17a49964488851650529b9dda5b068a0d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Live/Core/VoiceTurnController.swift:96-124 | LiveLand/Core/LiveLandTurnController.swift:96-124 \u2014 before extracting anything, compare \u0060Live/Core/VoiceTurnController.swift\u0060 and \u0060LiveLand/Core/LiveLandTurnController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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":"Live/Core/VoiceTurnController.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"00784fe979495f4fc4c3e598fa5d6bfc1044ce1a8e2f9cd6909f2d1b130da833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:198-225 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:198-225 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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 \u0060LLM/Backends/Remote/MacGateway.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf451169320b35f57512da30117ef636cf544ebe019a74c2cc72b227446f564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Live/VAD/VADService.swift:114-141 | LiveLand/VAD/LiveLandVADService.swift:116-143 \u2014 before extracting anything, compare \u0060Live/VAD/VADService.swift\u0060 and \u0060LiveLand/VAD/LiveLandVADService.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/VAD/VADService.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4729402b333f1d458187b35e6d50f4937afdf4e184f572c4374cd6c8d0346d6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:536-563 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:536-563 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9b4c88e65a8081e82fd35a2b1463818e1dda928f7517fd9f5f1b6c1f191a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:342-367 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:342-367 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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 \u0060LLM/Backends/Remote/MacGateway.swift:342\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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"7baac4be19f92993f8610e65abbd2a2c696adc98a1d0569dba547fae8c0edbbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Live/VAD/VADService.swift:84-109 | LiveLand/VAD/LiveLandVADService.swift:86-111 \u2014 before extracting anything, compare \u0060Live/VAD/VADService.swift\u0060 and \u0060LiveLand/VAD/LiveLandVADService.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 126 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 \u0060LiveLand/VAD/LiveLandVADService.swift:86\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":"Live/VAD/VADService.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e85d7958f0f40ed41844bf8c3b312991c9ba60550d3ac69b0cfb1fafa6d93b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): LLM/PromptBuilder.swift:1056-1090 | LLM/PromptBuilder.swift:1093-1127 | LLM/PromptBuilder.swift:1130-1164 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bf446ea6f9a501653095435624dbe5cbeacde33a3c0274b32d31a9c5ccc4f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): LLM/PromptBuilder.swift:1880-1904 | LLM/PromptBuilder.swift:1906-1930 | LLM/PromptBuilder.swift:1932-1957 \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 \u0060LLM/PromptBuilder.swift:1932\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. 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":"LLM/PromptBuilder.swift"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"640f1fb2cf1209c86899c59f4be1e464a3a5c3bfb9deac29c438804d10f204a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): LLM/Backends/LiteRT/LiteRTBackend.swift:660-684 | LLM/Backends/LiteRT/LiteRTBackend.swift:917-941 \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 \u0060LLM/Backends/LiteRT/LiteRTBackend.swift:660\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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"6375b38f7670425dc3c4b7501f5533ab1286119368273cf3d2a4338b1862b881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:719-742 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:1033-1057 \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 \u0060LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:719\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:1030\u0060 calls \u0060makeStream\u0060 and \u0060LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:716\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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ed58c0bab3abc0051754e687fc0c353254d1d2335c1b539f6a4a4e7b1538e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:228-252 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:228-252 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"43207b7e79296d516cc4826129fefbc37b5c1a97bee87e38af4ec2a43b655f5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:799-823 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1177-1201 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:799\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"739ad03b6b59077183de9985f9626df0976d7e5d027fb559a6aba9caae381d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): UI/ConfigurationsView.swift:217-239 | UI/ConfigurationsView.swift:478-502 \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 \u0060UI/ConfigurationsView.swift:478\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":"UI/ConfigurationsView.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3acdae8ce8d28d1796a1518ab1e8f1abde05aeed4c4027fdfacc5cd1becf092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): LLM/PromptBuilder.swift:2126-2149 | LLM/PromptBuilder.swift:2151-2174 | LLM/PromptBuilder.swift:2176-2200 \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 \u0060LLM/PromptBuilder.swift:2176\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":"LLM/PromptBuilder.swift"},"region":{"startLine":2126}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6034f1b592cd77f0519917a35ca86b1f02b13e9c735d0569ba3b3074a9edc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 3): LLM/PromptBuilder.swift:2761-2783 | LLM/PromptBuilder.swift:2785-2807 | LLM/PromptBuilder.swift:2809-2832 \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 \u0060LLM/PromptBuilder.swift:2809\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. 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":"LLM/PromptBuilder.swift"},"region":{"startLine":2761}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3718bf4867d1667000116a74d20aa67b1f4f92a6a8f777da4014bfa7220d9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:128-151 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:128-151 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3618a2425bf089035527502843c934600d3a317b226c222805fea5255dd34247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): LLM/PromptBuilder.swift:1710-1733 | LLM/PromptBuilder.swift:1735-1758 \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":"LLM/PromptBuilder.swift"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdebf733d9fae0cbd8fc9f47a070cb486b62725d74288ec1bdbc47d58fcf9d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): LLM/PromptBuilder.swift:1816-1839 | LLM/PromptBuilder.swift:1904-1927 \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 \u0060LLM/PromptBuilder.swift:1816\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. 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 \u0060currentImageCount\u0060 to \u0060Int = 0\u0060 in one and \u0060Int\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":"LLM/PromptBuilder.swift"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57073f1827a4581dd41f2a017a5b5e9acccef08ac61a3dd80137def06b4eade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): LLM/PromptBuilder.swift:1840-1863 | LLM/PromptBuilder.swift:1930-1953 \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 \u0060LLM/PromptBuilder.swift:1840\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. 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 \u0060currentImageCount\u0060 to \u0060Int = 0\u0060 in one and \u0060Int\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":"LLM/PromptBuilder.swift"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"6099ec89a309f05750eceb09a8ba8bb06365bb298f6f3042497d724d1e3199a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): LLM/PromptBuilder.swift:2611-2634 | LLM/PromptBuilder.swift:2638-2661 \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":"LLM/PromptBuilder.swift"},"region":{"startLine":2611}}}],"partialFingerprints":{"codehealthFindingId/v1":"9358211a4a1dc3cc35bca94af1fea8a3224b02e18113a6d3bc9d5f49e3ddf698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): LLM/PromptBuilder.swift:1975-2006 | LLM/PromptBuilder.swift:2009-2040 | LLM/PromptBuilder.swift:2043-2074 \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 \u0060LLM/PromptBuilder.swift:1975\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":"LLM/PromptBuilder.swift"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe39c401fcb12e1d05ac6654658bcd9ec8911ba31652825de75f162e1304f64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:439-462 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:439-462 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7210ffc083773974e097acaacbecaafa5dd48be5ec81d8906261d1049a2bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): LLM/PromptBuilder.swift:1793-1815 | LLM/PromptBuilder.swift:1879-1901 \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 \u0060LLM/PromptBuilder.swift:1793\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060currentImageCount\u0060 to \u0060Int = 0\u0060 in one and \u0060Int\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":"LLM/PromptBuilder.swift"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2e945a002da9356e05e1ae3eae81453501eb066b9fa9af0771829a7f61134f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): UI/ResponseUI.swift:387-409 | UI/ResponseUI.swift:520-542 \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 \u0060UI/ResponseUI.swift:387\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":"UI/ResponseUI.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70971789347d288fb5e8d8c21b083e632f8e12fde588c07cdaaff7595c1ea94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:153-175 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:153-175 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fadb0fe95bd507bf1b9298000731a50420c775962d0b1376b527af013da75e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:278-299 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:278-299 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6749c831e35b4c891badbc8b3abd565359c6ddd4833e14ca7aca51439d0cb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:314-335 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:314-335 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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 \u0060LLM/Backends/Remote/MacGateway.swift:314\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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0e4ee379b9421e48232c8d518092ffc52d01a6e5d66b78d96e0dcd33241902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): LLM/PromptBuilder.swift:2435-2456 | LLM/PromptBuilder.swift:2539-2560 \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 \u0060LLM/PromptBuilder.swift:2435\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. 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":"LLM/PromptBuilder.swift"},"region":{"startLine":2435}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97c78cf3307dff34677debdc000b58bc06c4a04d3a9e35058cd55f246e0a4bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1139-1160 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1691-1709 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae6fa0d158a398acccec151e0fdaf040a5fd959ebcca905f0e03f5221bbcccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Live/Audio/LiveAudioIO.swift:178-198 | LiveLand/Audio/LiveLandAudioIO.swift:170-190 \u2014 before extracting anything, compare \u0060Live/Audio/LiveAudioIO.swift\u0060 and \u0060LiveLand/Audio/LiveLandAudioIO.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 101 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 \u0060Live/Audio/LiveAudioIO.swift:178\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":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d46ecec4059fb6176efb87178309aa7ab6e291b004bdd27805c4de0790d756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): UI/ContentView.swift:2657-2677 | UI/RemoteMacSettingsView.swift:243-263 \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 \u0060UI/ContentView.swift:2657\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, \u0060UI/ContentView.swift:2678\u0060 calls \u0060buttonStyle\u0060 and \u0060UI/RemoteMacSettingsView.swift:266\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":"UI/ContentView.swift"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a7ffc9bf9fe873ebf9e23b7fcd9fb3c7dec098751133600dfd5448e0a501c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 4): LLM/Backends/Remote/GatewayProviders.swift:607-623 | LLM/Backends/Remote/GatewayProviders.swift:648-666 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:607-623 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:648-666 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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 \u0060LLM/Backends/Remote/GatewayProviders.swift:648\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"187a58a8303d6fac9f4afb1a1bed2d7d14c4a4b394d58f64be569f3fd3833336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Agent/Engine/IOS27FoundationSkillRouter.swift:423-441 | LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:440-458 \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":"Agent/Engine/IOS27FoundationSkillRouter.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9764f1db21074f7b1708f12bdda3cafeb1bd4a359199e9b609a88086745a389a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): Agent/Engine/ToolChain.swift:2294-2312 | Agent/Engine/ToolChain.swift:2348-2364 \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 \u0060Agent/Engine/ToolChain.swift:2294\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2294}}}],"partialFingerprints":{"codehealthFindingId/v1":"804e5e2a5de512c74a122f15022f8f28e759152cdee4a42564a4b208551a314e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:258-276 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:258-276 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"188e2b0438ea59cb9915b44f3970ac42b8743172b39eab4208ce3b35cc8c06af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:468-486 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:468-486 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d18c4899bc2346d1aea2f167bf33ca6d6c998e93d30f7640d68ae91116630e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): LLM/MLX/Gemma4/Gemma4Model.swift:96-114 | LLM/MLX/Gemma4/Gemma4Model.swift:131-149 \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 \u0060LLM/MLX/Gemma4/Gemma4Model.swift:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/Gemma4/Gemma4Model.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de3e3e8bfbfbb0439c31a3bd5e162eef0365856898ee738d1641ab7b5de7d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201319 lines \u00D7 2): LLM/PromptBuilder.swift:463-481 | LLM/PromptBuilder.swift:687-696 \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 \u0060LLM/PromptBuilder.swift:463\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":"LLM/PromptBuilder.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9de8deb49954e7d59da214b60aa5c00e945bfbfb5fbb2845e94c5708a07293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Agent/Engine/GuardedSkillRouter.swift:214-229 | Agent/Engine/Router.swift:161-178 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/GuardedSkillRouter.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3038378c6c97c84521dc9c56d04b8fa1d8b038d6947b7df063185f90ccd2cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201318 lines \u00D7 5): Agent/Engine/ToolChain.swift:2252-2269 | Agent/Engine/ToolChain.swift:2456-2457 | Tools/Handlers/Web.swift:1125-1127 | Tools/Handlers/Web.swift:1525-1542 | Tools/Handlers/Web.swift:1686-1687 \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 \u0060Agent/Engine/ToolChain.swift:2252\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. 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2252}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc5daca23790e441d8bce1da0a425a4bf12b92b29df70a16c2e11d62d47fa41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): LLM/Backends/LiteRT/LiteRTBackend.swift:587-604 | LLM/Backends/LiteRT/LiteRTBackend.swift:866-883 \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 \u0060LLM/Backends/LiteRT/LiteRTBackend.swift:587\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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bb06cc659187873a22e7cd76bd9c37acf711215e15c8c9cfa2a981d8c01636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): LLM/Backends/Remote/LANDiscovery.swift:133-151 | MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift:133-151 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/LANDiscovery.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 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":"LLM/Backends/Remote/LANDiscovery.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a22d76946de063507708db6453dc365dfd7360be1c64686f4a050b5cc13bcc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): LLM/PromptBuilder.swift:1733-1750 | LLM/PromptBuilder.swift:1816-1832 \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 \u0060LLM/PromptBuilder.swift:1733\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":"LLM/PromptBuilder.swift"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e832716e63a0c1ac527511f81bf6e76086ce1de8cd801ce2b44d9b38bfb1157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): LLM/PromptBuilder.swift:1758-1775 | LLM/PromptBuilder.swift:1840-1856 \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 \u0060LLM/PromptBuilder.swift:1758\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":"LLM/PromptBuilder.swift"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c28f6f4294737f181553909f1a2bc605e66d229931f26990746a65b05f4d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2491-2508 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2733-2750 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2491\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2491}}}],"partialFingerprints":{"codehealthFindingId/v1":"17cdb97cbc6300961e351a112577aa3a6eb4a4217561e67320517c68d0012962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): UI/ConfigurationsView.swift:1553-1569 | UI/ConfigurationsView.swift:1572-1588 | UI/ConfigurationsView.swift:2020-2036 | UI/ConfigurationsView.swift:2039-2055 \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. 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":"UI/ConfigurationsView.swift"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"827c476d6501f72a5deb78027486c1f95a7769f8e6af16bd64cf11ffa7945711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:110-126 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:110-126 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"24578c6502e242bc56f141e0f422a29f1a22385fb311de69897646775ce16334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:25-55 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:25-55 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"750f857c8ba6686156f18888f6e61ee6644c3c518818e0b6fb49493e1bd4ce5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:289-307 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:289-307 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fc2e1bd06d321cdf61e2448da47c1ece87fa9e273d89af11fccda5090efb3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:417-433 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:417-433 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aff430dc8fb60aae5bd5657ee96aa1e7cc94fd1f44d699394056851d7b8e5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): LLM/MLX/MLXLocalLLMService.swift:265-281 | LLM/MLX/MLXLocalLLMService.swift:322-338 \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 \u0060LLM/MLX/MLXLocalLLMService.swift:265\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":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a42d4a84db52b51d329fa4d9b8d7df4cfd3d269003658934fc720af8664a5d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Live/VAD/VADService.swift:165-181 | LiveLand/VAD/LiveLandVADService.swift:167-183 \u2014 before extracting anything, compare \u0060Live/VAD/VADService.swift\u0060 and \u0060LiveLand/VAD/LiveLandVADService.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 126 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":"Live/VAD/VADService.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b22a8a5eb152be0efd05eb9fc76f2db4144c8e761c508a1aac1e933ed520893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): LLM/Backends/Remote/GatewayProviders.swift:352-367 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3036-3051 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:352-367 \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 \u0060LLM/Backends/Remote/GatewayProviders.swift:352\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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fab868313669523d89887bc7c1ffacbb8db6edd51ffdbbacda7036c65ec1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): LLM/Backends/Remote/GatewayProviders.swift:580-595 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1928-1943 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:580-595 \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 \u0060LLM/Backends/Remote/GatewayProviders.swift:580\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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a03fce486e95c13050ec656ec5ade26f1be73ac980352d11130a10fd255dfac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:454-472 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:454-472 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c03e0a508296b6bb75fdd6f6dc8636a989e7f193b5aecc695733f12877705ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Live/VAD/VADService.swift:193-208 | LiveLand/VAD/LiveLandVADService.swift:195-210 \u2014 before extracting anything, compare \u0060Live/VAD/VADService.swift\u0060 and \u0060LiveLand/VAD/LiveLandVADService.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 126 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":"Live/VAD/VADService.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4b022ee403281628ccce52974a53fbf1b1688469053acf972d704aa7175dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Agent/Engine/Router.swift:430-444 | Agent/Engine/Router.swift:446-460 \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":"Agent/Engine/Router.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3416b095ff4e61d57913ebab5c3c3a00c21de826527090ecfa8a9559e8cbf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Agent/Engine/ToolChain.swift:737-751 | Agent/Engine/ToolChain.swift:754-768 \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 \u0060Agent/Engine/ToolChain.swift:737\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"643cd4a22c5819f3bb22ca16fb917adbf5fe9c957ea126c6fc771872f3754dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Agent/Engine/ToolChain.swift:2471-2486 | Tools/Handlers/Web.swift:1699-1714 \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 \u0060Agent/Engine/ToolChain.swift:2471\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"26230ad558125491c25efb8bb39d9ac9eb6a1e661aad11e20ae3334d27ab8c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): LiveLand/Widget/PhoneClawLiveActivityWidget.swift:428-442 | LiveLand/Widget/PhoneClawLiveActivityWidget.swift:485-499 \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 \u0060LiveLand/Widget/PhoneClawLiveActivityWidget.swift:428\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":"LiveLand/Widget/PhoneClawLiveActivityWidget.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cc21ac0da039d9d9729b0b5932517ab7d676f750bd91c9767b0d7e113c111a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): UI/SkillsManagerView.swift:52-66 | UI/SkillsManagerView.swift:78-92 \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 \u0060UI/SkillsManagerView.swift:52\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":"UI/SkillsManagerView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9dcb370638b67d0257e658bb7b85eaeda0d3d7c72d39b905b3e2adebc11294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 4): Agent/Engine/ToolChain.swift:2722-2731 | Agent/Engine/ToolChain.swift:2874-2883 | Agent/Engine/ToolChain.swift:2904-2917 | Agent/Engine/ToolChain.swift:3228-3237 \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 \u0060Agent/Engine/ToolChain.swift:2722\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Agent/Engine/ToolChain.swift:3239\u0060 calls \u0060looksLikeStructuredIntermediateOutput\u0060, \u0060looksLikePromptEcho\u0060 and \u0060Agent/Engine/ToolChain.swift:2732\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2722}}}],"partialFingerprints":{"codehealthFindingId/v1":"a522bfef131b07b21ac0e581346e9a6b28d7816a652e88f150eb9dba974db1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1398-1411 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1522-1535 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1786-1799 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1398\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, \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1785\u0060 calls \u0060extractTextFromConversationResponse\u0060 and \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1397\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"119895d2bae458315d8287f4f2c5f1cfb0e9e3709253430738211a35d8d62711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:546-559 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:742-753 \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 \u0060LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:546\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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fe8de8da1746d11259a9b9021df10c2bd73be9c78162ae3aef3e9b16f821a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:83-96 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:83-96 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0805fd864bfc7cd50912035c5e2a41b4a442b06062ef1331c5ff271550093d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:565-578 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:565-578 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3dc205804221ffbaf7391e2d60b6c880882aa413d1ae7d7778046f3a096950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:183-196 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:183-196 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d934d4b44a7a19cafef7d188271a2b8c369f27a863801586fa35dfe8aaae3641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:482-508 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:482-508 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"397310e7ef43b186e34588d1bf7ff5e5ada48fbbe139a6990c8b5b3d57e6b87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift:158-171 | LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift:190-203 \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 \u0060LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift:158\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":"LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ab20065f12c981429f1fe961a1e852af084c10a70fe0161c06a3cd1d714c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift:174-187 | LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift:206-219 \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 \u0060LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift:174\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":"LocalPackages/PhoneClawEngine/Sources/MTMDEngine/MTMDWrapper.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f96d0c4cb308bb3e35c3d44849b68b199d07195fac9088f26cd25cd188e20c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3398-3411 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3429-3442 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3398\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":3398}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f929672621609f0ed6c7776d26a09566a2f942087ce173b19e7b2fa6d0a9f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): UI/ConfigurationsView.swift:771-784 | UI/ConfigurationsView.swift:821-834 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060UI/ConfigurationsView.swift:770\u0060 calls \u0060modelInstallLabel\u0060 and \u0060UI/ConfigurationsView.swift:819\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":"UI/ConfigurationsView.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fef58288a24ec64fc0fcfbff214501841fe5bb2da5374c865208f6facc2c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): UI/ConfigurationsView.swift:1207-1220 | UI/ConfigurationsView.swift:1505-1518 \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 \u0060UI/ConfigurationsView.swift:1207\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":"UI/ConfigurationsView.swift"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba10ae95a3dd3abfff451f3721dcc1a71ea1258edbac9515ffd9086c931ff63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): UI/ResponseUI.swift:910-923 | UI/ResponseUI.swift:1092-1105 \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":"UI/ResponseUI.swift"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa06d49c92fd18dfb0fdf6c5880de46f57c8530ab08757f718e2209acab8f5b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1269-1281 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1385-1397 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1509-1521 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1770-1782 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1269\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, \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1282\u0060 calls \u0060extractTextFromConversationResponse\u0060 and \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1398\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7803c7a9dce276ebf9f8057ce1a80caa347751f18f81a23be16fdd22127f80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1288-1300 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1402-1414 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1526-1538 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1790-1802 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1288\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4378afa25530e1c414d9d1bb05fefba4771d0460fd046f22c150794956c49dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:533-545 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:729-740 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:1043-1054 \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 \u0060LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:533\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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"83576ac0168b01d5e365f1bb4d41ad45daa3ff172f28fe3749e29f214eac6ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Agent/Engine/ConversationMemoryPolicy.swift:29-41 | Agent/Engine/ConversationMemoryPolicy.swift:54-66 \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 \u0060Agent/Engine/ConversationMemoryPolicy.swift:29\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":"Agent/Engine/ConversationMemoryPolicy.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdbdadd688d8c57ae5016608a4362080e253f0a69856eec878e753f372ea115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Agent/Engine/ProcessInput.swift:322-333 | Agent/Engine/ProcessInput.swift:651-663 \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 \u0060Agent/Engine/ProcessInput.swift:322\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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78e384f51c38dcf37cf027da755878e92c012317882f764981cb8586a3a1ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Agent/Engine/Router.swift:375-386 | Agent/Engine/Router.swift:551-563 \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":"Agent/Engine/Router.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"36255983ec964b40705fd7943152eabc1587ab14f411b3cec82508c8d5c549fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): LLM/MLX/Gemma4/Gemma4TextModel.swift:157-169 | LLM/MLX/Gemma4/Gemma4TextModel.swift:201-213 \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 \u0060LLM/MLX/Gemma4/Gemma4TextModel.swift:201\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":"LLM/MLX/Gemma4/Gemma4TextModel.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddf1ae0e79ede35e1d9c4660f8eb6275f4114ca869ae6bcbb2c56a167146cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): LLM/PromptBuilder.swift:1192-1204 | LLM/PromptBuilder.swift:1280-1292 \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 \u0060LLM/PromptBuilder.swift:1192\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, \u0060LLM/PromptBuilder.swift:1294\u0060 calls \u0060sanitizedAssistantHistoryContent\u0060, \u0060trimmingCharacters\u0060 and \u0060LLM/PromptBuilder.swift:1206\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":"LLM/PromptBuilder.swift"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51e922b11e10f65a3f4631280761278b3a88da0962e9c9551e2105af9c21b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Live/Audio/LiveAudioIO.swift:243-255 | LiveLand/Audio/LiveLandAudioIO.swift:217-229 \u2014 before extracting anything, compare \u0060Live/Audio/LiveAudioIO.swift\u0060 and \u0060LiveLand/Audio/LiveLandAudioIO.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 101 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 \u0060Live/Audio/LiveAudioIO.swift:243\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":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e6bf6c23d9a52399823fd033d90112295b95989b48111305ce2281ea7e6e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2550-2562 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2805-2817 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2550\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2550}}}],"partialFingerprints":{"codehealthFindingId/v1":"9518a251592f28c1df74dbcaf344c91ec758d5c00d43bf55bd32970fad83d492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): UI/AudioUI.swift:296-308 | UI/AudioUI.swift:392-404 \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 \u0060UI/AudioUI.swift:296\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":"UI/AudioUI.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c6bbb4574677ae810aeec8a64f7e0314fa5ba2b4a3d15797b4fffb95b0e15c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): UI/ConfigurationsView.swift:69-81 | UI/SkillsManagerView.swift:33-45 \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 \u0060UI/ConfigurationsView.swift:69\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":"UI/ConfigurationsView.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6069a022ebc491f311448236b8dc744dd2ff96d25d386f3eca59d156e74f35e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): UI/ConfigurationsView.swift:570-582 | UI/ConfigurationsView.swift:588-600 \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 \u0060UI/ConfigurationsView.swift:570\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":"UI/ConfigurationsView.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcd131ab6f193ac2690f873b44d6f1e8aa594bee1f448e7d6c0cf301369cf70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): LLM/Backends/Remote/GatewayProviders.swift:240-250 | LLM/Backends/Remote/GatewayProviders.swift:264-275 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:240-250 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:264-275 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \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. 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf24d6c488363b2a02b8eed728ef21309c6ebb1effa4b34b4669257d8c3ea7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Agent/Engine/ToolChain.swift:2629-2640 | Agent/Engine/ToolChain.swift:2710-2721 | Agent/Engine/ToolChain.swift:2862-2873 \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 \u0060Agent/Engine/ToolChain.swift:2629\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Agent/Engine/ToolChain.swift:2722\u0060 calls \u0060log\u0060 and \u0060Agent/Engine/ToolChain.swift:2641\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2629}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b83713d813a343ffb969d21165fae6f619fd8662bc2048b1f0a1d021a1ba30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Agent/AgentEngine.swift:492-502 | Agent/AgentEngine.swift:540-551 \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 \u0060Agent/AgentEngine.swift:492\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":"Agent/AgentEngine.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd5e5b550626e973d0cee59a8b63ef5b61e6203fb6f4d46a88a96c01a419ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:239-250 | LLM/Backends/Remote/RemoteInferenceService.swift:258-269 \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 \u0060LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:239\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, \u0060LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:251\u0060 calls \u0060detach\u0060 and \u0060LLM/Backends/Remote/RemoteInferenceService.swift:270\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":"LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b846fb1c217eb7e916c39ee113dad51759b934b1ba185c3a16a2615367804d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): LLM/Backends/Remote/LANDiscovery.swift:54-73 | MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift:54-73 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/LANDiscovery.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 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":"LLM/Backends/Remote/LANDiscovery.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abd753ba609941a51fddbc03fbddc50ac862a6891390d3f432f3ebeef9b0ab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:136-147 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:136-147 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c190d1a2c4ea8cdcde21da85be51f012c9a36a6ae5c397bf93ad7fe42afabe54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:240-253 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:240-253 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4371167476e7ba92a0d2131b883105ae5bfdebb3268a5baab813b10e8ad209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): LLM/Installation/Download/ResumableAssetDownloader.swift:765-776 | LLM/Installation/Download/ResumableAssetDownloader.swift:1496-1507 \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 \u0060LLM/Installation/Download/ResumableAssetDownloader.swift:765\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 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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"03050b9d35eebae63b6ba9ce7654c1ab3b0078eb5319e5dfe5467687d40a2e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Live/TTS/TTSService.swift:125-136 | Live/TTS/TTSService.swift:187-198 \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":"Live/TTS/TTSService.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6b628abd5d189f0c76b47c90c80e7a8e0734b9d8659b90187a40c070d70a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1364-1375 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1753-1763 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1364\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad0853231ef52033ddbb6dbe8d221ab784e06c3d636b9d198161d08fab26ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): UI/AudioUI.swift:53-64 | UI/AudioUI.swift:305-316 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060UI/AudioUI.swift:53\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":"UI/AudioUI.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"be339e4e618289588bc0e23a46b464af81343b09b73a3b6e9b27f96560f98266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): UI/ConfigurationsView.swift:1223-1234 | UI/ConfigurationsView.swift:1521-1532 \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":"UI/ConfigurationsView.swift"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf753b2ff89962e6db05d250863bf6c4b3cbfbc062fea15b71faa5bcdcfe7ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): UI/ContentView.swift:843-854 | UI/ContentView.swift:878-888 \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 \u0060UI/ContentView.swift:843\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":"UI/ContentView.swift"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"2714e4d7e232004534957045172ec58d71bdbf300127489a42b19b61a9695062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): LLM/Backends/Remote/GatewayProviders.swift:668-678 | LLM/Backends/Remote/GatewayProviders.swift:858-867 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:668-678 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:858-867 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f326dcd8a48846d080c5efdc1481b13c4432f9956941476e4ada9095c402a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): UI/AudioUI.swift:17-27 | UI/AudioUI.swift:235-245 | UI/AudioUI.swift:355-365 \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 \u0060UI/AudioUI.swift:17\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, \u0060UI/AudioUI.swift:246\u0060 calls \u0060shadow\u0060, \u0060opacity\u0060 and \u0060UI/AudioUI.swift:28\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":"UI/AudioUI.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"98aac35d1e7ad6548edb503d946e63d4789aafe65a6e8a766fa8904a385fc804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): UI/AudioUI.swift:297-307 | UI/AudioUI.swift:393-403 | UI/AudioUI.swift:436-446 \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 \u0060UI/AudioUI.swift:297\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":"UI/AudioUI.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"48336a2a9f8ba80ffc7d143ef6031c10eda13515f44af3359856e72b7c2bd83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Agent/Engine/ProcessInput.swift:356-366 | Agent/Engine/ProcessInput.swift:748-758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Agent/Engine/ProcessInput.swift:356\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, \u0060Agent/Engine/ProcessInput.swift:355\u0060 calls \u0060log\u0060 and \u0060Agent/Engine/ProcessInput.swift:747\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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"36311383995d0a9d5709e5f84e7747d8e98adba995d7355d93257cee6a1f64fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Agent/Engine/Router.swift:583-593 | Agent/Engine/Router.swift:777-787 \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":"Agent/Engine/Router.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"473b507d27d4707db92042ebb31dcbaaedbae5141b380b69fb777c44494e914a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Agent/Engine/ToolChain.swift:429-439 | Agent/Engine/ToolChain.swift:459-469 \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 \u0060Agent/Engine/ToolChain.swift:429\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd4ef931d2db208413cfb9a9a0a62bc4be65e92758638ab41a375a497949c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:324-334 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:324-334 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"c512427bced3b2090b7682f618800245352693273a248d8f41879035d58d0e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:442-452 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:442-452 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"af05504954c5c5cd9471ed507d0c0f85a1303aa3b620bde94028a6c42f493613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:518-528 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:518-528 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abc3f431d92fb069a5a37f7ed4f49328efdc7efd6910d7cc0f6e78c664d6d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1368-1377 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1492-1501 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1757-1765 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1368\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, \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1488\u0060 calls \u0060createSession\u0060 and \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1366\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"453f5626bdc8968f54df7563b5606e077690580397fb0e60e64b5179456a19ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): UI/ConfigurationsView.swift:1330-1339 | UI/ConfigurationsView.swift:1368-1377 | UI/ConfigurationsView.swift:1418-1427 \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 \u0060UI/ConfigurationsView.swift:1330\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":"UI/ConfigurationsView.swift"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf67947e016a864970d97a62dc508bc7ebec9973f201c152063877320d4104c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Agent/Engine/ToolChain.swift:2495-2504 | Tools/Handlers/Web.swift:1723-1732 \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 \u0060Agent/Engine/ToolChain.swift:2495\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f1349bce2f2514f769dd74fac9efd255b48d8d5a44cc50a196310e697e6db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:127-135 | LLM/Backends/Remote/RemoteInferenceService.swift:178-187 \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 \u0060LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift:127\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/FoundationModels/IOS27FoundationModelsInferenceService.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b828bbe8445ffb688212fe7481220a473d2627454f6407080a6cc8c6d0e238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:424-433 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:424-433 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91c3b605e76d50a37e49f61d3deeca89bae635f6c4a7bfa4a2edc0a6f3634b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2945-2954 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2964-2973 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2945\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2945}}}],"partialFingerprints":{"codehealthFindingId/v1":"2565048bb0873220aeb73ec5ff9a44175d8fe2f27912c99b53f76a57171ab3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3543-3552 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3561-3570 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3543\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":3543}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70f380a252d27507af0ff54c2760433f080a1bca55f70df084c46d2404f956f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): LLM/Backends/Remote/LANBinding.swift:122-130 | LLM/Backends/Remote/MacGateway.swift:120-128 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:452-460 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:120-128 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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 \u0060LLM/Backends/Remote/LANBinding.swift:122\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":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5200180ce0412756df853cfd75655c4e29aea3c657a1e786b69d77ff529ef62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): LLM/Backends/Remote/MacGateway.swift:311-319 | LLM/Backends/Remote/MacGateway.swift:339-347 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:311-319 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:339-347 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9727c385fbde8c7a1678aa6d98d782697da59e6b3921b9126db4b98a85b9a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:737-745 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:809-815 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1108-1114 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1187-1193 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:737\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0223fe62637d656d10a7b230e042450d5df5405912907962ccd7d3bac867a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): LLM/Backends/Remote/GatewayProviders.swift:378-386 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3054-3062 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:378-386 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b7e05b7fae79244ea1d33d16db40affaf592b2a32ef46baca8aa725edb5212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift:185-193 | Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift:241-249 \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 \u0060Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift:185\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":"Experiments/iOS27CoreAIProbeApp/Sources/ProbeView.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"631381db7c4671e9f495d749d6616182350c7b10e183c2430234fa2edd495424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:506-517 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:506-517 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ade9899cbc8eddc8a0f28ff9d77e667116e5a5b289f07e11ad21ede45d96103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): LLM/Installation/LiteRTModelStore.swift:789-797 | LLM/MLX/Installation/LiveModelStore.swift:406-414 \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 \u0060LLM/Installation/LiteRTModelStore.swift:789\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":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ca6eab18e8c488e92597b74d734fb608961bf33c039b2d16ef4135c7bf03f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): LiveLand/Widget/PhoneClawLiveActivityWidget.swift:584-592 | LiveLand/Widget/PhoneClawLiveActivityWidget.swift:595-603 \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 \u0060LiveLand/Widget/PhoneClawLiveActivityWidget.swift:584\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":"LiveLand/Widget/PhoneClawLiveActivityWidget.swift"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c016d92f1d43c91d1255d36756430f218d7e3590a4b75affba453807c393f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1003-1011 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1663-1671 \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, \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1014\u0060 calls \u0060buildConversationTextMessageJSON\u0060 and \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1674\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"7617378ca2911273e21b088f3435e25eb61d175745287bf15dcaa9ae97a7b931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2160-2168 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2773-2781 \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 \u0060spacing\u0060 to \u006010\u0060 in one and \u00608\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab2728bb59b421d9d94a708a87b3a5b6392fbde7b7847f2fcdaf9eeb6e0909b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): UI/ConfigurationsView.swift:1381-1389 | UI/ConfigurationsView.swift:1430-1438 \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 \u0060UI/ConfigurationsView.swift:1381\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":"UI/ConfigurationsView.swift"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fd103e33b9b8aeffc8a2f6396d88809fc346a5bfa37d891d4cceae9bfb714c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): UI/RemoteMacSettingsView.swift:175-183 | UI/RemoteMacSettingsView.swift:196-204 \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 \u0060UI/RemoteMacSettingsView.swift:175\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":"UI/RemoteMacSettingsView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a60086d95c818718fc495aeff565668882c7e3a92c9b282204e59ab0908ffc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): UI/ResponseUI.swift:588-596 | UI/ResponseUI.swift:601-609 \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 \u0060UI/ResponseUI.swift:588\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":"UI/ResponseUI.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb268d3519ec576f37ee6e64b96b04be32e7f31c68415a58a4c26d9d4c5b3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): Agent/Engine/ToolChain.swift:3105-3110 | Agent/Engine/ToolChain.swift:3114-3121 | Agent/Engine/ToolChain.swift:3125-3130 \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 \u0060Agent/Engine/ToolChain.swift:3114\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":3105}}}],"partialFingerprints":{"codehealthFindingId/v1":"442bea1b479f0084284ea0b68b9735f9f0992da1187e361a29a1fe61631b9598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): LLM/Backends/Remote/GatewayProviders.swift:520-534 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2709-2723 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:520-534 \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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df809a86ccf066a6e6e4e2c44797f03a37143acaaa198c69e95155c2ec815cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): UI/ConfigurationsView.swift:1380-1387 | UI/ConfigurationsView.swift:1402-1409 | UI/ConfigurationsView.swift:1429-1436 \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":"UI/ConfigurationsView.swift"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"428c2e14e0be97230e8a8eb43933cf64ce97469028679af13a915dd844e1dfcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Agent/Engine/GuardedSkillRouter.swift:182-189 | Agent/Engine/GuardedSkillRouter.swift:198-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Agent/Engine/GuardedSkillRouter.swift:182\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":"Agent/Engine/GuardedSkillRouter.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"df70f4f59860a909c5584d327654617743cd8ff9a7a546295a19ac0e30adaf02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:98-105 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:98-105 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"566cad5562e00d5f9c0ab39f35fde1c6b100ba2f2422eadb8d07b35ef9f1243b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:155-162 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:155-162 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"af146724a9d6ecd7752a72ea62133c3cd402c1dccac99d4b0c1d3ac0b52d7b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:369-377 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:369-377 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"91568dc824d3080b0f4d33a4aafe8ee96ead132e61ca7b29187bda0a6120b75b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Installation/Download/ResumableAssetDownloader.swift:838-845 | LLM/Installation/Download/ResumableAssetDownloader.swift:1721-1728 \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 \u0060LLM/Installation/Download/ResumableAssetDownloader.swift:838\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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2be176183ff0dd6f72a6a3327f533c1c86adbc059f44a90fab91b83dd8a2d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): LLM/Installation/Download/ResumableAssetDownloader.swift:1323-1329 | LLM/Installation/Download/ResumableAssetDownloader.swift:1345-1352 \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 \u0060LLM/Installation/Download/ResumableAssetDownloader.swift:1345\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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c04ef8a9976dac2fdb7ba526f9f146c403f5825ab7f58920a68e84fd0ffbc43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1967-1973 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2167-2174 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1967\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":1967}}}],"partialFingerprints":{"codehealthFindingId/v1":"905e055e9b6e1da9ad2241182ffb9e7527ca881701bb00a48b57fc554c4932a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2145-2152 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3170-3177 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2145\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, \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2153\u0060 calls \u0060disabled\u0060, \u0060opacity\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3178\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a2cb97b87ba56d9ef83047c938b92b1146d457c4475be7f8760629deff2633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3494-3501 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3514-3521 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3494\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":3494}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f19eb882500d7f426d789a46b89e6bf0705d6c58e4b11774d5b1dd8cdd3b72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): UI/ConfigurationsView.swift:1140-1147 | UI/ConfigurationsView.swift:1405-1412 \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 \u0060UI/ConfigurationsView.swift:1140\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":"UI/ConfigurationsView.swift"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"5951e0a232b7bd960624c9a6445da23e2e71f4ebb849917047eea4ac61b859e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): UI/ResponseUI.swift:663-670 | UI/ResponseUI.swift:683-690 \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 \u0060UI/ResponseUI.swift:663\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":"UI/ResponseUI.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"960793a70f7b06630fdb8fe46b6ce029804c9749028930fa92b0f9899b89339f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:596-602 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:744-750 | LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:1113-1119 \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 \u0060LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift:596\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":"LocalPackages/PhoneClawEngine/Sources/PhoneClawEngine/PhoneClawEngine.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"db03fcedbc97a44df65ab8a5e3e808935b734c7bfb5b61d67924cc590109bb82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): UI/ResponseUI.swift:635-641 | UI/ResponseUI.swift:662-668 | UI/ResponseUI.swift:682-688 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ResponseUI.swift"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"496ba5f7ec419027ba66a5b7112feb396532df4b4a0dfd0e5ebef10f37126fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:841-847 | LLM/Backends/MiniCPMV/MiniCPMVBackend.swift:1233-1238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0827e0e48a5629269cf4cd70cdf3cfb75b9b7e4175a61d95b023e35bb351f94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:843-855 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:843-855 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"464689ff9502a832803f7385960d8b9048f4ae80eb2de2578258ba9f0e8a6c85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Backends/Remote/LANDiscovery.swift:117-124 | MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift:117-124 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/LANDiscovery.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 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":"LLM/Backends/Remote/LANDiscovery.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"96aca532a697c529fd77e00f87b2ad542d858aa713930265a5f631684361302d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Installation/Download/ResumableAssetDownloader.swift:192-199 | LLM/Installation/Download/ResumableAssetDownloader.swift:220-227 \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 \u0060LLM/Installation/Download/ResumableAssetDownloader.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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9539ad6bbfd0d547df05232afbc5af14a2baef8e1007c90ed980f992c988364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): LLM/PromptBuilder.swift:843-849 | LLM/PromptBuilder.swift:1023-1029 \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 \u0060LLM/PromptBuilder.swift:843\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":"LLM/PromptBuilder.swift"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cba19406cc0e04c97b8c92ac66959aa035859ca0873568824e30033f03fb4fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): UI/ConfigurationsView.swift:1118-1124 | UI/ConfigurationsView.swift:1149-1155 \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 \u0060UI/ConfigurationsView.swift:1118\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":"UI/ConfigurationsView.swift"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a879b78f24895710623631baded350e0282bb4076047eb276b511e4329730711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): UI/ConfigurationsView.swift:1131-1137 | UI/ConfigurationsView.swift:1396-1402 \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 \u0060UI/ConfigurationsView.swift:1131\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":"UI/ConfigurationsView.swift"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dee31300b815946452f96b1c3331045d905e444ea700130bd35bec9bc779e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2082-2091 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2638-2647 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2909-2918 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f317a54697b3337f88a215f5aa3415056b6a2558f74c722acb49fc8a86b0568"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): UI/ConfigurationsView.swift:224-229 | UI/ConfigurationsView.swift:257-262 | UI/ConfigurationsView.swift:485-490 \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 \u0060UI/ConfigurationsView.swift:224\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":"UI/ConfigurationsView.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b255b8110d4b28718a242329588c2388f1cfe05aa9e791958b448ac37849f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Agent/Engine/ToolChain.swift:202-211 | Agent/Engine/ToolChain.swift:213-222 \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 \u0060Agent/Engine/ToolChain.swift:213\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2dfc5fde6d1efb17d463fa26eb0f384d21be6b801ffb7692756f5b1097e61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Agent/Engine/ToolChain.swift:2461-2467 | Tools/Handlers/Web.swift:1691-1697 \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 \u0060Agent/Engine/ToolChain.swift:2461\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2461}}}],"partialFingerprints":{"codehealthFindingId/v1":"048d57f4765a8e36e5dfea715fbeb747bf5a5677b8999ff0beb82ec4e140faac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): LLM/Backends/Remote/LANDiscovery.swift:25-33 | MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift:25-33 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/LANDiscovery.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/LANDiscovery.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 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":"LLM/Backends/Remote/LANDiscovery.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"63493dfcbe85c86ee8e1b078bb9d3636277d5784a613ef533ad5a21e94806de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2520-2528 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2784-2792 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2520\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2520}}}],"partialFingerprints":{"codehealthFindingId/v1":"623d17ceda070af5e4ba2c643683146cfb49eec8e37e1fc1671039be4a0d6cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2588-2593 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:2842-2847 \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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":2588}}}],"partialFingerprints":{"codehealthFindingId/v1":"85be9681fc700b6033523e1acc5d2a934c0971dbfe73f02ca8d8cc691783002b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): Shared/LanguageService.swift:391-396 | Shared/LanguageService.swift:410-414 | Shared/LanguageService.swift:419-423 | Shared/LanguageService.swift:461-465 | Shared/LanguageService.swift:467-471 | Shared/LanguageService.swift:473-477 | Shared/LanguageService.swift:479-483 \u2014 all 7 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 \u0060Shared/LanguageService.swift:410\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Shared/LanguageService.swift:415\u0060 calls \u0060hasPrefix\u0060 and \u0060Shared/LanguageService.swift:466\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":"Shared/LanguageService.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"19befa9fc1311127b656d44cb963a8fb8ecf70e1add6e16af602a1ac0f548183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 5): MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1100-1104 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1510-1514 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1533-1537 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3378-3381 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3702-3706 \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 \u0060MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:1100\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f31eddf0fcb476bc93f6186d282f7a024c84edca9ab4d8a9f298b3e25de0d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Agent/Engine/EngineLifecycle.swift:182-186 | Agent/Engine/EngineLifecycle.swift:189-193 | Agent/Engine/EngineLifecycle.swift:196-200 \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":"Agent/Engine/EngineLifecycle.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8ad7395b19fe5fa2e3977e6972c661b4c847ec5735634a1ecfea2ab25314aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): LLM/Backends/Remote/GatewayProviders.swift:338-348 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:3022-3032 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:338-348 \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 \u0060LLM/Backends/Remote/GatewayProviders.swift:338\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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"627659d1176bf2c199d9b88a23c4a19d027ff95657d0b2f0bc23b555f17801c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:949-957 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:949-957 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"354b341fbd1b9b77de94cdc85a9106ba8dfd80d30dfc2652d0c683ca99c7aafb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/LANBinding.swift:110-114 | MacGateway/Sources/PhoneClawGateway/GatewayApp.swift:440-444 \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":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a40d6a056b04608e93740221b6cf39f7f9052919634336626a3f76f2978139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:107-112 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:107-112 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc41664cc79bb8cbaf53e16259de6c1cddc95c484b16002f93301ddfe8fbeb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/RemoteInferenceService.swift:249-253 | LLM/Backends/Remote/RemoteInferenceService.swift:471-475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"LLM/Backends/Remote/RemoteInferenceService.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6517cf975867740169734d0869fc656f65f3b383ffcbd742bbd7f013693f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Core/GenerationTransaction.swift:140-144 | LLM/Core/GenerationTransaction.swift:178-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060LLM/Core/GenerationTransaction.swift:140\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":"LLM/Core/GenerationTransaction.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a30ecf857cbdc0dc13d4e1c8dafa5d2a883069b60205a266aaf5835f8d55ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): UI/ConfigurationsView.swift:298-303 | UI/ConfigurationsView.swift:438-443 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060UI/ConfigurationsView.swift:298\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":"UI/ConfigurationsView.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66c5010afa65315d41e8716dca6877fb293e79a70c4d93a7d795bd4a1166598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:219-226 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:219-226 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd46b5710c69166093380cb82b8ba659291a572c7d23201d22771bdb29404303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:306-311 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:306-311 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f21876290ccc971327d19e7db9b36a68e511369ee9fc7383f8acb850aa30a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:313-317 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:313-317 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"05aaafd2fb9309c85f660eaa26016cf18c9baaac34425a55070a5308bbf8f722"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:408-415 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:408-415 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43ab202ce09b86b61254fdf77bf3fc43634fedd21635fd982467045ee6286ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:599-604 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:599-604 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e125407dc46ba2cbaf03c3207113f4cd9b61ce58910335266d1984adeefbc50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:918-926 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:918-926 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"935dcc07847c699b014f3dd5e8f58c43aba86fa02403fd1954714ca21a614a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:928-932 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:928-932 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8646712e7815813d859f0d05baa014ff1beec173a6459e7dc21b75ffdf8223e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:960-967 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:960-967 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b03032e77cab56c5b4250f3c820c80fee96d5b2309602c764298b118603d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:68-74 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:68-74 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"55042e307cc4918abe14021085c9910442c3647824421a4c87d2243f2c52ab53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:130-134 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:130-134 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df3a903d29630ce89417d0ac31d2c677bae742032aee5e8d881dad2bf5d0773"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:404-408 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:404-408 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4aba9a67e5f884bb217146d3d92e44d7c44cd55c541f9a3476583be1b8ef2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:410-415 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:410-415 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe9a9f28ecd9048c0f8367a5cbbc78d610f4fcc2df5631aa28c464fd18a2645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:510-514 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:510-514 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bba3d65b0af85220e1e24dae4533cd630e0ac5116e1109a63110573f1ff8091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): LLM/Backends/Remote/MacGateway.swift:531-538 | MacGateway/Sources/PhoneClawGateway/MacGateway.swift:531-538 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/MacGateway.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/MacGateway.swift\u0060 as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 368 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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c3ec16a9b58e46e62383614a41e85fdb25bf72b5aa9e06d2717215f3c07bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): LLM/Installation/LiteRTModelStore.swift:455-460 | LLM/MLX/Installation/LiveModelStore.swift:356-361 \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":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e588a0b18dadd3bc457604331e2aa23137669fb4f2deb05e369809e988307f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Live/Core/VoiceTurnController.swift:78-94 | LiveLand/Core/LiveLandTurnController.swift:78-94 \u2014 before extracting anything, compare \u0060Live/Core/VoiceTurnController.swift\u0060 and \u0060LiveLand/Core/LiveLandTurnController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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":"Live/Core/VoiceTurnController.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0e4a4772f53ddde09e0b4601aa85575be1951d03fa72b54df7f3142fd9371c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Live/Core/VoiceTurnController.swift:129-136 | LiveLand/Core/LiveLandTurnController.swift:129-136 \u2014 before extracting anything, compare \u0060Live/Core/VoiceTurnController.swift\u0060 and \u0060LiveLand/Core/LiveLandTurnController.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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":"Live/Core/VoiceTurnController.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf846402572ab3aa6665decebc794404237847f30188b65f0506fdb1c4a841c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Live/VAD/VADService.swift:144-152 | LiveLand/VAD/LiveLandVADService.swift:146-154 \u2014 before extracting anything, compare \u0060Live/VAD/VADService.swift\u0060 and \u0060LiveLand/VAD/LiveLandVADService.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 126 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":"Live/VAD/VADService.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6189c32be2249fa2d5df5da4496a21f0ae1a4c08c06713f82e1ca94993b23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LiveLand/Activity/LiveLandActivityBridge.swift:319-323 | LiveLand/Runtime/LiveLandVoiceRuntime.swift:788-792 \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":"LiveLand/Activity/LiveLandActivityBridge.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc981f214c0db842b65d7036197912531a40b0a70c496d590fc8fda7473b8a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): UI/ContentView.swift:2682-2687 | UI/RemoteMacSettingsView.swift:266-271 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060UI/ContentView.swift:2678\u0060 calls \u0060buttonStyle\u0060 and \u0060UI/RemoteMacSettingsView.swift:262\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":"UI/ContentView.swift"},"region":{"startLine":2682}}}],"partialFingerprints":{"codehealthFindingId/v1":"549825280fef18d518a7ac482dafaed3e50c6199ab81bab33f38d8b4daac3389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Installation/Download/DownloadManifestStore.swift:172-176 | LLM/Installation/Download/ResumableAssetDownloader.swift:1658-1662 \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":"LLM/Installation/Download/DownloadManifestStore.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"974c77922483cb9ede13a4c1ec0cd3bafa0e4670d1b908e13ef31708d2919eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): UI/ContentView.swift:615-623 | UI/ContentView.swift:625-633 | UI/SkillsManagerView.swift:228-236 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ContentView.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"333119935c84d225030e0df7f967375aa73b7be78ce4d37966089ac57988cb7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Agent/Engine/ToolChain.swift:1218-1223 | Agent/Engine/ToolChain.swift:1428-1433 \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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d64270bf97c8b50e41849d68032e644d8854265566757d0f96e326354e45611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Agent/Engine/ToolChain.swift:2282-2286 | Agent/Engine/ToolChain.swift:2322-2326 \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 \u0060Agent/Engine/ToolChain.swift:2282\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2282}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd813fea1361ecccc877c5a01232abdc0c7d5283cbc51a055a763ec51a860843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:934-939 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:934-939 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d85ae8b55089c3b3aebca2da3bb24aacc97e6b7543d9966a1676ae84e62329f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:977-981 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:977-981 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"708b2c45fffafc47982d91dcdb8d501980530e629f935c22cf78e46fbc7455bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): LLM/Backends/Remote/GatewayProviders.swift:983-987 | MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift:983-987 \u2014 before extracting anything, compare \u0060LLM/Backends/Remote/GatewayProviders.swift\u0060 and \u0060MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift\u0060 as WHOLE FILES: this scan already matched 41 separate duplicated blocks between them, totalling at least 793 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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cbe2798ecb1b392ea7a3e65fa02c57d789217504bcf19ff123ab269767b428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Skills/SkillLoader.swift:300-304 | UI/SkillsManagerView.swift:262-266 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Skills/SkillLoader.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8d3838936c2c76b0014ba1117a18b20b922e9c8b9f72bba2b2174b4673a884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): UI/AudioUI.swift:283-287 | UI/AudioUI.swift:385-389 \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 \u0060UI/AudioUI.swift:283\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":"UI/AudioUI.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ad75a1d1268d61cc9dc89a8e2b99c80a54b503520c5b2a81e8e8c23d763fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Tools/Handlers/Health.swift:1057-1102 | Tools/Handlers/Health.swift:1104-1162 | Tools/Handlers/Health.swift:1166-1212 | Tools/Handlers/Health.swift:1215-1262 | Tools/Handlers/Health.swift:1266-1338 | Tools/Handlers/Health.swift:1341-1397 \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":"Tools/Handlers/Health.swift"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85610aba04fc208e3b19e6bd4a9da0c572537dcae789a3daf98300de4250a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Tools/Handlers/Health.swift:656-680 | Tools/Handlers/Health.swift:682-707 | Tools/Handlers/Health.swift:709-734 | Tools/Handlers/Health.swift:736-761 \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":"Tools/Handlers/Health.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"637ae5d3682585fd4004bba478f3fedc3371140a4d2811b29b9e714690a3f9bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Tools/Handlers/Web.swift:526-542 | Tools/Handlers/Web.swift:544-560 \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":"Tools/Handlers/Web.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"312cb8e8213840bebf598ea89cda21af1a5e420989fd14e803d293f226406c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Tools/Handlers/Health.swift:444-466 | Tools/Handlers/Health.swift:468-490 \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":"Tools/Handlers/Health.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36375c3512f8aadd5eb26ecd5e725bbf87b0c433da390d117cfc29377a3bc42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Tools/Handlers/Calendar.swift:661-672 | Tools/Helpers.swift:149-160 \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":"Tools/Handlers/Calendar.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"70018efabf04469d2c0de2e5a1635e2a2260d9b532d34354bd2f2938a7c71616"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Tools/Handlers/Health.swift:1601-1607 | Tools/Handlers/Health.swift:1609-1615 \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":"Tools/Handlers/Health.swift"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"839d79d5dba2f8a013d7c3fefaaa1694c998c23d7f5b4aea894b3c042eb17f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Tools/Handlers/Health.swift:1543-1552 | Tools/Handlers/Web.swift:1396-1405 \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":"Tools/Handlers/Health.swift"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d18c0429566e6d015a51f22e6ad6e9528d0ce236672f103621cc049f009b6f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): scripts/test-resumable-downloader.swift:163-204 | scripts/test-resumable-downloader.swift:211-252 \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 \u0060scripts/test-resumable-downloader.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":"scripts/test-resumable-downloader.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8491a89c8dd4991dac81a07af328bd3c84c0302a4c6de47df2f30fcb4cb9dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): Tools/Handlers/Clipboard.swift:22-60 | Tools/Handlers/Clipboard.swift:64-103 \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 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":"Tools/Handlers/Clipboard.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb13212c33cd199a034e3bb533b2254e56f1cf6380124112ee0ebb633b329b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Tools/Handlers/Contacts.swift:485-505 | Tools/Handlers/Contacts.swift:584-604 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Tools/Handlers/Contacts.swift:583\u0060 calls \u0060trimmingCharacters\u0060, \u0060CharacterSet\u0060 and \u0060Tools/Handlers/Contacts.swift:483\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":"Tools/Handlers/Contacts.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"81146315db4e5777306b4e7fb5278c3b94382bdad4f5ec8a15b6fd8b59f74df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Tools/Handlers/Contacts.swift:35-51 | Tools/Handlers/Contacts.swift:59-75 \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 \u0060Tools/Handlers/Contacts.swift:35\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":"Tools/Handlers/Contacts.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7848aaa33c3732556f9b67d7a85a81f131a65186b6752ae7a336cde50ae27e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): Tools/Handlers/Contacts.swift:391-406 | Tools/Handlers/Contacts.swift:531-544 | Tools/Handlers/Contacts.swift:664-679 \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 \u0060Tools/Handlers/Contacts.swift:391\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":"Tools/Handlers/Contacts.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0be2a23c47f7fadeadd99e78e723bdbc9d497b44ed6ed0146702878073c2cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Tools/Handlers/Health.swift:452-466 | Tools/Handlers/Health.swift:476-490 \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 \u0060Tools/Handlers/Health.swift:452\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":"Tools/Handlers/Health.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"308203e17ea5ce237122718bb7727f6f171ce13c5054670cecbd43677731827e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Tools/Handlers/Health.swift:1286-1300 | Tools/Handlers/Health.swift:1360-1374 \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 \u0060Tools/Handlers/Health.swift:1286\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":"Tools/Handlers/Health.swift"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a77e8a4ca43fbd9b87d29ca9fbf89719b99c33a84b5fd71a62314eee0cf5ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Tools/Handlers/Health.swift:667-680 | Tools/Handlers/Health.swift:694-707 | Tools/Handlers/Health.swift:721-734 | Tools/Handlers/Health.swift:748-761 \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 \u0060Tools/Handlers/Health.swift:667\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":"Tools/Handlers/Health.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"962923b198e2b4adf991cf907264dcc6795a595862dcfb537e0c22c59997aa93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Tools/Handlers/Health.swift:1079-1092 | Tools/Handlers/Health.swift:1135-1148 | Tools/Handlers/Health.swift:1189-1202 | Tools/Handlers/Health.swift:1239-1252 \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. 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":"Tools/Handlers/Health.swift"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"d130fae2227c57904f21a0b7012edcf6cead564ffa6c1815d8db4fc5939f9467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Tools/Handlers/Contacts.swift:616-629 | Tools/Handlers/Contacts.swift:700-713 \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 \u0060Tools/Handlers/Contacts.swift:616\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":"Tools/Handlers/Contacts.swift"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"a199e3faff942197d9785cde402d1132b9a3daf87c58debf044304e6420f1407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): scripts/test-resumable-downloader.swift:123-135 | scripts/test-resumable-downloader.swift:177-188 | scripts/test-resumable-downloader.swift:225-236 \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 \u0060scripts/test-resumable-downloader.swift:123\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, \u0060scripts/test-resumable-downloader.swift:176\u0060 calls \u0060prefix\u0060, \u0060write\u0060, \u0060writeManifest\u0060 and \u0060scripts/test-resumable-downloader.swift:123\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":"scripts/test-resumable-downloader.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea422f5353034fe972435f448c7d4187fdee35da4819c16cdc8cb15e28a56e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Tools/Handlers/Clipboard.swift:170-181 | Tools/Handlers/Clipboard.swift:191-202 \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 \u0060Tools/Handlers/Clipboard.swift:170\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":"Tools/Handlers/Clipboard.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d3ff824dcc477dd56008643e5528192887c2dfe4ac0a26ee5f91d494f4070c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Tools/Handlers/Health.swift:380-388 | Tools/Handlers/Health.swift:984-992 \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 \u0060Tools/Handlers/Health.swift:380\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":"Tools/Handlers/Health.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fde7f0dc88dfa74798cefeb772dbf3b6bc1421e8977bbcd1a7b2a1570e7291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Tools/Handlers/Health.swift:1237-1245 | Tools/Handlers/Health.swift:1359-1367 \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 \u0060Tools/Handlers/Health.swift:1237\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":"Tools/Handlers/Health.swift"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbc6302ba6cb29ee26a245767f24ea6678cfaa834de88213f3eafab8e25918b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Tools/Handlers/Calendar.swift:662-669 | Tools/Helpers.swift:150-157 \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":"Tools/Handlers/Calendar.swift"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d1da6322e2e90bd1199b8af93aa8e084167ab2d68406b5ea67a3c7d7e49086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Tools/Handlers/Contacts.swift:654-662 | Tools/Handlers/Contacts.swift:744-753 \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 \u0060Tools/Handlers/Contacts.swift:654\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":"Tools/Handlers/Contacts.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9aeb6e9051333dfa96a05332cad166020b2c708c66c4aa7f1bb6edc2efd326"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Tools/Handlers/Web.swift:535-542 | Tools/Handlers/Web.swift:553-560 \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 \u0060Tools/Handlers/Web.swift:535\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":"Tools/Handlers/Web.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd219b7fbc50df8328727301a36f0c600db67fd189ffe7c2373b3a290fbd9915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Tools/Handlers/Calendar.swift:647-653 | Tools/Handlers/Calendar.swift:662-668 | Tools/Helpers.swift:150-156 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tools/Handlers/Calendar.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7c2d227327fa4acd979efe97dd1483104bd2bf98c9ca28cc7038493ad50e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Tools/Handlers/Contacts.swift:377-384 | Tools/Handlers/Contacts.swift:458-465 \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 \u0060Tools/Handlers/Contacts.swift:377\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":"Tools/Handlers/Contacts.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0005055503f8b4750192a3e9a242b521729b888e42019a39436b11baa7ae4d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Tools/Handlers/Health.swift:323-331 | Tools/Handlers/Health.swift:885-893 \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 \u0060Tools/Handlers/Health.swift:323\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":"Tools/Handlers/Health.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"70242dd9f66014d9796cb1dfa2ebb7faf5ac8d954eb49aee70323ddd002a55cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Tools/Handlers/Reminders.swift:196-202 | Tools/Handlers/Reminders.swift:251-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Tools/Handlers/Reminders.swift:196\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":"Tools/Handlers/Reminders.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"78750e2958e34701f882e89868ba7140c1519d9f7874a6d83e0e70f74e88ceac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 6): Tools/Handlers/Health.swift:363-368 | Tools/Handlers/Health.swift:371-376 | Tools/Handlers/Health.swift:379-385 | Tools/Handlers/Health.swift:967-972 | Tools/Handlers/Health.swift:975-980 | Tools/Handlers/Health.swift:983-989 \u2014 all 6 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 \u0060Tools/Handlers/Health.swift:379\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":"Tools/Handlers/Health.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57d22026ff5ed589a594b8c484625ac5dece026d2795054c6fc3ee6f3341681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): Tools/Handlers/Health.swift:1087-1092 | Tools/Handlers/Health.swift:1143-1148 | Tools/Handlers/Health.swift:1197-1202 | Tools/Handlers/Health.swift:1247-1252 | Tools/Handlers/Health.swift:1295-1300 | Tools/Handlers/Health.swift:1369-1374 \u2014 all 6 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 \u0060Tools/Handlers/Health.swift:1087\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":"Tools/Handlers/Health.swift"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2223acbb240fa40ca114bbd793b3497eed193215391791b309bf09c21bf1866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Tools/Handlers/Web.swift:527-532 | Tools/Handlers/Web.swift:545-550 \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 \u0060Tools/Handlers/Web.swift:527\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":"Tools/Handlers/Web.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ba242aea4277b47bb10c25afaefdc1d5b7e4f7c247ae45ea2120369ed7f3e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Tools/Handlers/Calendar.swift:848-859 | Tools/Handlers/Contacts.swift:760-771 | Tools/Handlers/Reminders.swift:268-279 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tools/Handlers/Calendar.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ffd383b7108c8868a99f2a9736ff5410ec469324693c278dd43c3127a56de9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Tools/Handlers/Health.swift:1066-1070 | Tools/Handlers/Health.swift:1174-1178 \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 \u0060Tools/Handlers/Health.swift:1066\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, \u0060Tools/Handlers/Health.swift:1179\u0060 calls \u0060Date\u0060, \u0060date\u0060 and \u0060Tools/Handlers/Health.swift:1071\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":"Tools/Handlers/Health.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f91a116fe1da0c2cbaf9d83619c892e3d98116a07b9b74f3b6ab390b47170c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: PhoneClawEngine: PhoneClawEngine: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c1b563c1477abbb48402b0f9bbe37ff3049270befcb41d442e08472ba0d1759"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MLMultiArray (LCOM4 6): MLMultiArray\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":"Packages/FluidAudio/Sources/FluidAudio/Shared/ANEMemoryOptimizer.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"de26b254fa6af560590d8f98e9f4908a17a9eed5b6d2052d81448d7054249e23"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AgentEngine (LCOM4 6): AgentEngine\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":"Agent/AgentEngine.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa47b85c5c937ec556d31987a23095e0ad64437a9847bbc7729afc4678e57ca"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MLXArray (LCOM4 5): MLXArray\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Source/MLX/MLXArray.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfd19de6f75a74026fc58822e8575ed71f33e6619d03c8c987f56b4605806bb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatSession (LCOM4 5): ChatSession\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/InferenceKit/Libraries/MLXLMCommon/ChatSession.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8de5b3b2f06d33c271e589d3babe7ac894640562fadd821dcea4ee13b3658e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TextNormalizer (LCOM4 4): TextNormalizer\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":"Packages/FluidAudio/Sources/FluidAudio/ITN/TextNormalizer.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25f8955ca1f5b6db4b6f27aace62123b153d353fceff634d16ca861773ec9ff"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Module (LCOM4 4): Module\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":"Packages/mlx-swift/Source/MLXNN/Module.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd44d9bf582a26171871d0aa698ab27b66dee800c1db9d6caeeca1e0f0a0068"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ToolRegistry (LCOM4 4): ToolRegistry\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":"Tools/ToolRegistry.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d6f509a2ec518f36b85393daa1a3a694160f3de5467dbdeedf21199f3e0899"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LiteRTDownloadObserver (LCOM4 4): LiteRTDownloadObserver\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":"LLM/Installation/LiteRTModelStore.swift"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cc99f9806cf5aabe2ccef21dfd7a9d74009d00c92eddad5a08818223d413d7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LiveDownloadObserver (LCOM4 4): LiveDownloadObserver\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":"LLM/MLX/Installation/LiveModelStore.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa12d87b10cde80a3f083d586598df948b41e29736992ef6f8afed7a174944a2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseKVCache (LCOM4 4): BaseKVCache\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":"Packages/InferenceKit/Libraries/MLXLMCommon/KVCache.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb3e4667f1e7f9a1552ba14bad04044c05d8e43c8e62ac71e4adcc36e7ca824"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: QuantizedKVCache (LCOM4 4): QuantizedKVCache\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":"Packages/InferenceKit/Libraries/MLXLMCommon/KVCache.swift"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b38a4909f2a5801c753ca84a1693d3fa3201a5b7cb2ea91c3eaf05e0e2eef08"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ModelContainer (LCOM4 4): ModelContainer\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":"Packages/InferenceKit/Libraries/MLXLMCommon/ModelContainer.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"13498ac79c4a4b248c8d88f1f5180329b55e0b15aef63d7295f9027e8fc55a69"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/BenchmarkRecord.swift: 0.0% line coverage (0/13)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/BenchmarkRecord.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6748c676702b07d7922cac156414bea322fcd30156c633222cea0c7fdac9a60d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/CoreAIProbe.swift: 37.9% line coverage (11/29)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/CoreAIProbe.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c737604e5f6659ffcec5628b0efdfc2bbc0df1645d22df7986fbd5f2d582d0"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testWiredMemoryPolicyStackingAndCustomPolicies: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/WiredMemoryTests.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bdc5616797a3e6480cfd10f9983faedc84131968f2249bdaae1fe7dfbb6071"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testReservationOnlyKeepsLimitAtBaseline: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/WiredMemoryTests.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"72184e0c27732dc9a84a89977a79e674396f3c123e16968c90a8da69ffdb9cca"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testReservationPlusActiveRaisesAndRestoresBaseline: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/WiredMemoryTests.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"408802095418a3d7da483319c1612fc5693494709d503c219d99533e3086c991"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testHysteresisPreventsSmallShrinkWhileActive: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/WiredMemoryTests.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"365ca6619c20dfe35ebcd834a01ac60bcec0ee643f8e22ed8a0b956ff2625e5b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCooldownPreventsRapidOscillationWhileActive: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/WiredMemoryTests.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ecc494b28a7060e2fa228d3992796be727d28b8382bde08e60a69b9fd3242d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAdmissionUsesReservationSizesAndActiveSizes: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/WiredMemoryTests.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4026263c0153b294bbe3e96f641dfd44f36960335197c870781cf5ab15cb35d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPolicyOnlyModeEnforcesAdmissionOnCPU: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/WiredMemoryTests.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"714cdc0ffb4e94846aacc7c9ad322c7aa1e220f7f820baebad767b58a8faa5a3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testParsesChineseRelativePhrases: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Tests/PhoneClawCoreTests/WebFreshnessTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cb83956fa7c024e79ac99f6065a1ed55e1e3c5ed96c479412cfcb027fd1753"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testParsesEnglishRelativePhrases: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Tests/PhoneClawCoreTests/WebFreshnessTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1153b4bcaba1f31f7559e4243fee2d460ad89aab9803b5dedc6a4fb790cda6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMinimal: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/CmlxTests/CmlxTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"301ddceecd54da04c098a023dbdaed3bd58f0e67c80ff5bf134d1aa7db8790fc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArrayAt: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/ArrayAtTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8875b5ba02ebac17e9ea439213813dec03caf2e3a7dd048b54e0534053812c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExportFunction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/ExportTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"870445bea7bcb68ba0c65ae68091d00859e5dde11930c815c549228c9338257c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExportFunctions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/ExportTests.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"655477976cc39b76341f2538b6e96ac7e12652372f47923185889fac7c76fbf5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNormAxis: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/LinalgTests.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"94205091479405756674845672c19fe7ea7936ee55436a6967215f556dd0ad56"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNormAxes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/LinalgTests.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3332ac6ace75484acef24ce23bcd8feff93e923f52a317010e260a2886242ed7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testQR: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/LinalgTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"84690b6201f05a990d9e9714da33ea2a3641e2e70958ed3c50ab67b9b1ea72a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArraySubscriptAdvanced2: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"51eb0bd44887af7eae36b32e182877aaf6365c88e856231f2f10d3275509a2ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArraySubscriptAdvanced2d: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"af47300d9d5d325502148ba7c31ba57ec522bb6545d8bb0e4f6964ab911eca92"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArraySubscriptAdvanced2d2: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f3e0e4da885d07489bb599a9507c0d63995a49f83a38db6e8c2a5996ed0ec1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArrayMutateSingleIndex: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cc143bfc33be149df21e078bc0409f1f3d0525da5f36e6c4bda0254a07dc3d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArrayMutateBroadcastMultiIndex: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c72475d2d8ffebf1709ffb6e048e2f045517b4535d5d53aee3ff313626a6cd0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArrayMutateBroadcastSlice: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"69de3b775d28a89686d88633a8f696d60ba12a76bcb56282fb95c2bd8b60990d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCollection: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"7995be21d75e21de0f1897341aa27f11e75282575e50fcddff55c695dce2978f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReversed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4c1db598b123e2ecc986386da21939d85c69299619ed7751c4014b390b2538"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedBy2: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a075250008cc3885583300384599a80389fd84bf852d85f4022430a9f17f1362"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedBy2Offset: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0329d928449dc553d9576640e47820e34c974cd46dfed964994721e44f0de5fb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedByNegative1Last: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f91b05809b7a9728b22e69042755f4cbbd6974fcf3172892ac1729fb066e76"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedByNegative1First: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc2d92e995375f32379f0860eda12a01a597150516d0ba5991eb9fbc9780f9c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedByNegative1SecondOffset: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18c2c02fe5fc5cb317c32f5691262bf95e48231b05644a3a9036f537c7f45ba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedByNegative1LastOffset: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac158e0a75460e59d0ccb48c033b35b0ab4699a37627b3f558ef1c725d3c207"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedByNegative2SecondOffset: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"a724a2785f8eb6b5146e50671aa60b73547de6f240f427b7e1aa678e0a9da242"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedByNegative2Last: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ad17bedc189709d3ddc5f18d3d129b6cb0fb327e4c246ba618bc5a22014f18"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedByNegative2First: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e55b065de1308f43ec6c4c079105b36768eb34543d16f8edf2ad054bde96b9e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStridedByNegative2SecondSet: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec09a2f3b1d7d06454d98f65dee869f136bf502df69501a20765cd6e0ebe6cc6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFullIndexReadSingle: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfddb0f9d35bafc65d5d6fa865813e402ced4b3574a8061d2868c07d46811a3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFullIndexReadNoArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d322a5ba2501a35da8b9ea21257b1440feeba5fafdae68ce5dff49804c77dd2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFullIndexReadArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaf40d8e3d07af2d6f53d9d9be4834f2d78ccccec7319879039495f829c2cd6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSliceWithBroadcast: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BIndexingTests.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"1638456593e90617757c455cf9e676f2332484a18070e06358b9acfa77c783d6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArrayCreationLiteralArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BInitTests.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"506323a09a6aad8f1e989b0127decbc9c7558251bef37199fbfbdb4b0acb5e83"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testData: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BInitTests.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7831696652c7dd27589cf5963b3051dcb7f4b784549a7408b88d3e91d70db042"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUnsafeRawPointer: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BInitTests.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c473506aa60b80b46ec9815c7418b96f285dea3982673d0100a5c95816390136"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUnsafeBufferPointer: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BInitTests.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"2881d6cb5e9e6e956f7a532ed0f3a56d71882340293b7813ddd845c10ac9c34e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testComplexArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BInitTests.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4949d2b5364153b39ea187966d50cddaf6996220329ac67c08a47fdb93bbd549"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFunctions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BOpsTests.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d4d0ba113390fa06b032984fd08134c2165f02836383264819515b0cec1735"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMoveAxis: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BOpsTests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94ba8ab7de6c5c9289e60036fb0112761fe966ee2f5c873ce2f1240d8764625"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSwapAxes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArray\u002BOpsTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1c7ce93459488297b8f5a74fa6ad4cc9c7e9cd8334314a1b53e5614888da45"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAsDataRoundTrip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXArrayTests.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"2967ee8920b80169c5d41f796b626d98313a1c982fee96f8a10b496b222956be"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFastSDPA: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXFastKernelTests.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dff777127684f8e4d7045c4eeaed38236ea391a88a1d6d46d9231af0d0560af"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUniformMultiple: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f5d7cc081fe6b9ddbd957d324862094b775fdd5408eb4e21690f8ad7e4f58b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUniformMultipleArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"48abeb4df47e65f423e3ef898870d9326887ad81ef626811484db1655c162f52"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRandIntMultiple: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9005835dcbc2365bd43177a12ed37a4c23284e733390b7412f6dd0682000550"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRandIntMultipleType: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6659784d72c6c590821ef5af983867611609bff084ed59551fe645183f0f43"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBernoulliMultiple: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1edfdb978dc9bb8b80e90caf2d85f5d8810a08fcd80592d1c96396584918b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBernoulliP: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5045acf8456a2231b72e290e95b18b8148d7af3a86b02e38322b17068a3ab07"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBernoulliPArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7237f23a924f8746fcba845bce09f7e2a713597a67c106a6f1cf5a5aff6028"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTruncatedNormalMultiple: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfd3e32896bd4cbdd99e2f64833325aee3c28d77bc2ab9c7ed5d4ac2afa0a66"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTruncatedNormalMultipleArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac921143b424da86d6217ab4eb2cac77c5a82080007deec13198a083e28989d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRandomStateOrKeySame: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bedbeb91a3d9090d2bac35bd14e8b6ee9b62d0d9b921e0bcda49cc8c178791"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRandomStateOrKeyDifferent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MLXRandomTests.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f67e1fb64753f34755e5ff8628d5a6f9255aeab48fc3ec5c34f0431a166b1c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWiredMemory: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/MemoryTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b3b92e2c7cce8bffa79d118e87a229f3575dcbfbcfb8758b30267735452726"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSequentialQuantization: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/ModuleTests.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c8c2148cae66ac2d293910de6d1a91014473dcc743782757ab55dad3eae06c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAsStridedReshape: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OpsTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51900ff95c5cb3574589c83aca05359c72204a6910787a0c73387ea60d9996e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAsStridedTranspose: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OpsTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab82c3308091b24bbfd8600b7ff1e939774bd0f5e473a4458bfe8b61eadfb32"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAsStridedOffset: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OpsTests.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c22871638822aebd7ae987e9323c4247257df3ee87e1e285d6bb006538a0780"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTensordot: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OpsTests.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"092469fbffff9da06c038b69e179eaae114d99247e698224b64ad9e634b49562"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFlatten: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OpsTests.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b466033964f01fdf1669fc734474b7a74ca00d999f81c00cbb97182616156f7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSGD: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1585acda9700e76448d70770821ffaec1517e438537d9389d7ca0205b4b5c5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRMSprop: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1845affa02a4dbbc906597b3c324a3091ad7c33291243112d05265d9d3dc908a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAdaGrad: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e2140ee16eacbbf34d840361d6759ea5b0a16b4bd46f2745f33dd78b486fff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAdaDelta: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f07e24a4d590037e26cd55c463eff9c46162fff66607c40d266eb6c0fdf362"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAdam: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"16395e21b68f107c1b76321dc8526af06d2fc4fea9e8ffdcedc61af76648f421"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAdamW: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecd4943689f10feee4aba18baef15e5bccdea4e9666db295b8ba07a4c846e68"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAdamax: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"79afaf632605ab81b0ca2cde28d37a39487e60094f6198c05e56c47103e886ff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf5bcd5352b9905410f895c66c4620e20ee5c1bbf5bc464463f53da0b211dff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAdafactor: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/OptimizerTests.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"317092d88e2def6f15c65645cdf1a0273a536a2110a28e8998d5799918aeed0c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMaxPooling1dStride1: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/PoolingTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b58ff6614ec12b1bb8bc703ecc7832a5f48d478c1c4fba99586ac3e4841af05"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMaxPooling1dStride2: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/PoolingTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23d09b6df236f3f222387527f8ea41e3591802693eb8dcb5e89de1573c5651a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMaxPoolingStride1: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/PoolingTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1e7eb5dc7fc66fbe3304c6f1d5194b00870a8b1b1f50a67fb3c06207236264"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMaxPoolingStride2: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/PoolingTests.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d75c77ad7c0f1fbb1db62bb5ccff90789e3fa1dbd97c20e0132d2348e862fe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAvgPooling1dStride1: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/PoolingTests.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b666bedecab12a782ace4fdb8580fd603aed632db639d3a900160087b051c815"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAvgPooling1dStride2: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/PoolingTests.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec834243c77c327f9abe16745bfe2c86e974284f40ced6405912e9bc020cd4b3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAvgPoolingStride1: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/PoolingTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7786e2a656e65f80a26aee5c284dbeeacb5f527ca2662f8d3332d89bbaa8cd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAvgPoolingStride2: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/PoolingTests.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8f9f00076397b286a83969b8ca592d361e5dcc14b9dcaea4f41db62d256c84"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSaveArray: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/SaveTests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3805f45aded33dc63c7bc0dfab8f225aaa9744ed733cbbe32c503a4f195c660"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSetUnsetDefaultDevice: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/StreamTests.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"92239d48257600e669bdde0e930782b82c3d4d32e21b899f4b23af15dda3f280"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWithDefaultDevice: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/StreamTests.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed1afe47baafc934962f1c87d2b4c5f370756332f66a7a1e09de54f6f650664"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEval: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"88327d55c9681f1c7d96be4cae8d8b210a265fee6eb894a08e6d73bcfd66f57e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompile: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"738b6a6e55b728f15d88bda46c362ff965e60b1e48055d093418d02df54adbaf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompilePerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4e0a474336914fe7e9006ac71ce7f742f1e347e37619abafb1e319c5ba725f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVmapSimple: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa11f1dbe1d0faee2e02e4a020021713284ab1a8d2c42582610b2c2a2c8abab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVmapTwoInputs: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"44642324c7df5db253d4880ac28ce4967941bf57189e2f4b6b520b79010738ff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVmapAxisPermutations: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bdba920831b03c1578a71bf1c8a9740160d5d4f977b061ba01f51fceec1107"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVmapTwoInputsAxisPermutations: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3be2e2c264637e0c1d6d2e169e00a2b22b57634c0b6534c432f8a8f8375e80"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVmapWithCompile: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cef33e5dfa5aad4fa6f84549b083e92a658b46dc3c8168c5014c69d36575926"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVmapWithGrad: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"28480149c8ea120a0e65c60607e52cb007e40d3466788614fdb287cc110a96b5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompileThreadSafety: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce025921ba8ca25a4cf60796d61b13710597a3bb95f6338c7888e0510d73de00"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVmapThreadSafety: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/MLXTests/TransformTests.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c4d92c0abbefd5bfb313d74ec136546124c144de020bc6970fedb83a13e96e"}},{"ruleId":"D10","level":"warning","message":{"text":"Test project verifies nothing: CmlxTests: No conventional assertion call was detected in 1 of 1 tests in \u0060CmlxTests\u0060 \u2014 the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Tests/CmlxTests/CmlxTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"343205d48661e629e5f0b00adbf31b1032da57e038c6e0c7761d4ad9192c6637"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Agent/Engine/ProcessInput.swift: Agent/Engine/ProcessInput.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 163 in AgentEngine.processInput at line 13. 3 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Agent/Engine/ProcessInput.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":"Agent/Engine/ProcessInput.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd15c385162ada7bf14d920bceadb310c06fd1f35213e1aa8612f14f5ef36b26"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Agent/Engine/ToolChain.swift: Agent/Engine/ToolChain.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 131 in AgentEngine.executeToolChain at line 2521. 3 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Agent/Engine/ToolChain.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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ec82d3bfca210c371d98b4a98491139dec0f75bab714a493822be521a39dfa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: UI/ContentView.swift: UI/ContentView.swift changed 39 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ContentView.body at line 251. 17 of those changes were fix/bug commits, and the other 22 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- UI/ContentView.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":"UI/ContentView.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2ee2798ad1942989e596c3f212c77ebbfd70ea27fb26eb872748b11c557abe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Agent/Engine/Planner.swift: Agent/Engine/Planner.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in AgentEngine.executePlannedSkillChainIfPossible at line 271. 2 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Agent/Engine/Planner.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":"Agent/Engine/Planner.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecf3e8d0628a235f4e0234414bcde0212322ddeb55f286df2d663ed18fa5413"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Agent/AgentEngine.swift: Agent/AgentEngine.swift changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in AgentEngine.init at line 455. 3 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Agent/AgentEngine.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":"Agent/AgentEngine.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e91da1effc63ef2ab74e6f532c935819b8c09cb96373d1f0e0e91f5675650d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Live/Core/LiveModeEngine.swift: Live/Core/LiveModeEngine.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in LiveModeEngine.processAudio at line 863. 1 of those changes was a fix/bug commit, and the other 7 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Live/Core/LiveModeEngine.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":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a4bac969852b8def518158b2d7f00d881fa25a42049692b88a9ea6b97639c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: UI/ResponseUI.swift: UI/ResponseUI.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in SkillCardView.statusTitle at line 1417. 1 of those changes was a fix/bug commit, and the other 8 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- UI/ResponseUI.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":"UI/ResponseUI.swift"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d3d3710ad2d3c644cb07c0ec59d9913583e3d3c1d58f916abcbff875d45c20"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: LLM/Backends/MiniCPMV/MiniCPMVBackend.swift: LLM/Backends/MiniCPMV/MiniCPMVBackend.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in MiniCPMVBackend.runLiveTransactionBody at line 980. 6 of those changes were fix/bug commits, and the other 7 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- LLM/Backends/MiniCPMV/MiniCPMVBackend.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":"LLM/Backends/MiniCPMV/MiniCPMVBackend.swift"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a16edc01bcbd65667f5b354426bf62ec6c9f69cb6cb5c42dd472976575b1af6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Agent/Engine/EngineLifecycle.swift: Agent/Engine/EngineLifecycle.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in AgentEngine.loadSystemPrompt at line 148. 4 of those changes were fix/bug commits, and the other 10 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Agent/Engine/EngineLifecycle.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":"Agent/Engine/EngineLifecycle.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f431b234bc1329ae4b70309ac8a471e4842d61bc3659ab2697f6397791f926c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: LLM/PromptBuilder.swift: LLM/PromptBuilder.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in PromptBuilder.build at line 304. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- LLM/PromptBuilder.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":"LLM/PromptBuilder.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"19aec184bfb0e59e0eaa205d760f1ca1981f63896d4f4b1b0e810c1d2456d265"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Tools/Handlers/Health.swift: Tools/Handlers/Health.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in HealthTools.healthReportRangeCanonical at line 767. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Tools/Handlers/Health.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":"Tools/Handlers/Health.swift"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5836ceac6b2d31c0b189d057412cfbc045b1ef98c56e0b232f66142fbdeb047"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Agent/Engine/Router.swift: Agent/Engine/Router.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AgentEngine.recentActiveSkillId at line 249. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Agent/Engine/Router.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":"Agent/Engine/Router.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5c77538b9bc5311c97662b16a3f4050adc3acf572e1b3062256635c44e54c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: LLM/Installation/Download/ResumableAssetDownloader.swift: LLM/Installation/Download/ResumableAssetDownloader.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in ResumableAssetDownloader.transfer at line 244. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- LLM/Installation/Download/ResumableAssetDownloader.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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d0a66117a2d1761053254d637e3443941126fa43b6d5a7cf5a28c678067f3a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: LLM/Backends/LiteRT/LiteRTBackend.swift: LLM/Backends/LiteRT/LiteRTBackend.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in LiteRTBackend.generate at line 582. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- LLM/Backends/LiteRT/LiteRTBackend.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":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c0d7a33f2a2610a02cac074782039cadc50ff14770123e71453db14e59ec3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Agent/Engine/ConversationMemoryPolicy.swift: Agent/Engine/ConversationMemoryPolicy.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ConversationMemoryPolicy.nextTrimmedPriorHistory at line 140. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Agent/Engine/ConversationMemoryPolicy.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":"Agent/Engine/ConversationMemoryPolicy.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4328f3198b7e774d409628d8fd4e3d574cd182a9b90120334355d81ed8dbebbd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Live/Audio/LiveAudioIO.swift: Live/Audio/LiveAudioIO.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in LiveAudioIO.start at line 70. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Live/Audio/LiveAudioIO.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":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc247c479ef5eda95aa210c5e1c58898f316695ce589ad75470ba3e13b11c12c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: UI/SkillsManagerView.swift: UI/SkillsManagerView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in SkillDetailCard.body at line 277. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- UI/SkillsManagerView.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":"UI/SkillsManagerView.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"826fe9b28ecb2efb9380ecb2c0c0bcaada0881e94aa3e2c04a4ee991fd2228cf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Tools/Handlers/Calendar.swift: Tools/Handlers/Calendar.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in CalendarTools.presetRange at line 416. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Tools/Handlers/Calendar.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":"Tools/Handlers/Calendar.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e684b82c5505b8ba3f1e0407ae80c72b6b251b2c90aadf86b48180d3ee610e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Tools/Handlers/Web.swift: Tools/Handlers/Web.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in WebTools.searchSuccess at line 1171. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Tools/Handlers/Web.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":"Tools/Handlers/Web.swift"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe8615f885d812311cda10643380d91e24b5f5c9ca6ecad18881a6c0929da3b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: LLM/MLX/MLXLocalLLMService.swift: LLM/MLX/MLXLocalLLMService.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in MLXLocalLLMService.generateStream at line 637. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- LLM/MLX/MLXLocalLLMService.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":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"7840d4bf37b075710e6dae24ba7494c7d8e32bcc8227b72e3bce1286e7d225e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Tools/AppPermissions.swift: Tools/AppPermissions.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ToolRegistry.authorizationStatus at line 92. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Tools/AppPermissions.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":"Tools/AppPermissions.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"801849c3f6816f7ebf9d1e7c3df9c9d29697ed2cc4545ce817339ac972223b6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Tools/Handlers/Clipboard.swift: Tools/Handlers/Clipboard.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ClipboardTools.register at line 11. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Tools/Handlers/Clipboard.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":"Tools/Handlers/Clipboard.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f06383081b13ec473fe8c5282ab444872d5a67ca305fedf0ec21bb5bfd718bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Tools/Handlers/Contacts.swift: Tools/Handlers/Contacts.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ContactsTools.upsertCanonical at line 351. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- Tools/Handlers/Contacts.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":"Tools/Handlers/Contacts.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e40496758015ac90643a4f13ec869e194e9913a9bbb852445754c8e50784b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: LLM/MLX/Installation/LiveModelDownloader.swift: LLM/MLX/Installation/LiveModelDownloader.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in LiveModelDownloader.downloadAll at line 41. 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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- LLM/MLX/Installation/LiveModelDownloader.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":"LLM/MLX/Installation/LiveModelDownloader.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed98598392a5f94caea2458a70f76b39eb4da877d4cc06344552fbb3584b105"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: UI/UIScale.swift: UI/UIScale.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 2 (its worst body is UIScale.pillHeight 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(ui): tighten orb\u2192LIVE rhythm, lift main visual to upper third\u201D; \u201Cfix(ui): \u0022icons floating in air\u0022 \u2014 sized as signs not buttons\u201D; \u201Cfix(ui): refine icon sizes for proper \u0022premium minimal\u0022 feel\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-05-08..2026-08-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-08 16:01:17 \u002B08:00\u0027 --until=\u00272026-08-06 16:01:17 \u002B08:00\u0027 --full-history --no-merges -- UI/UIScale.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":"UI/UIScale.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f752f067a2e649c038c0be3f38ff4b6b0541c196e12ee62ef77ec5beedfe98"}},{"ruleId":"D16","level":"note","message":{"text":"Small-team knowledge concentration: 94 file(s) are concentrated to one author \u2014 the ambient state with 2 active author(s), not 94 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa75b6daa18f1b578387fa04036c50b3163d47f957c8f5601bf083ed4489b0c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: per-model tuning via catalog \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"339a26198df2b5fda0ef9205c405f65eae6a2bdbcea078efcc5846cd04329f87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// \u6C61\u67D3 R1 cache \u7684\u65B9\u6848\u7F13\u89E3 (TODO: cache snapshot/restore around R2). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/PromptBuilder.swift"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ba3b6c55d136cd5e19d2a97b12112404b94d9d95f697358604926dd8bef17e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u62BD\u51FA ModelAdapter \u534F\u8BAE\u540E\u79FB\u9664 Gemma \u4E13\u5C5E\u8026\u5408 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/MLX/MLXLocalLLMService.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f9f9a39bf50e76e721ba603e1dd557cfcf3ec7f05beff1ad8b46b3a579a58e"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060Qwen3ASR\u0060 spells \u0060ASR\u0060 where 13 names in the project spell it \u0060Asr\u0060: 13 of 14 names in project Packages~FluidAudio~FluidAudio spell the token \u0060Asr\u0060 (13 of 14; unit: names in project Packages~FluidAudio~FluidAudio containing \u0060Asr\u0060). Peers: Packages~FluidAudio~FluidAudio.SlidingWindowAsrManager (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/SlidingWindow/SlidingWindowAsrManager.swift:10); Packages~FluidAudio~FluidAudio.SlidingWindowAsrConfig (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/SlidingWindow/SlidingWindowAsrManager.swift:683); Packages~FluidAudio~FluidAudio.SlidingWindowAsrSession (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/SlidingWindow/SlidingWindowAsrSession.swift:6); Packages~FluidAudio~FluidAudio.SlidingWindowAsrError (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/SlidingWindow/SlidingWindowAsrSession.swift:159); Packages~FluidAudio~FluidAudio.StreamingEouAsrManager (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/Streaming/EOU/StreamingEouAsrManager.swift:163). Rename to \u0060Qwen3Asr\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/FluidAudio/Sources/FluidAudio/ModelNames.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b74f9d39c7452da8c2444ca6c0f0f6dd88e2938099f799309ab77862027c33"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060voiceID\u0060 spells \u0060ID\u0060 where 62 names in the project spell it \u0060Id\u0060: 62 of 63 names in project Packages~FluidAudio~FluidAudio spell the token \u0060Id\u0060 (62 of 63; unit: names in project Packages~FluidAudio~FluidAudio containing \u0060Id\u0060). Peers: TokenTiming.tokenId (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/AsrTypes.swift:96); TokenTiming.init(tokenId) (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/AsrTypes.swift:101); ParakeetLanguageModelConfig.blankId (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/ParakeetLanguageModels.swift:7); ParakeetLanguageModels.blankId (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/ParakeetLanguageModels.swift:43); ParakeetLanguageModels.init(blankId) (Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/ParakeetLanguageModels.swift:49). Rename to \u0060voiceId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/FluidAudio/Sources/FluidAudio/TTS/Kokoro/Pipeline/Synthesize/KokoroSynthesizer\u002BVoiceEmbeddings.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"223ef22ab710dcaf04a1867762611cdd628ec601ce8e0be1cbf28dcc23204502"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 5 project(s) overshoot their size bounds, lowering Project Cohesion to 6.0/10. The most over is \u0060(repository root)\u0060 (62793 LoC, 1476 module-visible types across 128 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","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":"270636f6fcd76038efa103882ab89a6542c142d03ce13ff526416bf267504f6e"},"properties":{"commitSha":"911fdd72d8d73485d9aacd54fb80ab86b5f283d3"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"46ed5088e372a1645841089d14aca0a25845741310820ce62e7cb1a6cd16763b"},"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":"29a123e5ded039aafc5f9608aaec5c5e039833e07d8997aa993c9ad344fa17f1"},"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":"e4cb465e1f0d2eae4c574d9bbda594dca37b461c20ca4391a9a1ab1fb76b76e5"},"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":"34f998d59eaff18b05f62f3ffd53eb1d86ddd758e021a3b06f3dd141181d69a1"},"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":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: AgentEngine.swift \u2194 SkillLoader.swift: \u0060Agent/AgentEngine.swift\u0060 (context Agent) and \u0060Skills/SkillLoader.swift\u0060 (context Skills) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060f6186185\u0060 Improve skill routing slot generalization; \u006048e84a34\u0060 feat: add free web search skill; \u0060b53c31c8\u0060 WIP backup: Live mode V2 \u002B \u8DE8\u5E73\u53F0\u5B88\u536B \u002B Skill chip decoupled \u002B \u6301\u4E45\u5316\u4FEE\u590D \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/AgentEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20ca2a751e25a6732ae6d8a2ef852e193b11f65a114ee41d0ed5fa517230125"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: EngineLifecycle.swift \u2194 ConfigurationsView.swift: \u0060Agent/Engine/EngineLifecycle.swift\u0060 (context Agent) and \u0060UI/ConfigurationsView.swift\u0060 (context UI) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00601b12513a\u0060 Prevent Foundation Models auto-selection; \u0060ed9f3a8a\u0060 Add Foundation Models runtime adapter; \u006009726729\u0060 feat: optimize live downloads and model autoload \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/EngineLifecycle.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefe7922d9e79acf5fc62cb8b50dec762ab60b364f30510530b4bdda53bbf5af"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: EngineLifecycle.swift \u2194 ContentView.swift: \u0060Agent/Engine/EngineLifecycle.swift\u0060 (context Agent) and \u0060UI/ContentView.swift\u0060 (context UI) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060ed9f3a8a\u0060 Add Foundation Models runtime adapter; \u006009726729\u0060 feat: optimize live downloads and model autoload; \u006015e972f1\u0060 Save LiveLand expanded result recovery state \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/EngineLifecycle.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d47696731b36cb2be795ac89984aae91a402f36d578927c4b5412dccc84869"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: LiteRTBackend.swift \u2194 LiveTurnProcessor.swift: \u0060LLM/Backends/LiteRT/LiteRTBackend.swift\u0060 (context LLM) and \u0060Live/Turn/LiveTurnProcessor.swift\u0060 (context Live) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00601eaa9b5f\u0060 fix: embed system prompt in first user message for Live; \u006000ceb24b\u0060 fix: use sessionHasContext to trigger delta instead of history.isEmpty; \u0060b25f81ff\u0060 feat: enable KV cache delta for Live mode \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/LiteRT/LiteRTBackend.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf4c8ce72b76ecdfe88655b39ae5c770a5594acf722af010736f5a7be2169af"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ModelRuntimeCoordinator.swift \u2194 ContentView.swift: \u0060LLM/Core/ModelRuntimeCoordinator.swift\u0060 (context LLM) and \u0060UI/ContentView.swift\u0060 (context UI) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060ed9f3a8a\u0060 Add Foundation Models runtime adapter; \u0060d0d3f625\u0060 fix: stabilize model autoload for TestFlight; \u006052bcfc3c\u0060 Fix generation cancellation and model status hints \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Core/ModelRuntimeCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16f4df49dcb0ef0ab6c8a1f7374b04843a8ef2e9248fc67712f8dc3cecea918"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Planner.swift \u2194 ToolChain.swift: \u0060Agent/Engine/Planner.swift\u0060 and \u0060Agent/Engine/ToolChain.swift\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006015e972f1\u0060 Save LiveLand expanded result recovery state; \u006026d683c7\u0060 Web search recency rework \u002B retrieval quality \u0026 CLI/app parity; \u0060c79a13ee\u0060 Polish skill UI and responses \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/Planner.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ab930272eb1d5bec515f64d44a2cb724e68abdf8ffa905a11b865543e788cf"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: LiveTurnProcessor.swift \u2194 LiveModeUI.swift: \u0060Live/Turn/LiveTurnProcessor.swift\u0060 and \u0060Live/UI/LiveModeUI.swift\u0060 change together 50% of the time (5 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 5 shared commits counted here, the most recent 3 are \u0060bcbb8671\u0060 Recover Live Activity and LIVE skill runtime; \u00604b868b3c\u0060 Fix live camera flow for build 22; \u00601eaa9b5f\u0060 fix: embed system prompt in first user message for Live \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Turn/LiveTurnProcessor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"539e9ba1edf932f531ff19f51e61526c01248dbe26150835e10cdb54543880be"}},{"ruleId":"AX9","level":"error","message":{"text":"Query writes persistent state on the read path: LANConnectionManager.resolveEndpoint: \u0060LANConnectionManager.resolveEndpoint\u0060 is a read-named query yet it performs a durable write on the read path (a persist to a store/client). A query must stay side-effect-free so reads are safe to retry, cache, and route to a read replica; move the write into a command."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b685ae1e509eb49709017450329051a37479d215d3b1a40776de5dea270f082"}},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: VADService.handleAudioInput: \u0060VADService.handleAudioInput\u0060 is an event/message handler that blocks on a synchronous wait (a semaphore/queue \u0060.wait\u0060/\u0060.sync\u0060) \u2014 it stalls the handler on a peer or resource and serialises throughput, and can deadlock under load. Await the work asynchronously (\u0060async\u0060/\u0060await\u0060) instead of blocking the handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/VAD/VADService.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5986ff49d62007a49a82b0060a2bc7ca2536e0ae87d4e580c2e7a58ab4d54d0"}},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: LiveLandVADService.handleAudioInput: \u0060LiveLandVADService.handleAudioInput\u0060 is an event/message handler that blocks on a synchronous wait (a semaphore/queue \u0060.wait\u0060/\u0060.sync\u0060) \u2014 it stalls the handler on a peer or resource and serialises throughput, and can deadlock under load. Await the work asynchronously (\u0060async\u0060/\u0060await\u0060) instead of blocking the handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LiveLand/VAD/LiveLandVADService.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b8d8f82f4763fbc325ea3dd0d064ec803ce0b02d14a7b146246f4bd5f5235f"}},{"ruleId":"M2","level":"note","message":{"text":"ADRs not easily discoverable: 1 ADR-shaped document(s) detected by content \u2014 \u0060Docs/architecture-decisions.md\u0060. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live \u2014 so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ea921cf64dae701abd877090b3279ff10d03c2e3250e26c8c299d7c5665e0d3f"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 1 application file(s) sit at the repository root beside the build and tooling files (\u0060PhoneClaw-Bridging-Header.h\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/5 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060Experiments/iOS27CoreAIProbeApp\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 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch pip/gradle/gitsubmodule: \u0060Packages/mlx-swift/Source/Cmlx/mlx/.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060pip\u0060, \u0060gradle\u0060, \u0060gitsubmodule\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entries to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Packages/mlx-swift/Source/Cmlx/mlx/.github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb45ccd85f6a639b5b5f05ed9c37eafd74dff4b8d2034c544082781b075df3e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/VoiceTurnController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d459af7b86b77a212fbc12bcc68bc4241be4f779970caccf95ccbce18a37d9a1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LiveLand/Core/LiveLandTurnController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fea629a1f009692da11e13d31fe530ebd120dd8a6f5f8e5cfda3b7fb20e5cf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!$0.requiresLocalArtifact \u0026\u0026 !$0.id.hasPrefix(\u0022remote::\u0022)\u0060 appears character-identically in 2 files \u2014 UI/ConfigurationsView.swift, UI/ContentView.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":"UI/ConfigurationsView.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"448aa936938aaba16c6fdf1609969742c51c5ce9274fd117ccec63af9c4ee648"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!advertisedModels.isEmpty \u0026\u0026 !restrictToAdvertisedModels\u0060 appears character-identically in 2 files \u2014 LLM/Backends/Remote/GatewayProviders.swift, MacGateway/Sources/PhoneClawGateway/GatewayProviders.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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc8badb9237dcdd77d0004fec746cb9024bf9e8ea477fe507e5e46ecf171484"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!cleanModel.isEmpty \u0026\u0026 cleanModel != \u0022antigravity\u0022\u0060 appears character-identically in 2 files \u2014 LLM/Backends/Remote/GatewayProviders.swift, MacGateway/Sources/PhoneClawGateway/GatewayProviders.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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c50b2bcb1934ad4ecb7508c87b6e32bc1cab09e744804bbc53d1fadedc6d214"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.role == .skillResult \u0026\u0026 $0.skillResultKind == .toolExecution\u0060 appears character-identically in 2 files \u2014 Agent/Engine/ToolChain.swift, LiveLand/Runtime/LiveLandVoiceRuntime.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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2607}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c2a654b5cc8e79675ba409ba13d99d18c2ee953066c6810b5af3c252865008"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(scalar.value \u003C 128) \u0026\u0026 ( CharacterSet.alphanumerics.contains(scalar) || scalar == \u0022-\u0022 || scalar == \u0022_\u0022 )\u0060 appears character-identically in 2 files \u2014 Agent/Engine/GuardedSkillRouter.swift, Agent/Engine/Router.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":"Agent/Engine/GuardedSkillRouter.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ce96d5ecbd521a1acc5acfaf5facde4025bf4ab4946d447e1a4d0f7f5cb1a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Context.environment[\u0022MLX_SWIFT_BUILD_DOC\u0022] == \u00221\u0022 || Context.environment[\u0022SPI_GENERATE_DOCS\u0022] == \u00221\u0022\u0060 appears character-identically in 2 files \u2014 Packages/InferenceKit/Package.swift, Packages/mlx-swift/Package.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":"Packages/InferenceKit/Package.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9659af2b3ca0a6be48093ffcb5bdc1a76001667247da72dc0616c24099c9a4b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HotfixFeatureFlags.useHotfixPromptPipeline \u0026\u0026 HotfixFeatureFlags.enableCanonicalToolResult\u0060 appears character-identically in 2 files \u2014 Agent/Engine/Planner.swift, Agent/Engine/ToolChain.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":"Agent/Engine/Planner.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"408066a6caa77af5d59ccadf1fee4d45145564f69ce2878e48b2f31c9fe5a297"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cleaned.isEmpty || looksLikeStructuredIntermediateOutput(cleaned) || looksLikePromptEcho(cleaned)\u0060 appears character-identically in 2 files \u2014 Agent/Engine/Planner.swift, Agent/Engine/ToolChain.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":"Agent/Engine/Planner.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7b82ac7daeba21cc8c3a7babc1f9330d2c5d551d517e73fc9a75cf71e3bcd5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060eosLogit \u003E PocketTtsConstants.eosThreshold \u0026\u0026 eosStep == nil\u0060 appears character-identically in 2 files \u2014 Packages/FluidAudio/Sources/FluidAudio/TTS/PocketTTS/Pipeline/PocketTtsSession.swift, Packages/FluidAudio/Sources/FluidAudio/TTS/PocketTTS/Pipeline/PocketTtsSynthesizer.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":"Packages/FluidAudio/Sources/FluidAudio/TTS/PocketTTS/Pipeline/PocketTtsSession.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c19cf318f42db2da8b5556f883020317393b34bb94211f78f6f3d3b45fbafa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error is CancellationError || Task.isCancelled\u0060 appears character-identically in 2 files \u2014 LLM/Installation/Download/ResumableAssetDownloader.swift, Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/SlidingWindow/SlidingWindowAsrManager.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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ad568d74b2d58703bfa4f9ffeb5cee01fa795faba4fed2ac3ee343958cc29e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host == \u0022localhost\u0022 || host == \u0022127.0.0.1\u0022 || host == \u0022::1\u0022\u0060 appears character-identically in 2 files \u2014 LLM/Backends/Remote/MacGateway.swift, MacGateway/Sources/PhoneClawGateway/MacGateway.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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acb1cd2ba5c59c5dda4f0881ed41d74221566e5a300f2476bf206aaf24e8f19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isAllowedLoopbackOrigin(origin) \u0026\u0026 isAllowedLoopbackOrigin(referer)\u0060 appears character-identically in 2 files \u2014 LLM/Backends/Remote/MacGateway.swift, MacGateway/Sources/PhoneClawGateway/MacGateway.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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1294627df8aef0411b8480aac53cd08e17c3e9dc8b2ccf764f106ea90449ca55"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isComplete || error != nil || buf.count \u003E 8_000_000\u0060 appears character-identically in 2 files \u2014 LLM/Backends/Remote/MacGateway.swift, MacGateway/Sources/PhoneClawGateway/MacGateway.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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fe5f1cced7e75d7f5448f0b5e8c59d1ea9312a3be6437ca44180457a89f4a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.contains(\u0022input_max\u0022) || key.contains(\u0022input_min\u0022) || key.contains(\u0022output_max\u0022) || key.contains(\u0022output_min\u0022)\u0060 appears character-identically in 2 files \u2014 LLM/MLX/Gemma4/Gemma4LanguageModel.swift, LLM/MLX/Gemma4/Gemma4Model.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":"LLM/MLX/Gemma4/Gemma4LanguageModel.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0667ea82ed495a85354e39fb5e9d37ba2559ac315c41c0df233fb168e0f2cea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.hasPrefix(\u0022model \u0022) || line.hasPrefix(\u0022model=\u0022)\u0060 appears character-identically in 3 files \u2014 LLM/Backends/Remote/GatewayProviders.swift, MacGateway/Sources/PhoneClawGateway/GatewayApp.swift, MacGateway/Sources/PhoneClawGateway/GatewayProviders.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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f20d624435efcbe40cc838b5269aaeb8a8ebbcda950db40f6cdc19f7f5160c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lower.contains(\u0022-cloud\u0022) || lower.hasSuffix(\u0022:cloud\u0022)\u0060 appears character-identically in 2 files \u2014 LLM/Backends/Remote/GatewayProviders.swift, MacGateway/Sources/PhoneClawGateway/GatewayProviders.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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea983c780ce98ced43cea9c4a236148638c24f2be53b6e5f81c64b12f7993f53"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060maxLabel != models.blankId \u0026\u0026 maxLabel != prevLabel\u0060 appears character-identically in 2 files \u2014 Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/SlidingWindow/CTC/CtcJaManager.swift, Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/SlidingWindow/CTC/CtcZhCnManager.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":"Packages/FluidAudio/Sources/FluidAudio/ASR/Parakeet/SlidingWindow/CTC/CtcJaManager.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8975d2cf17e3a44bb131e6bd49902f6fff189422076374f1daa9d1edbb6aeb47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060migrated || hydrated.count != list.count\u0060 appears character-identically in 2 files \u2014 LLM/Backends/Remote/MacGateway.swift, MacGateway/Sources/PhoneClawGateway/MacGateway.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":"LLM/Backends/Remote/MacGateway.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe1fb0ff1b91c38b94757819928741a8890bf724b869bd0e02b5f5cd6e5f1a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060restrictToAdvertisedModels \u0026\u0026 !advertisedModels.isEmpty\u0060 appears character-identically in 2 files \u2014 LLM/Backends/Remote/GatewayProviders.swift, MacGateway/Sources/PhoneClawGateway/GatewayProviders.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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c725f58b8d92c5551ca2d27ecc4a0a1adb3fa775fdab2c3060d6ba281d7dcadf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scalar.properties.isEmojiPresentation || scalar.properties.isEmoji\u0060 appears character-identically in 2 files \u2014 Packages/FluidAudio/Sources/FluidAudio/TTS/Kokoro/Pipeline/Preprocess/KokoroChunker.swift, Packages/FluidAudio/Sources/FluidAudio/TTS/SSML/SSMLTypes.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":"Packages/FluidAudio/Sources/FluidAudio/TTS/Kokoro/Pipeline/Preprocess/KokoroChunker.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a111b4de15dd0b222032fae7664d5b14607eeab0028ede8c0aef1261ff8cae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.audioInputHandler != nil || self.audioInputBufferHandler != nil || self.visualisationInputHandler != nil\u0060 appears character-identically in 2 files \u2014 Live/Audio/LiveAudioIO.swift, LiveLand/Audio/LiveLandAudioIO.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":"Live/Audio/LiveAudioIO.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1583e933572748d86c7e5490c7b25add9fa87efa677b72e9e3b497c3c10da155"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state == .downloaded || state == .bundled\u0060 appears character-identically in 2 files \u2014 Agent/AgentEngine.swift, LLM/Core/ModelRuntimeCoordinator.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":"Agent/AgentEngine.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"bedb6fbb7ba579a1a4d57ae081c3498d4f34ecfed8bdf2bfa3295bbe33878452"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == errSecSuccess || status == errSecItemNotFound\u0060 appears character-identically in 4 files \u2014 LLM/Backends/Remote/LANBinding.swift, LLM/Backends/Remote/MacGateway.swift, MacGateway/Sources/PhoneClawGateway/GatewayApp.swift, MacGateway/Sources/PhoneClawGateway/MacGateway.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":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"4411c9e6bc22d520fd247d2ac5ba0ed5f5e9227ff9c619f3686f6c36c9fc9fd5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.hasPrefix(\u0022\u0060\u0060\u0060json\u0022) || trimmed.hasPrefix(\u0022\u0060\u0060\u0060\u0022)\u0060 appears character-identically in 2 files \u2014 Agent/Engine/OutputCleaner.swift, Agent/Engine/ToolCallParser.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":"Agent/Engine/OutputCleaner.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"496e1bec21f552718ed57acaa6f80b5c60930dd1aed4a567a2245b29297ac0fa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"UI/ContentView.swift"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d21e64686b34d2ff4273cade32c3fa236d0ada8a856069ea09e7eca0c953938"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"594fbf396bc65f54b0cf98279ec1c2413f2acc85f8956e7a5b704387381c000c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LiveLand/Core/LiveLandTurnController.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2745364db164d108247340476cdd3ef0a22153a4e05d5efc90bcf1620a80a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LiveLand/Core/LiveLandTurnController.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"da46a234f09bfae6498eef737e63afed0f7e7c29babea9b7e6895b694f2c5875"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5862cb41cc8ee411609b108398e4165fc1034151640ade8ffc2f3edae1eaafa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/LiveModeEngine.swift"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe31cf6b9973f1b34d4f4b958e750aec30abeb1aace41f24365461e156b72b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/VoiceTurnController.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8c82c26c78c5e2e6a8d082aeb4a60240f7b5738268ddd370a7e23558c0b683"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Live/Core/VoiceTurnController.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"120aca6b6c23ff79d32a9a1d1fd6723f1a8236e21c4d03460fb6b04014e8c52f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LLM/Backends/Remote/LANBinding.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"785ce98a9a48a2fd2b1058346bb73b5c5339dff5e8e872fccac1aeed5d86b68a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Experiments/iOS27CoreAI/Sources/IOS27CoreAIExperiment/PlanningPromptBuilder.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c32283893bfff152dcfbf5ca49b414e7210d72de1229e77999989b567fb6ffb"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Swift code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Agent/Engine/EngineLifecycle.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a537b38f0ef70559cbb803dcfc6a9ac9173deded9555b2e2b319c6b4096976"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060codexExecutablePathsFromNVM\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":"MacGateway/Sources/PhoneClawGateway/GatewayApp.swift"},"region":{"startLine":1931}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac5fc2116e67d5cff9504dfb2407f39376b2850059ccfb9f8959c98b577a73e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060codexExecutablePathsFromNVM\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":"MacGateway/Sources/PhoneClawGateway/GatewayProviders.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"f801975553962b5f62a752d1d66391c5cb65f17f711190e360166e33a194a382"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060regexMatchCount\u0060 turns every thrown error into \u00600\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":"Agent/Engine/ToolChain.swift"},"region":{"startLine":2134}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cacdeeba3b760e020a4d14e8427331f7d8db63476f634e0aa6c930beab9a71"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadSessionsIndex\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":"Agent/Engine/ChatSessionStore.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2d0fde6924aa891b0808d45273502b0d1099e8c92137679d16b791c7782e49"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060regexMatches\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":"Tools/Handlers/Web.swift"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"115b036446ac610ea52d199b1556d76a6a87c067f06144b96beff5a3ee64dd9a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060codexExecutablePathsFromNVM\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":"LLM/Backends/Remote/GatewayProviders.swift"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8d7d41e69b0a4863ea4bb93a91a1dabc4d3e6d5b0fb5af98e1bab076ebac99"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSize\u0060 turns every thrown error into \u00600\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":"LLM/Installation/Download/DownloadManifestStore.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"90aea42b827cb38e8d1a58ae816bf2cad22513e9f7b332cfebf012bb0f3d2a6f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSize\u0060 turns every thrown error into \u00600\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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce4c88c084ce824793782053ae973ae3a5db1ba628814dee9b7d5df9a596c99"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSize\u0060 turns every thrown error into \u00600\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":"LLM/Installation/Download/ResumableAssetDownloader.swift"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55c229ebca119a51b9561f187f975a9e37bf9becc9fd7f9ac782984f8a80a93"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSize\u0060 turns every thrown error into \u00600\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":"LLM/MLX/Installation/LiveModelInstallFinalizer.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c680fdd8d23ed7b4d3ec8e28790ec6ca75c723a1a776f609225c06cf61bdf5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060toolResult\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":"Packages/InferenceKit/Libraries/MLXLMCommon/Extensions/Encodable\u002BtoolResult.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d261487072b56ea95b717ba50aaa0933539a4adf70e530da09132ffd10387d93"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060trimmed.hasPrefix(\u0022\u0060\u0060\u0060json\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060trimmed.hasPrefix(\u0022\u0060\u0060\u0060json\u0022)\u0060 also satisfies \u0060trimmed.hasPrefix(\u0022\u0060\u0060\u0060\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":"Agent/Engine/OutputCleaner.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"451799fa52637437bc427c3e333c0277c72e88f3b1b261ed57d173fca41638aa"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060trimmed.hasPrefix(\u0022\u0060\u0060\u0060json\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060trimmed.hasPrefix(\u0022\u0060\u0060\u0060json\u0022)\u0060 also satisfies \u0060trimmed.hasPrefix(\u0022\u0060\u0060\u0060\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":"Agent/Engine/ToolCallParser.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c959f7c34449f4a8b8e278e22635bd7123ae6ece534ebde9e94d72da14f716"}}],"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"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-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"}]}],"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":6,"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."]}]}